user: Demonstrate the C code that generates the assembly output below:

```asm
<main>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x28,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x18(%rsp)
  xor    %eax,%eax
  lea    0xc(%rsp),%rsi
  lea    D64(%rip),%rdi
  call   <scanf@plt>
  cmpl   $0x0,0xc(%rsp)
  jle    L8
  mov    $0x0,%ebx
  lea    D69(%rip),%r12
  lea    D40(%rip),%r13
  lea    D15(%rip),%r15
  lea    D52(%rip),%r14
  jmp    L109
L52:
  mov    $0x9,%esi
  mov    $0xa,%edi
  call   <pow@plt>
  mov    0x10(%rsp),%rbp
  cmp    %rbp,%rax
  jle    L49
L103:
  mov    0x10(%rsp),%rbp
  mov    $0x9,%esi
  mov    $0xa,%edi
  call   <pow@plt>
  mov    %rax,%rcx
  mov    %rbp,%rax
  cqto
  idiv   %rcx
  mov    %rdx,0x10(%rsp)
  mov    $0x6,%esi
  mov    $0xa,%edi
  call   <pow@plt>
  mov    0x10(%rsp),%rbp
  cmp    %rbp,%rax
  jle    L44
L6:
  mov    0x10(%rsp),%rbp
  mov    $0x6,%esi
  mov    $0xa,%edi
  call   <pow@plt>
  mov    %rax,%rcx
  mov    %rbp,%rax
  cqto
  idiv   %rcx
  mov    %rdx,0x10(%rsp)
  mov    $0x3,%esi
  mov    $0xa,%edi
  call   <pow@plt>
  mov    0x10(%rsp),%rbp
  cmp    %rbp,%rax
  jle    L55
L68:
  mov    0x10(%rsp),%rbp
  mov    $0x3,%esi
  mov    $0xa,%edi
  call   <pow@plt>
  mov    %rax,%rcx
  mov    %rbp,%rax
  cqto
  idiv   %rcx
  mov    %rdx,%rdi
  mov    %rdx,0x10(%rsp)
  call   <num@plt>
  mov    %r13,%rdi
  call   <printf@plt>
L63:
  add    $0x1,%ebx
  cmp    %ebx,0xc(%rsp)
  jle    L8
L109:
  lea    0x10(%rsp),%rsi
  mov    %r12,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  cmpq   $0x0,0x10(%rsp)
  jne    L52
  lea    D18(%rip),%rdi
  call   <printf@plt>
  jmp    L63
L49:
  mov    $0x9,%esi
  mov    $0xa,%edi
  call   <pow@plt>
  mov    %rax,%rcx
  mov    %rbp,%rax
  cqto
  idiv   %rcx
  mov    %rax,%rdi
  call   <num@plt>
  lea    D63(%rip),%rdi
  call   <printf@plt>
  jmp    L103
L44:
  mov    $0x6,%esi
  mov    $0xa,%edi
  call   <pow@plt>
  mov    %rax,%rcx
  mov    %rbp,%rax
  cqto
  idiv   %rcx
  mov    %rax,%rdi
  call   <num@plt>
  mov    %r14,%rdi
  call   <printf@plt>
  jmp    L6
L55:
  mov    $0x3,%esi
  mov    $0xa,%edi
  call   <pow@plt>
  mov    %rax,%rcx
  mov    %rbp,%rax
  cqto
  idiv   %rcx
  mov    %rax,%rdi
  call   <num@plt>
  mov    %r15,%rdi
  call   <printf@plt>
  jmp    L68
L8:
  mov    0x18(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L4
  mov    $0x0,%eax
  add    $0x28,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L4:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: retrieve_data
arguments: data_tag: D64
type: string
name: retrieve_data
arguments: data_tag: D69
type: string
name: retrieve_data
arguments: data_tag: D40
type: string
name: retrieve_data
arguments: data_tag: D15
type: string
name: retrieve_data
arguments: data_tag: D52
type: string
name: retrieve_data
arguments: data_tag: D18
type: string
name: retrieve_data
arguments: data_tag: D63
type: string

tool: D64: %d

tool: D69: %Ld

tool: D40: 


tool: D15: Thousand 

tool: D52: Million 

tool: D18: Zero


tool: D63: Billion 

assistant: ```c
int main() {
  int t, i, j;
  long long n;
  scanf("%d", &t);
  for (i = 0; i < t; i++) {
    scanf("%Ld", &n);
    if (n == 0)
      printf("Zero\n");
    else {
      if (n >= pow(10, 9)) {
        num(n / (long long)pow(10, 9));
        printf("Billion ");
      }
      n = n % (long long)pow(10, 9);
      if (n >= pow(10, 6)) {
        num(n / (long long)pow(10, 6));
        printf("Million ");
      }
      n = n % (long long)pow(10, 6);
      if (n >= pow(10, 3)) {
        num(n / (long long)pow(10, 3));
        printf("Thousand ");
      }
      n = n % (long long)pow(10, 3);
      num(n);
      printf("\n");
    }
  }
  return 0;
}
```