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

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x20,%rsp
  mov    %edi,-0x14(%rbp)
  mov    %rsi,-0x20(%rbp)
  movl   $0x0,-0xc(%rbp)
  lea    D12(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  mov    $0x0,%eax
  call   <propulsion_ifce_open@plt>
  mov    %eax,-0x4(%rbp)
  cmpl   $0x0,-0x4(%rbp)
  jns    L32
  mov    -0x4(%rbp),%eax
  mov    %eax,%esi
  lea    D69(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0x63,%eax
  jmp    L10
L32:
  movl   $0x0,-0x8(%rbp)
  jmp    L65
L26:
  lea    D13(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  mov    $0xfffffe0c,%ecx
  mov    $0xfffffe0c,%edx
  mov    $0x320,%esi
  mov    $0x320,%edi
  call   <propulsion_ifce_fire@plt>
  mov    %eax,-0xc(%rbp)
  cmpl   $0x0,-0xc(%rbp)
  je     L69
  mov    -0xc(%rbp),%eax
  mov    %eax,%esi
  lea    D36(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    -0xc(%rbp),%eax
  jmp    L10
L69:
  mov    $0x1,%edi
  call   <sleep@plt>
  lea    D25(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  mov    $0x64,%ecx
  mov    $0x64,%edx
  mov    $0xfffffce0,%esi
  mov    $0xfffffce0,%edi
  call   <propulsion_ifce_fire@plt>
  mov    %eax,-0xc(%rbp)
  cmpl   $0x0,-0xc(%rbp)
  je     L18
  mov    -0xc(%rbp),%eax
  mov    %eax,%esi
  lea    D36(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    -0xc(%rbp),%eax
  jmp    L10
L18:
  mov    $0x1,%edi
  call   <sleep@plt>
  addl   $0x1,-0x8(%rbp)
L65:
  cmpl   $0xe,-0x8(%rbp)
  jle    L26
  lea    D18(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  mov    $0x0,%eax
  call   <propulsion_ifce_close@plt>
  mov    -0xc(%rbp),%eax
L10:
  leave
  ret
```

tool_calls: name: disassemble_data
arguments: label: D12
type_infered: string
name: disassemble_data
arguments: label: D69
type_infered: string
name: disassemble_data
arguments: label: D13
type_infered: string
name: disassemble_data
arguments: label: D36
type_infered: string
name: disassemble_data
arguments: label: D25
type_infered: string
name: disassemble_data
arguments: label: D18
type_infered: string

tool: D12: propulsion_ifce: opening thruster devices...

tool: D69: propulsion_ifce.main: error while opening... %8X


tool: D13: propulsion_ifce.main: firing thrusters...800, 800, -500, -500

tool: D36: propulsion_ifce.main: error firing thrusters.  %8.8X


tool: D25: propulsion_ifce.main: firing thrusters...-800, -800, 100, 100

tool: D18: propulsion_ifce.main: closing thruster device...

assistant: ```c
int main(int argc, const char *argv[]) {
  int fd;
  int rc = 0;
  int i;
  printf("propulsion_ifce"
         ": opening thruster devices...\n");
  fd = propulsion_ifce_open();
  if (fd < 0) {
    printf("propulsion_ifce"
           ".main: "
           "error while opening... %8X\n",
           fd);
    return 99;
  }
  for (i = 0; i < 15; i++) {
    printf("propulsion_ifce"
           ".main: "
           "firing thrusters...800, 800, -500, -500\n");
    rc = propulsion_ifce_fire(800, 800, -500, -500);
    if (rc) {
      printf("propulsion_ifce"
             ".main: "
             "error firing thrusters.  %8.8X\n",
             rc);
      return rc;
    }
    sleep(1);
    printf("propulsion_ifce"
           ".main: "
           "firing thrusters...-800, -800, 100, 100\n");
    rc = propulsion_ifce_fire(-800, -800, 100, 100);
    if (rc) {
      printf("propulsion_ifce"
             ".main: "
             "error firing thrusters.  %8.8X\n",
             rc);
      return rc;
    }
    sleep(1);
  }
  printf("propulsion_ifce"
         ".main: "
         "closing thruster device...\n");
  propulsion_ifce_close();
  return rc;
}
```