user: Please show me the C implementation that matches the assembly code listed below:

```asm
<main>:
  endbr64
  push   %rbx
  sub    $0x30,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x28(%rsp)
  xor    %eax,%eax
  lea    D39(%rip),%rdi
  call   <puts@plt>
  lea    0x18(%rsp),%rsi
  lea    D38(%rip),%rbx
  mov    %rbx,%rdi
  call   <scanf@plt>
  lea    D51(%rip),%rdi
  call   <puts@plt>
  lea    0x20(%rsp),%rsi
  mov    %rbx,%rdi
  call   <scanf@plt>
  movss  0x20(%rsp),%xmm0
  divss  D46(%rip),%xmm0
  movss  %xmm0,0x20(%rsp)
  lea    D53(%rip),%rdi
  call   <puts@plt>
  lea    0x1c(%rsp),%rsi
  mov    %rbx,%rdi
  call   <scanf@plt>
  lea    D73(%rip),%rdi
  call   <puts@plt>
  lea    0x24(%rsp),%rsi
  mov    %rbx,%rdi
  call   <scanf@plt>
  movss  0x24(%rsp),%xmm1
  divss  D46(%rip),%xmm1
  movss  %xmm1,0x24(%rsp)
  pxor   %xmm0,%xmm0
  cvtss2sd 0x1c(%rsp),%xmm0
  cvtss2sd %xmm1,%xmm1
  movsd  D62(%rip),%xmm2
  subsd  %xmm2,%xmm1
  mulsd  %xmm1,%xmm0
  pxor   %xmm1,%xmm1
  cvtss2sd 0x20(%rsp),%xmm1
  subsd  %xmm2,%xmm1
  pxor   %xmm3,%xmm3
  cvtss2sd 0x18(%rsp),%xmm3
  mulsd  %xmm1,%xmm3
  movapd %xmm0,%xmm2
  subsd  %xmm3,%xmm2
  divsd  D37(%rip),%xmm2
  pxor   %xmm4,%xmm4
  cvtsd2ss %xmm2,%xmm4
  movss  %xmm4,0xc(%rsp)
  pxor   %xmm2,%xmm2
  comiss %xmm4,%xmm2
  ja     L8
  pxor   %xmm0,%xmm0
  cvtss2sd 0xc(%rsp),%xmm0
  lea    D11(%rip),%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  movss  0x1c(%rsp),%xmm0
  subss  0x18(%rsp),%xmm0
  subss  0xc(%rsp),%xmm0
  cvtss2sd %xmm0,%xmm0
  lea    D7(%rip),%rdi
  mov    $0x1,%eax
  call   <printf@plt>
L4:
  mov    0x28(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L27
  mov    $0x0,%eax
  add    $0x30,%rsp
  pop    %rbx
  ret
L8:
  divsd  %xmm1,%xmm0
  cvtsd2ss %xmm0,%xmm0
  cvtss2sd %xmm0,%xmm0
  lea    D12(%rip),%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  jmp    L4
L27:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: retrieve_data
arguments: tag: D39
data_type: string
name: retrieve_data
arguments: tag: D38
data_type: string
name: retrieve_data
arguments: tag: D51
data_type: string
name: retrieve_data
arguments: tag: D46
data_type: byte[4]
name: retrieve_data
arguments: tag: D53
data_type: string
name: retrieve_data
arguments: tag: D73
data_type: string
name: retrieve_data
arguments: tag: D62
data_type: f64
name: retrieve_data
arguments: tag: D37
data_type: f64
name: retrieve_data
arguments: tag: D11
data_type: string
name: retrieve_data
arguments: tag: D7
data_type: string
name: retrieve_data
arguments: tag: D12
data_type: string

tool: D39: Enter the current tank pressure(in bar)

tool: D38: %f

tool: D51: Enter the current mix -> e.g for EAN36 enter 36

tool: {"D46": [0x00,0x00,0xc8,0x42]}

tool: D53: Target final pressure(in bar)

tool: D73: Target final percent of O2 -> for EAN32 enter 32

tool: D62: 0.209

tool: D37: 0.791

tool: D11: Amount of O2: %.2f bar


tool: D7: Amount of air: %.2f bar


tool: D12: You should bleed the tank to %.2f bar then top up to your required pressure with air.

assistant: ```c
int main(void) {
  float p_start, p_final, mix_start, mix_final, p_remove, p_test;
  printf("Enter the current tank pressure(in bar)\n");
  scanf("%f", &p_start);
  printf("Enter the current mix -> e.g for EAN36 enter 36\n");
  scanf("%f", &mix_start);
  mix_start /= 100;
  printf("Target final pressure(in bar)\n");
  scanf("%f", &p_final);
  printf("Target final percent of O2 -> for EAN32 enter 32\n");
  scanf("%f", &mix_final);
  mix_final /= 100;
  p_test = ((p_final * (mix_final - 0.209)) - (p_start * (mix_start - 0.209))) / 0.791;
  if (p_test < 0) {
    p_remove = (p_final * (mix_final - 0.209)) / (mix_start - 0.209);
    printf("You should bleed the tank to %.2f bar then top up to your required pressure with air.", p_remove);
  } else {
    printf("Amount of O2: %.2f bar\n", p_test);
    printf("Amount of air: %.2f bar\n", (p_final - p_start - p_test));
  }
  return 0;
}
```