user: What is the c source code of the assembly code below:

```asm
<main>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x4e8,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x4d8(%rsp)
  xor    %eax,%eax
  lea    0xc(%rsp),%rsi
  lea    D23(%rip),%rdi
  call   <scanf@plt>
  mov    0xc(%rsp),%eax
  lea    -0x1(%rax),%edx
  mov    %edx,0xc(%rsp)
  test   %eax,%eax
  je     L43
  mov    $0x0,%r14d
  lea    0x1c(%rsp),%r15
  jmp    L90
L13:
  sub    $0x1,%rbx
  je     L116
L9:
  mov    %r12d,%esi
  sub    %ebx,%esi
  mov    0x340(%rsp,%rbx,4),%ebp
  test   %ebp,%ebp
  je     L13
  mov    0x14(%rsp),%edi
  call   <pow@plt>
  imul   %eax,%ebp
  add    %ebp,%r13d
  jmp    L13
L116:
  mov    %r13d,%edx
  mov    0x10(%rsp),%esi
  lea    D15(%rip),%rdi
  call   <printf@plt>
  mov    0xc(%rsp),%eax
  lea    -0x1(%rax),%edx
  mov    %edx,0xc(%rsp)
  test   %eax,%eax
  je     L43
L90:
  lea    0x20(%rsp),%rdi
  mov    $0x32,%ecx
  mov    %r14,%rax
  rep stos %rax,%es:(%rdi)
  lea    0x1b0(%rsp),%rdi
  mov    $0x32,%ecx
  rep stos %rax,%es:(%rdi)
  lea    0x18(%rsp),%rcx
  lea    0x14(%rsp),%rdx
  lea    0x10(%rsp),%rsi
  mov    %r15,%r8
  lea    D4(%rip),%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  mov    0x18(%rsp),%edx
  test   %edx,%edx
  je     L103
  mov    0x14(%rsp),%esi
  lea    0x1ac(%rsp),%rcx
L48:
  mov    %edx,%eax
  cltd
  idiv   %esi
  mov    %edx,(%rcx)
  mov    %eax,%edx
  sub    $0x4,%rcx
  test   %eax,%eax
  jne    L48
  movl   $0x0,0x18(%rsp)
L103:
  mov    0x1c(%rsp),%edx
  test   %edx,%edx
  je     L115
  mov    0x14(%rsp),%esi
  lea    0x33c(%rsp),%rcx
L120:
  mov    %edx,%eax
  cltd
  idiv   %esi
  mov    %edx,(%rcx)
  mov    %eax,%edx
  sub    $0x4,%rcx
  test   %eax,%eax
  jne    L120
  movl   $0x0,0x1c(%rsp)
L115:
  mov    0x14(%rsp),%esi
  mov    $0x0,%ecx
L39:
  mov    0x1b0(%rsp,%rcx,1),%eax
  add    0x20(%rsp,%rcx,1),%eax
  cltd
  idiv   %esi
  mov    %edx,0x340(%rsp,%rcx,1)
  add    $0x4,%rcx
  cmp    $0x190,%rcx
  jne    L39
  mov    $0x63,%ebx
  mov    $0x0,%r13d
  mov    $0x63,%r12d
  jmp    L9
L43:
  mov    0x4d8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L93
  mov    $0x0,%eax
  add    $0x4e8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L93:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: disassemble_data
arguments: data_label: D23
type: string
name: disassemble_data
arguments: data_label: D15
type: string
name: disassemble_data
arguments: data_label: D4
type: string

tool: D23: %d

tool: D15: %d %d


tool: D4: %d%d%d%d

assistant: ```c
int main() {
  int t, n, b, x, y;
  scanf("%d", &t);
  while (t--) {
    int num1[100] = {0}, num2[100] = {0};
    int sum[100], ans;
    ans = 0;
    scanf("%d%d%d%d", &n, &b, &x, &y);
    int i = 99;
    while (x) {
      num1[i--] = x % b;
      x /= b;
    }
    i = 99;
    while (y) {
      num2[i--] = y % b;
      y /= b;
    }
    for (i = 0; i < 100; i++)
      sum[i] = (num1[i] + num2[i]) % b;
    i = 0;
    int j = 99;
    while (j) {
      if (sum[j] != 0)
        ans += (pow(b, i) * sum[j]);
      i++;
      j--;
    }
    printf("%d %d\n", n, ans);
  }
  return 0;
}
```