user: Converte this assembly snippet into its equivalent C code:

```asm
<main>:
  endbr64
  sub    $0x18,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x8(%rsp)
  xor    %eax,%eax
  lea    D16(%rip),%rdi
  call   <printf@plt>
  lea    0x4(%rsp),%rsi
  lea    D34(%rip),%rdi
  call   <scanf@plt>
  movss  0x4(%rsp),%xmm0
  ucomiss D214(%rip),%xmm0
  jp     L129
  jne    L129
L41:
  mov    0x8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L90
  mov    $0x0,%eax
  add    $0x18,%rsp
  ret
L89:
  movss  D45(%rip),%xmm3
  comiss %xmm0,%xmm3
  jbe    L93
  mulss  D180(%rip),%xmm0
  addss  D28(%rip),%xmm0
L94:
  movss  D209(%rip),%xmm1
  comiss %xmm0,%xmm1
  jbe    L71
  movaps %xmm1,%xmm0
L71:
  cvtss2sd %xmm0,%xmm0
  lea    D182(%rip),%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  lea    D16(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    0x4(%rsp),%rsi
  lea    D34(%rip),%rdi
  call   <scanf@plt>
  movss  0x4(%rsp),%xmm0
  ucomiss D214(%rip),%xmm0
  jp     L129
  je     L41
L129:
  movss  D164(%rip),%xmm2
  comiss %xmm0,%xmm2
  jbe    L89
  mulss  D179(%rip),%xmm0
  addss  D131(%rip),%xmm0
  jmp    L94
L93:
  movss  D100(%rip),%xmm1
  comiss %xmm0,%xmm1
  jbe    L12
  mulss  D63(%rip),%xmm0
  addss  D93(%rip),%xmm0
  jmp    L94
L12:
  movss  D144(%rip),%xmm1
  comiss %xmm0,%xmm1
  jbe    L60
  mulss  D107(%rip),%xmm0
  addss  D106(%rip),%xmm0
  jmp    L94
L60:
  mulss  D118(%rip),%xmm0
  addss  D71(%rip),%xmm0
  jmp    L94
L90:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: disassemble_data
arguments: data_tag: D16
data_type: string
name: disassemble_data
arguments: data_tag: D34
data_type: string
name: disassemble_data
arguments: data_tag: D214
data_type: byte[4]
name: disassemble_data
arguments: data_tag: D45
data_type: byte[4]
name: disassemble_data
arguments: data_tag: D180
data_type: byte[4]
name: disassemble_data
arguments: data_tag: D28
data_type: byte[4]
name: disassemble_data
arguments: data_tag: D209
data_type: byte[4]
name: disassemble_data
arguments: data_tag: D182
data_type: string
name: disassemble_data
arguments: data_tag: D164
data_type: byte[4]
name: disassemble_data
arguments: data_tag: D179
data_type: byte[4]
name: disassemble_data
arguments: data_tag: D131
data_type: byte[4]
name: disassemble_data
arguments: data_tag: D100
data_type: byte[4]
name: disassemble_data
arguments: data_tag: D63
data_type: byte[4]
name: disassemble_data
arguments: data_tag: D93
data_type: byte[4]
name: disassemble_data
arguments: data_tag: D144
data_type: byte[4]
name: disassemble_data
arguments: data_tag: D107
data_type: byte[4]
name: disassemble_data
arguments: data_tag: D106
data_type: byte[4]
name: disassemble_data
arguments: data_tag: D118
data_type: byte[4]
name: disassemble_data
arguments: data_tag: D71
data_type: byte[4]

tool: D16: Enter value of trade: 

tool: D34: %f

tool: {"D214": [0x00,0x00,0x00,0x00]}

tool: {"D45": [0x00,0x50,0xc3,0x45]}

tool: {"D180": [0xd0,0x44,0xd8,0x3b]}

tool: {"D28": [0x00,0x00,0x60,0x42]}

tool: {"D209": [0x00,0x00,0x1c,0x42]}

tool: D182: Commission: $%.2f


tool: {"D164": [0x00,0x40,0x1c,0x45]}

tool: {"D179": [0x96,0x43,0x8b,0x3c]}

tool: {"D131": [0x00,0x00,0xf0,0x41]}

tool: {"D100": [0x00,0x40,0x9c,0x46]}

tool: {"D63": [0x89,0xd2,0x5e,0x3b]}

tool: {"D93": [0x00,0x00,0x98,0x42]}

tool: {"D144": [0x00,0x50,0x43,0x47]}

tool: {"D107": [0xe0,0x2d,0x10,0x3b]}

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

tool: {"D118": [0xfa,0xed,0x6b,0x3a]}

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

assistant: ```c
int main(void) {
  float commission, value;
  printf("Enter value of trade: ");
  scanf("%f", &value);
  while (value != 0.0f) {
    if (value == 0.0f) {
      return 0;
    } else if (value < 2500.00f) {
      commission = 30.00f + 0.017f * value;
    } else if (value < 6250.00f) {
      commission = 56.00f + 0.0066f * value;
    } else if (value < 20000.00f) {
      commission = 76.00f + 0.0034f * value;
    } else if (value < 50000.00f) {
      commission = 100.00f + 0.0022f * value;
    } else {
      commission = 255.00f + 0.0009f * value;
    }
    if (commission < 39.00f) {
      commission = 39.00f;
    }
    printf("Commission: $%.2f\n", commission);
    printf("Enter value of trade: ");
    scanf("%f", &value);
  }
}
```