user: 请将这段汇编代码片段转换成等效的C代码：

```asm
<main>:
  endbr64
  push   %rbp
  lea    D108(%rip),%rdi
  lea    D76(%rip),%rbp
  sub    $0x30,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x28(%rsp)
  xor    %eax,%eax
  call   <puts@plt>
  lea    0x18(%rsp),%rsi
  mov    %rbp,%rdi
  call   <scanf@plt>
  lea    D57(%rip),%rdi
  call   <puts@plt>
  lea    0x20(%rsp),%rsi
  mov    %rbp,%rdi
  call   <scanf@plt>
  lea    D99(%rip),%rdi
  movss  0x20(%rsp),%xmm0
  divss  D95(%rip),%xmm0
  movss  %xmm0,0x20(%rsp)
  call   <puts@plt>
  lea    0x1c(%rsp),%rsi
  mov    %rbp,%rdi
  call   <scanf@plt>
  lea    D114(%rip),%rdi
  call   <puts@plt>
  lea    0x24(%rsp),%rsi
  mov    %rbp,%rdi
  call   <scanf@plt>
  movss  0x24(%rsp),%xmm1
  pxor   %xmm2,%xmm2
  movsd  D110(%rip),%xmm3
  divss  D95(%rip),%xmm1
  movss  %xmm1,0x24(%rsp)
  cvtss2sd %xmm1,%xmm1
  pxor   %xmm0,%xmm0
  subsd  %xmm3,%xmm1
  cvtss2sd 0x20(%rsp),%xmm2
  subsd  %xmm3,%xmm2
  cvtss2sd 0x1c(%rsp),%xmm0
  pxor   %xmm3,%xmm3
  cvtss2sd 0x18(%rsp),%xmm3
  mulsd  %xmm1,%xmm0
  mulsd  %xmm2,%xmm3
  movapd %xmm0,%xmm1
  subsd  %xmm3,%xmm1
  pxor   %xmm3,%xmm3
  divsd  D97(%rip),%xmm1
  cvtsd2ss %xmm1,%xmm1
  comiss %xmm1,%xmm3
  ja     L22
  lea    D27(%rip),%rdi
  pxor   %xmm0,%xmm0
  mov    $0x1,%eax
  movss  %xmm1,0xc(%rsp)
  cvtss2sd %xmm1,%xmm0
  call   <printf@plt>
  movss  0x1c(%rsp),%xmm0
  subss  0x18(%rsp),%xmm0
  movss  0xc(%rsp),%xmm1
  lea    D92(%rip),%rdi
  mov    $0x1,%eax
  subss  %xmm1,%xmm0
  cvtss2sd %xmm0,%xmm0
  call   <printf@plt>
L12:
  mov    0x28(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L18
  add    $0x30,%rsp
  xor    %eax,%eax
  pop    %rbp
  ret
L22:
  divsd  %xmm2,%xmm0
  lea    D41(%rip),%rdi
  mov    $0x1,%eax
  cvtsd2ss %xmm0,%xmm0
  cvtss2sd %xmm0,%xmm0
  call   <printf@plt>
  jmp    L12
L18:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: read_data
arguments: data_label: D108
datatype: string
name: read_data
arguments: data_label: D76
datatype: string
name: read_data
arguments: data_label: D57
datatype: string
name: read_data
arguments: data_label: D99
datatype: string
name: read_data
arguments: data_label: D95
datatype: byte[4]
name: read_data
arguments: data_label: D114
datatype: string
name: read_data
arguments: data_label: D110
datatype: f64
name: read_data
arguments: data_label: D97
datatype: f64
name: read_data
arguments: data_label: D27
datatype: string
name: read_data
arguments: data_label: D92
datatype: string
name: read_data
arguments: data_label: D41
datatype: string

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

tool: D76: %f

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

tool: D99: Target final pressure(in bar)

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

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

tool: D110: 0.209

tool: D97: 0.791

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


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


tool: D41: 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;
}
```