user: 这段汇编代码用C语言表示是什么样的:

```asm
<demo>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %rbx
  sub    $0x38,%rsp
  mov    $0x0,%eax
  call   <screen_width@plt>
  mov    %eax,-0x34(%rbp)
  mov    $0x0,%eax
  call   <screen_height@plt>
  mov    %eax,-0x30(%rbp)
  movl   $0xb,-0x2c(%rbp)
  movl   $0x5,-0x28(%rbp)
  mov    -0x2c(%rbp),%edx
  mov    -0x28(%rbp),%eax
  lea    (%rdx,%rax,1),%ebx
  mov    $0x0,%eax
  call   <rand@plt>
  mov    -0x34(%rbp),%edx
  sub    -0x2c(%rbp),%edx
  mov    -0x28(%rbp),%ecx
  lea    (%rcx,%rcx,1),%esi
  mov    %edx,%ecx
  sub    %esi,%ecx
  cltd
  idiv   %ecx
  mov    %edx,%eax
  add    %ebx,%eax
  mov    %eax,-0x24(%rbp)
  mov    $0x0,%eax
  call   <rand@plt>
  mov    -0x28(%rbp),%edx
  lea    (%rdx,%rdx,1),%esi
  mov    -0x30(%rbp),%edx
  mov    %edx,%ecx
  sub    %esi,%ecx
  cltd
  idiv   %ecx
  mov    -0x28(%rbp),%eax
  add    %edx,%eax
  mov    %eax,-0x20(%rbp)
  mov    $0x0,%eax
  call   <rand@plt>
  mov    -0x34(%rbp),%edx
  sub    -0x24(%rbp),%edx
  mov    %edx,%ecx
  sub    -0x28(%rbp),%ecx
  cltd
  idiv   %ecx
  mov    %edx,-0x1c(%rbp)
  mov    $0x0,%eax
  call   <rand@plt>
  mov    -0x30(%rbp),%edx
  sub    -0x20(%rbp),%edx
  mov    %edx,%ecx
  sub    -0x28(%rbp),%ecx
  cltd
  idiv   %ecx
  mov    %edx,-0x18(%rbp)
  mov    -0x24(%rbp),%eax
  mov    %eax,%ecx
  lea    D20(%rip),%rax
  mov    %rax,%rdx
  mov    $0x0,%esi
  mov    $0x0,%edi
  call   <draw_formatted@plt>
  mov    -0x20(%rbp),%eax
  mov    %eax,%ecx
  lea    D22(%rip),%rax
  mov    %rax,%rdx
  mov    $0x1,%esi
  mov    $0x0,%edi
  call   <draw_formatted@plt>
  mov    -0x1c(%rbp),%eax
  mov    %eax,%ecx
  lea    D10(%rip),%rax
  mov    %rax,%rdx
  mov    $0x2,%esi
  mov    $0x0,%edi
  call   <draw_formatted@plt>
  mov    -0x18(%rbp),%eax
  mov    %eax,%ecx
  lea    D16(%rip),%rax
  mov    %rax,%rdx
  mov    $0x3,%esi
  mov    $0x0,%edi
  call   <draw_formatted@plt>
  mov    -0x24(%rbp),%eax
  sub    -0x28(%rbp),%eax
  mov    %eax,-0x3c(%rbp)
  jmp    L23
L31:
  mov    -0x20(%rbp),%eax
  sub    -0x28(%rbp),%eax
  mov    %eax,-0x38(%rbp)
  jmp    L22
L47:
  mov    -0x18(%rbp),%r8d
  mov    -0x1c(%rbp),%edi
  mov    -0x20(%rbp),%ecx
  mov    -0x24(%rbp),%edx
  mov    -0x38(%rbp),%esi
  mov    -0x3c(%rbp),%eax
  mov    %r8d,%r9d
  mov    %edi,%r8d
  mov    %eax,%edi
  call   <inside_rect@plt>
  mov    %eax,-0x14(%rbp)
  cmpl   $0x0,-0x14(%rbp)
  je     L2
  mov    -0x38(%rbp),%ecx
  mov    -0x3c(%rbp),%eax
  mov    $0x2b,%edx
  mov    %ecx,%esi
  mov    %eax,%edi
  call   <draw_char@plt>
  jmp    L14
L2:
  mov    -0x38(%rbp),%ecx
  mov    -0x3c(%rbp),%eax
  mov    $0x23,%edx
  mov    %ecx,%esi
  mov    %eax,%edi
  call   <draw_char@plt>
L14:
  addl   $0x1,-0x38(%rbp)
L22:
  mov    -0x20(%rbp),%edx
  mov    -0x18(%rbp),%eax
  add    %eax,%edx
  mov    -0x28(%rbp),%eax
  add    %edx,%eax
  cmp    %eax,-0x38(%rbp)
  jl     L47
  addl   $0x1,-0x3c(%rbp)
L23:
  mov    -0x24(%rbp),%edx
  mov    -0x1c(%rbp),%eax
  add    %eax,%edx
  mov    -0x28(%rbp),%eax
  add    %edx,%eax
  cmp    %eax,-0x3c(%rbp)
  jl     L31
  mov    $0x0,%eax
  call   <show_screen@plt>
  nop
  mov    -0x8(%rbp),%rbx
  leave
  ret
```

tool_calls: name: read_data
arguments: tag: D20
datatype: string
name: read_data
arguments: tag: D22
datatype: string
name: read_data
arguments: tag: D10
datatype: string
name: read_data
arguments: tag: D16
datatype: string

tool: D20: left  : %d


tool: D22: top   : %d


tool: D10: width : %d


tool: D16: height: %d


assistant: ```c
void demo() {
  const int X_MAX = screen_width();
  const int Y_MAX = screen_height();
  const int LEFT = 11;
  const int MARGIN = 5;
  int left = LEFT + MARGIN + rand() % (X_MAX - LEFT - 2 * MARGIN);
  int top = MARGIN + rand() % (Y_MAX - 2 * MARGIN);
  int width = rand() % (X_MAX - left - MARGIN);
  int height = rand() % (Y_MAX - top - MARGIN);
  draw_formatted(0, 0, "left  : %d\n", left);
  draw_formatted(0, 1, "top   : %d\n", top);
  draw_formatted(0, 2, "width : %d\n", width);
  draw_formatted(0, 3, "height: %d\n", height);
  int x = left - MARGIN;
  while (x < (left + width + MARGIN)) {
    int y = top - MARGIN;
    while (y < (top + height + MARGIN)) {
      bool inside = inside_rect(x, y, left, top, width, height);
      if (inside) {
        draw_char(x, y, '+');
      } else {
        draw_char(x, y, '#');
      }
      y++;
    }
    x++;
  }
  show_screen();
}
```