user: 请从给定的汇编指令推导出C源代码:

```asm
<Draw_Mark>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  mov    %esi,%r12d
  push   %rbp
  push   %rbx
  sub    $0x28,%rsp
  test   %esi,%esi
  js     L88
  mov    %r8d,%esi
  cmp    %r8d,%r12d
  jae    L88
  mov    %edx,%r13d
  test   %edx,%edx
  js     L88
  cmp    %r9d,%edx
  jae    L88
  lea    -0x4(%r12),%r15d
  xor    %eax,%eax
  lea    -0x4(%rdx),%r14d
  mov    %ecx,%ebx
  test   %r15d,%r15d
  lea    0x4(%r12),%r10d
  lea    0x4(%rdx),%ebp
  cmovs  %eax,%r15d
  test   %r14d,%r14d
  lea    -0x1(%r9),%r11d
  cmovs  %eax,%r14d
  lea    -0x1(%r8),%eax
  cmp    %r8d,%r10d
  cmovae %eax,%r10d
  cmp    %r9d,%ebp
  mov    %eax,(%rsp)
  cmovae %r11d,%ebp
  cmp    $0x1,%edx
  jg     L34
  cmp    %r11d,%r13d
  jb     L129
L118:
  cmp    $0x1,%r12d
  jg     L44
  cmp    (%rsp),%r12d
  jb     L8
L103:
  sub    $0x8,%rsp
  mov    %r10d,%r8d
  mov    %r13d,%r9d
  mov    %r13d,%ecx
  push   $0x0
  mov    %r15d,%edx
  mov    %esi,0x18(%rsp)
  mov    %rdi,0x10(%rsp)
  call   <Draw_HV_Line@plt>
  mov    0x18(%rsp),%esi
  mov    %r12d,%edx
  mov    %ebp,%r9d
  mov    0x10(%rsp),%rdi
  mov    %r12d,%r8d
  mov    %r14d,%ecx
  movl   $0x0,(%rsp)
  call   <Draw_HV_Line@plt>
  pop    %rax
  pop    %rdx
L88:
  add    $0x28,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   (%rax)
L44:
  mov    %r10d,0x18(%rsp)
  sub    $0x8,%rsp
  mov    %ebp,%r9d
  mov    %r14d,%ecx
  push   %rbx
  lea    -0x1(%r12),%edx
  mov    %edx,%r8d
  mov    %esi,0x24(%rsp)
  mov    %rdi,0x18(%rsp)
  call   <Draw_HV_Line@plt>
  pop    %rdi
  pop    %r8
  mov    0x18(%rsp),%r10d
  mov    0x14(%rsp),%esi
  mov    0x8(%rsp),%rdi
  cmp    (%rsp),%r12d
  jae    L103
  jmp    L8
  cs nopw 0x0(%rax,%rax,1)
L34:
  mov    %r11d,0x1c(%rsp)
  sub    $0x8,%rsp
  lea    -0x1(%rdx),%ecx
  mov    %r10d,%r8d
  push   %rbx
  mov    %ecx,%r9d
  mov    %r15d,%edx
  mov    %r10d,0x28(%rsp)
  mov    %esi,0x24(%rsp)
  mov    %rdi,0x18(%rsp)
  call   <Draw_HV_Line@plt>
  pop    %r11
  pop    %rax
  mov    0x1c(%rsp),%r11d
  mov    0x18(%rsp),%r10d
  mov    0x14(%rsp),%esi
  mov    0x8(%rsp),%rdi
  cmp    %r11d,%r13d
  jae    L118
L129:
  sub    $0x8,%rsp
  lea    0x1(%r13),%ecx
  mov    %r10d,%r8d
  mov    %r15d,%edx
  push   %rbx
  mov    %ecx,%r9d
  mov    %esi,0x24(%rsp)
  mov    %rdi,0x18(%rsp)
  mov    %r10d,0x28(%rsp)
  call   <Draw_HV_Line@plt>
  pop    %r9
  pop    %r10
  mov    0x18(%rsp),%r10d
  mov    0x14(%rsp),%esi
  mov    0x8(%rsp),%rdi
  jmp    L118
  nopl   0x0(%rax)
L8:
  mov    %r10d,0x14(%rsp)
  sub    $0x8,%rsp
  mov    %r14d,%ecx
  mov    %ebp,%r9d
  push   %rbx
  lea    0x1(%r12),%edx
  mov    %edx,%r8d
  mov    %rdi,0x10(%rsp)
  mov    %esi,0x18(%rsp)
  call   <Draw_HV_Line@plt>
  pop    %rcx
  pop    %rsi
  mov    0x14(%rsp),%r10d
  mov    0x8(%rsp),%esi
  mov    (%rsp),%rdi
  jmp    L103
```

assistant: ```c
void Draw_Mark(unsigned char *Frame, int X, int Y, int Color, unsigned int Width, unsigned int Height) {
  int MinX = X - 4, MinY = Y - 4, MaxX = X + 4, MaxY = Y + 4;
  if (X >= 0 && X < Width && Y >= 0 && Y < Height) {
    if (MinX < 0)
      MinX = 0;
    if (MinY < 0)
      MinY = 0;
    if (MaxX >= Width)
      MaxX = Width - 1;
    if (MaxY >= Height)
      MaxY = Height - 1;
    if (Y > 1)
      Draw_HV_Line(Frame, Width, MinX, Y - 1, MaxX, Y - 1, Color);
    if (Y < Height - 1)
      Draw_HV_Line(Frame, Width, MinX, Y + 1, MaxX, Y + 1, Color);
    if (X > 1)
      Draw_HV_Line(Frame, Width, X - 1, MinY, X - 1, MaxY, Color);
    if (X < Width - 1)
      Draw_HV_Line(Frame, Width, X + 1, MinY, X + 1, MaxY, Color);
    Draw_HV_Line(Frame, Width, MinX, Y, MaxX, Y, 0);
    Draw_HV_Line(Frame, Width, X, MinY, X, MaxY, 0);
  }
}
```