user: 请显示与下面列出的汇编代码相匹配的C语言实现：

```asm
<Draw_Mark>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x28,%rsp
  mov    %rdi,0x8(%rsp)
  mov    %ecx,0x14(%rsp)
  mov    %r9d,0x18(%rsp)
  test   %esi,%esi
  js     L10
  mov    %esi,%ebx
  mov    %edx,%ebp
  mov    %ecx,%edx
  mov    %r8d,%r12d
  cmp    %r8d,%esi
  jae    L10
  test   %ebp,%ebp
  js     L10
  cmp    %r9d,%ebp
  jae    L10
  lea    0x4(%rbx),%r15d
  lea    -0x4(%rbx),%r14d
  test   %r14d,%r14d
  mov    $0x0,%eax
  cmovs  %eax,%r14d
  lea    -0x4(%rbp),%r13d
  test   %r13d,%r13d
  cmovs  %eax,%r13d
  lea    -0x1(%r8),%eax
  cmp    %r8d,%r15d
  cmovae %eax,%r15d
  lea    0x4(%rbp),%ecx
  lea    -0x1(%r9),%eax
  cmp    %r9d,%ecx
  cmovb  %ecx,%eax
  mov    %eax,0x1c(%rsp)
  cmp    $0x1,%ebp
  jg     L53
L50:
  mov    0x18(%rsp),%eax
  sub    $0x1,%eax
  cmp    %eax,%ebp
  jb     L41
L32:
  cmp    $0x1,%ebx
  jg     L49
L118:
  lea    -0x1(%r12),%eax
  cmp    %eax,%ebx
  jb     L24
L68:
  sub    $0x8,%rsp
  push   $0x0
  mov    %ebp,%r9d
  mov    %r15d,%r8d
  mov    %ebp,%ecx
  mov    %r14d,%edx
  mov    %r12d,%esi
  mov    0x18(%rsp),%r14
  mov    %r14,%rdi
  call   <Draw_HV_Line@plt>
  movl   $0x0,(%rsp)
  mov    0x2c(%rsp),%r9d
  mov    %ebx,%r8d
  mov    %r13d,%ecx
  mov    %ebx,%edx
  mov    %r12d,%esi
  mov    %r14,%rdi
  call   <Draw_HV_Line@plt>
  add    $0x10,%rsp
L10:
  add    $0x28,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L53:
  lea    -0x1(%rbp),%ecx
  sub    $0x8,%rsp
  push   %rdx
  mov    %ecx,%r9d
  mov    %r15d,%r8d
  mov    %r14d,%edx
  mov    %r12d,%esi
  call   <Draw_HV_Line@plt>
  add    $0x10,%rsp
  jmp    L50
L41:
  lea    0x1(%rbp),%ecx
  sub    $0x8,%rsp
  mov    0x1c(%rsp),%eax
  push   %rax
  mov    %ecx,%r9d
  mov    %r15d,%r8d
  mov    %r14d,%edx
  mov    %r12d,%esi
  mov    0x18(%rsp),%rdi
  call   <Draw_HV_Line@plt>
  add    $0x10,%rsp
  jmp    L32
L49:
  lea    -0x1(%rbx),%edx
  sub    $0x8,%rsp
  mov    0x1c(%rsp),%eax
  push   %rax
  mov    0x2c(%rsp),%r9d
  mov    %edx,%r8d
  mov    %r13d,%ecx
  mov    %r12d,%esi
  mov    0x18(%rsp),%rdi
  call   <Draw_HV_Line@plt>
  add    $0x10,%rsp
  jmp    L118
L24:
  lea    0x1(%rbx),%edx
  sub    $0x8,%rsp
  mov    0x1c(%rsp),%eax
  push   %rax
  mov    0x2c(%rsp),%r9d
  mov    %edx,%r8d
  mov    %r13d,%ecx
  mov    %r12d,%esi
  mov    0x18(%rsp),%rdi
  call   <Draw_HV_Line@plt>
  add    $0x10,%rsp
  jmp    L68
```

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);
  }
}
```