user: 请将以下的汇编代码转换成C语言代码:

```asm
<prompt_for_vertical_args>:
  endbr64
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x28,%rsp
  mov    %edi,%r12d
  mov    %esi,%ebp
  mov    %rdx,%rbx
  mov    %fs:0x28,%rax
  mov    %rax,0x20(%rsp)
  xor    %eax,%eax
  push   $0x0
  push   $0x0
  push   $0x0
  lea    0x30(%rsp),%r9
  mov    $0x0,%r8d
  mov    $0x0,%ecx
  mov    $0x0,%edx
  mov    $0x0,%esi
  call   <vis5d_get_size@plt>
  add    $0x20,%rsp
  lea    0xc(%rsp),%rsi
  mov    %rbx,%rdx
  mov    %r12d,%edi
  call   <vis5d_get_ctx_vertical@plt>
  cmp    $0x2,%ebp
  je     L25
  jg     L132
  test   %ebp,%ebp
  je     L124
  cmp    $0x1,%ebp
  jne    L69
  lea    D79(%rip),%rdi
  call   <puts@plt>
  pxor   %xmm0,%xmm0
  cvtss2sd (%rbx),%xmm0
  lea    D92(%rip),%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  mov    %rbx,%rdi
  call   <input_float@plt>
  pxor   %xmm0,%xmm0
  cvtss2sd 0x4(%rbx),%xmm0
  lea    D17(%rip),%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  lea    0x4(%rbx),%rdi
  call   <input_float@plt>
  jmp    L36
L132:
  cmp    $0x3,%ebp
  jne    L69
  lea    D81(%rip),%rdi
  call   <puts@plt>
  cmpl   $0x0,0x10(%rsp)
  jle    L36
  mov    $0x0,%ebp
  lea    D8(%rip),%r12
L38:
  movss  (%rbx,%rbp,4),%xmm0
  call   <height_to_pressure@plt>
  mov    %ebp,%esi
  mov    %r12,%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  lea    0x14(%rsp),%rdi
  call   <input_float@plt>
  movss  0x14(%rsp),%xmm0
  call   <pressure_to_height@plt>
  movss  %xmm0,(%rbx,%rbp,4)
  add    $0x1,%rbp
  cmp    %ebp,0x10(%rsp)
  jg     L38
  jmp    L36
L124:
  lea    D0(%rip),%rdi
  call   <puts@plt>
  pxor   %xmm0,%xmm0
  cvtss2sd (%rbx),%xmm0
  lea    D22(%rip),%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  mov    %rbx,%rdi
  call   <input_float@plt>
  pxor   %xmm0,%xmm0
  cvtss2sd 0x4(%rbx),%xmm0
  lea    D28(%rip),%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  lea    0x4(%rbx),%rdi
  call   <input_float@plt>
L36:
  mov    0x18(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L45
  add    $0x20,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  ret
L25:
  lea    D74(%rip),%rdi
  call   <puts@plt>
  cmpl   $0x0,0x10(%rsp)
  jle    L36
  mov    $0x0,%ebp
  lea    D90(%rip),%r12
L110:
  pxor   %xmm0,%xmm0
  cvtss2sd (%rbx),%xmm0
  mov    %ebp,%esi
  mov    %r12,%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  mov    %rbx,%rdi
  call   <input_float@plt>
  add    $0x1,%ebp
  add    $0x4,%rbx
  cmp    %ebp,0x10(%rsp)
  jg     L110
  jmp    L36
L69:
  mov    $0x0,%eax
  call   <abort@plt>
  jmp    L36
L45:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: retrieve_data
arguments: data_tag: D79
data_type: string
name: retrieve_data
arguments: data_tag: D92
data_type: string
name: retrieve_data
arguments: data_tag: D17
data_type: string
name: retrieve_data
arguments: data_tag: D81
data_type: string
name: retrieve_data
arguments: data_tag: D8
data_type: string
name: retrieve_data
arguments: data_tag: D0
data_type: string
name: retrieve_data
arguments: data_tag: D22
data_type: string
name: retrieve_data
arguments: data_tag: D28
data_type: string
name: retrieve_data
arguments: data_tag: D74
data_type: string
name: retrieve_data
arguments: data_tag: D90
data_type: string

tool: D79: Linear, equally spaced levels in km:

tool: D92:   Bottom Bound (km) (%g): 

tool: D17:   Level Increment (km) (%g): 

tool: D81: Linear, non-equally spaced levels in mb:

tool: D8:   Level %d Pressure (km) (%g): 

tool: D0: Generic linear vertical coordinate system:

tool: D22:   Bottom Bound (%g): 

tool: D28:   Level Increment (%g): 

tool: D74: Linear, non-equally spaced levels in km:

tool: D90:   Level %d Height (km) (%g): 

assistant: ```c
void prompt_for_vertical_args(int index, int vcs, float vertargs[]) {
  int current_vcs;
  int maxnl, i;
  float pressure;
  vis5d_get_size(index, 0, 0, 0, 0, &maxnl, 0, 0, 0);
  vis5d_get_ctx_vertical(index, &current_vcs, vertargs);
  switch (vcs) {
  case 0:
    printf("Generic linear vertical coordinate system:\n");
    printf("  Bottom Bound (%g): ", vertargs[0]);
    input_float(&vertargs[0]);
    printf("  Level Increment (%g): ", vertargs[1]);
    input_float(&vertargs[1]);
    break;
  case 1:
    printf("Linear, equally spaced levels in km:\n");
    printf("  Bottom Bound (km) (%g): ", vertargs[0]);
    input_float(&vertargs[0]);
    printf("  Level Increment (km) (%g): ", vertargs[1]);
    input_float(&vertargs[1]);
    break;
  case 2:
    printf("Linear, non-equally spaced levels in km:\n");
    for (i = 0; i < maxnl; i++) {
      printf("  Level %d Height (km) (%g): ", i, vertargs[i]);
      input_float(&vertargs[i]);
    }
    break;
  case 3:
    printf("Linear, non-equally spaced levels in mb:\n");
    for (i = 0; i < maxnl; i++) {
      printf("  Level %d Pressure (km) (%g): ", i, height_to_pressure(vertargs[i]));
      input_float(&pressure);
      vertargs[i] = pressure_to_height(pressure);
    }
    break;
  default:
    abort();
  }
}
```