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

```asm
<main>:
  endbr64
  push   %r15
  lea    D10(%rip),%rdi
  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    0x8(%rsp),%rsi
  call   <scanf@plt>
  mov    0x8(%rsp),%eax
  sub    $0x1,%eax
  cmp    $0x63,%eax
  ja     L14
  mov    $0x1,%ebx
  lea    0x14(%rsp),%r14
  lea    0x10(%rsp),%r13
  lea    0xc(%rsp),%r12
  lea    D52(%rip),%rbp
  jmp    L65
L22:
  call   <solve@plt>
  mov    %ebx,%esi
  lea    D67(%rip),%rdi
  mov    %eax,%r15d
  xor    %eax,%eax
  call   <printf@plt>
  test   %r15d,%r15d
  js     L113
  mov    %r15d,%esi
  lea    D18(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
L33:
  lea    0x1(%rbx),%eax
  cmp    %ebx,0x8(%rsp)
  jle    L69
L32:
  mov    %eax,%ebx
L65:
  mov    %rbp,%rdi
  mov    %r14,%rcx
  mov    %r13,%rdx
  mov    %r12,%rsi
  xor    %eax,%eax
  call   <scanf@plt>
  mov    0xc(%rsp),%edi
  lea    -0x1(%rdi),%eax
  cmp    $0x3e7,%eax
  ja     L59
  mov    0x10(%rsp),%esi
  lea    -0x1(%rsi),%eax
  cmp    $0x3e7,%eax
  ja     L82
  mov    0x14(%rsp),%edx
  lea    -0x1(%rdx),%eax
  cmp    $0x3e7,%eax
  jbe    L22
  lea    D8(%rip),%rdi
  call   <puts@plt>
  lea    0x1(%rbx),%eax
  cmp    %ebx,0x8(%rsp)
  jg     L32
L69:
  xor    %eax,%eax
L70:
  mov    0x18(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L114
  add    $0x28,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L59:
  lea    D16(%rip),%rdi
  call   <puts@plt>
  jmp    L33
  nopl   0x0(%rax)
L113:
  lea    D54(%rip),%rdi
  call   <puts@plt>
  jmp    L33
  nopl   0x0(%rax)
L82:
  lea    D56(%rip),%rdi
  call   <puts@plt>
  jmp    L33
L14:
  lea    D89(%rip),%rdi
  call   <puts@plt>
  mov    $0x1,%eax
  jmp    L70
L114:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: disassemble_data
arguments: data_label: D10
datatype: string
name: disassemble_data
arguments: data_label: D52
datatype: string
name: disassemble_data
arguments: data_label: D67
datatype: string
name: disassemble_data
arguments: data_label: D18
datatype: string
name: disassemble_data
arguments: data_label: D8
datatype: string
name: disassemble_data
arguments: data_label: D16
datatype: string
name: disassemble_data
arguments: data_label: D54
datatype: string
name: disassemble_data
arguments: data_label: D56
datatype: string
name: disassemble_data
arguments: data_label: D89
datatype: string

tool: D10: %d

tool: D52: %d %d %d

tool: D67: Case #%d: 

tool: D18: %d


tool: D8: 1 <= k <= 1000

tool: D16: 1 <= a <= 1000

tool: D54: ERROR

tool: D56: 1 <= b <= 1000

tool: D89: Illegal number of tests (1 <= T <= 100)

assistant: ```c
int main(int argc, char **argv) {
  int num_tests, test = 0, ret = 1;
  int round;
  unsigned int a, b, k;
  scanf("%d", &num_tests);
  if (num_tests < 1 || num_tests > 100) {
    printf("Illegal number of tests (1 <= T <= 100)\n");
    goto out;
  }
  while (test++ < num_tests) {
    scanf("%d %d %d", &a, &b, &k);
    if (a < 1 || a > 1000) {
      printf("1 <= a <= 1000\n");
      continue;
    }
    if (b < 1 || b > 1000) {
      printf("1 <= b <= 1000\n");
      continue;
    }
    if (k < 1 || k > 1000) {
      printf("1 <= k <= 1000\n");
      continue;
    }
    round = solve(a, b, k);
    printf("Case #%d: ", test);
    if (round < 0)
      printf("ERROR\n");
    else
      printf("%d\n", round);
  }
  ret = 0;
out:
  return ret;
}
```