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

```asm
<main>:
  endbr64
  push   %r15
  lea    D21(%rip),%r15
  push   %r14
  lea    D62(%rip),%r14
  push   %r13
  lea    D3(%rip),%r13
  push   %r12
  lea    D13(%rip),%r12
  push   %rbp
  push   %rbx
  mov    $0x5,%ebx
  sub    $0x28,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x18(%rsp)
  xor    %eax,%eax
  lea    0x8(%rsp),%rbp
L0:
  mov    %r12,%rdi
  xor    %eax,%eax
  movl   $0x0,0x8(%rsp)
  call   <printf@plt>
  mov    %rbp,%rsi
  mov    %r13,%rdi
  xor    %eax,%eax
  call   <scanf@plt>
  mov    0x8(%rsp),%esi
  mov    %r14,%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    0x8(%rsp),%eax
  mov    %r15,%rdi
  lea    (%rax,%rax,1),%esi
  xor    %eax,%eax
  call   <printf@plt>
  sub    $0x1,%ebx
  jne    L0
  mov    $0x5,%ebx
L1:
  mov    %r12,%rdi
  xor    %eax,%eax
  movl   $0x0,0x8(%rsp)
  call   <printf@plt>
  mov    %rbp,%rsi
  mov    %r13,%rdi
  xor    %eax,%eax
  call   <scanf@plt>
  mov    0x8(%rsp),%esi
  mov    %r14,%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    0x8(%rsp),%eax
  mov    %r15,%rdi
  lea    (%rax,%rax,1),%esi
  xor    %eax,%eax
  call   <printf@plt>
  sub    $0x1,%ebx
  jne    L1
  movabs $0x65756e69746e6f63,%rax
  movb   $0x0,0x17(%rsp)
  lea    0xf(%rsp),%rbx
  lea    D65(%rip),%rbp
  mov    %rax,0xf(%rsp)
  lea    D46(%rip),%r13
  lea    D38(%rip),%r12
  jmp    L9
  nopl   0x0(%rax,%rax,1)
L31:
  mov    %r13,%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    %rbx,%rsi
  mov    %r12,%rdi
  xor    %eax,%eax
  call   <scanf@plt>
L9:
  mov    %rbp,%rsi
  mov    %rbx,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L31
  mov    0x18(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L17
  add    $0x28,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L17:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: read_data
arguments: label: D21
type: string
name: read_data
arguments: label: D62
type: string
name: read_data
arguments: label: D3
type: string
name: read_data
arguments: label: D13
type: string
name: read_data
arguments: label: D65
type: string
name: read_data
arguments: label: D46
type: string
name: read_data
arguments: label: D38
type: string

tool: D21: Your number doubled: %d



tool: D62: You entered: %d


tool: D3: %d

tool: D13: 
Please enter a number, then I'll double it: 

tool: D65: quit

tool: D46: Type "quit" to exit the program: 

tool: D38: %s

assistant: ```c
int main() {
  int i = 0;
  for (i = 0; i < 5; i++) {
    int integer_number = 0;
    printf("\nPlease enter a number, then I'll double it: ");
    scanf("%d", &integer_number);
    printf("You entered: %d\n", integer_number);
    printf("Your number doubled: %d\n\n", integer_number * 2);
  }
  int counter = 0;
  while (counter < 5) {
    int integer_number = 0;
    printf("\nPlease enter a number, then I'll double it: ");
    scanf("%d", &integer_number);
    printf("You entered: %d\n", integer_number);
    printf("Your number doubled: %d\n\n", integer_number * 2);
    counter++;
  }
  char action[] = "continue";
  while (strcmp(action, "quit") != 0) {
    printf("Type \"quit\" to exit the program: ");
    scanf("%s", action);
  }
  return 0;
}
```