user: 请从给定的汇编指令推导出C源代码：

```asm
<main>:
  endbr64
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x20,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x18(%rsp)
  xor    %eax,%eax
  lea    D17(%rip),%rbp
  lea    D187(%rip),%rbx
  jmp    L54
L45:
  movss  D130(%rip),%xmm1
  comiss %xmm0,%xmm1
  jbe    L84
  mulss  D25(%rip),%xmm0
  addss  D50(%rip),%xmm0
  movss  %xmm0,0xc(%rsp)
L130:
  mov    D66(%rip),%r12d
  movd   %r12d,%xmm3
  comiss 0xc(%rsp),%xmm3
  jbe    L79
L54:
  mov    %rbp,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    0x14(%rsp),%rsi
  mov    %rbx,%rdi
  call   <scanf@plt>
  movss  0x14(%rsp),%xmm0
  pxor   %xmm2,%xmm2
  ucomiss %xmm2,%xmm0
  jp     L139
  je     L135
L139:
  movss  D143(%rip),%xmm1
  comiss %xmm0,%xmm1
  jbe    L45
  mulss  D60(%rip),%xmm0
  addss  D179(%rip),%xmm0
  movss  %xmm0,0xc(%rsp)
  jmp    L130
L84:
  movss  D180(%rip),%xmm1
  comiss %xmm0,%xmm1
  jbe    L131
  mulss  D12(%rip),%xmm0
  addss  D2(%rip),%xmm0
  movss  %xmm0,0xc(%rsp)
  jmp    L130
L131:
  movss  D67(%rip),%xmm1
  comiss %xmm0,%xmm1
  jbe    L65
  mulss  D54(%rip),%xmm0
  addss  D22(%rip),%xmm0
  movss  %xmm0,0xc(%rsp)
  jmp    L130
L65:
  movss  D121(%rip),%xmm1
  comiss %xmm0,%xmm1
  jbe    L69
  mulss  D48(%rip),%xmm0
  addss  D97(%rip),%xmm0
  movss  %xmm0,0xc(%rsp)
  jmp    L130
L69:
  mov    %r12d,0xc(%rsp)
  jmp    L130
L79:
  pxor   %xmm0,%xmm0
  cvtss2sd 0xc(%rsp),%xmm0
  lea    D86(%rip),%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  mov    0xc(%rsp),%r12d
  jmp    L54
L135:
  mov    0x18(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L9
  mov    $0x0,%eax
  add    $0x20,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  ret
L9:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: retrieve_data
arguments: data_tag: D17
type_guessed: string
name: retrieve_data
arguments: data_tag: D187
type_guessed: string
name: retrieve_data
arguments: data_tag: D130
type_guessed: byte[4]
name: retrieve_data
arguments: data_tag: D25
type_guessed: byte[4]
name: retrieve_data
arguments: data_tag: D50
type_guessed: byte[4]
name: retrieve_data
arguments: data_tag: D66
type_guessed: byte[4]
name: retrieve_data
arguments: data_tag: D143
type_guessed: byte[4]
name: retrieve_data
arguments: data_tag: D60
type_guessed: byte[4]
name: retrieve_data
arguments: data_tag: D179
type_guessed: byte[4]
name: retrieve_data
arguments: data_tag: D180
type_guessed: byte[4]
name: retrieve_data
arguments: data_tag: D12
type_guessed: byte[4]
name: retrieve_data
arguments: data_tag: D2
type_guessed: byte[4]
name: retrieve_data
arguments: data_tag: D67
type_guessed: byte[4]
name: retrieve_data
arguments: data_tag: D54
type_guessed: byte[4]
name: retrieve_data
arguments: data_tag: D22
type_guessed: byte[4]
name: retrieve_data
arguments: data_tag: D121
type_guessed: byte[4]
name: retrieve_data
arguments: data_tag: D48
type_guessed: byte[4]
name: retrieve_data
arguments: data_tag: D97
type_guessed: byte[4]
name: retrieve_data
arguments: data_tag: D86
type_guessed: string

tool: D17: Enter value of a trade: 

tool: D187: %f

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

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

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

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

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

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

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

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

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

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

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

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

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

tool: {"D121": [0x00,0x24,0xf4,0x48]}

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

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

tool: D86: Commission: $%1.2f


assistant: ```c
int main(void) {
  float commission, value;
  for (;;) {
    printf("Enter value of a trade: ");
    scanf("%f", &value);
    if (value == 0) {
      break;
    }
    if (value < 2500.00f) {
      commission = 30.00f + .017f * value;
    } else if (value < 6250.00f) {
      commission = 56.00f + .0066f * value;
    } else if (value < 20000.00f) {
      commission = 76.00f + .0034f * value;
    } else if (value < 50000.00f) {
      commission = 100.00f + .0022f * value;
    } else if (value < 500000.00f) {
      commission = 255.00f + .0009f * value;
    }
    if (commission < 39.00f) {
      commission = 39.00f;
    } else
      printf("Commission: $%1.2f\n", commission);
  }
  return 0;
}
```