user: 下面的汇编指令对应的C源代码是什么：

```asm
<vertex_degree>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x30,%rsp
  mov    %edi,-0x14(%rbp)
  mov    %esi,-0x18(%rbp)
  mov    %rdx,-0x20(%rbp)
  mov    %ecx,-0x24(%rbp)
  mov    %r8d,-0x28(%rbp)
  mov    %r9d,-0x2c(%rbp)
  movl   $0x0,-0x4(%rbp)
  cmpl   $0x0,-0x24(%rbp)
  js     L8
  mov    -0x24(%rbp),%eax
  cmp    -0x14(%rbp),%eax
  jg     L8
  cmpl   $0x0,-0x28(%rbp)
  js     L8
  mov    -0x28(%rbp),%eax
  cmp    -0x18(%rbp),%eax
  jg     L8
  mov    $0x1,%eax
  jmp    L122
L8:
  mov    $0x0,%eax
L122:
  mov    %eax,%edi
  call   <assert@plt>
  cmpl   $0x0,-0x24(%rbp)
  jle    L246
  cmpl   $0x0,-0x28(%rbp)
  jle    L246
  mov    -0x28(%rbp),%eax
  sub    $0x1,%eax
  imul   -0x14(%rbp),%eax
  mov    %eax,%edx
  mov    -0x24(%rbp),%eax
  sub    $0x1,%eax
  add    %edx,%eax
  movslq %eax,%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  sub    -0x2c(%rbp),%eax
  test   %eax,%eax
  jns    L246
  cmpq   $0x0,0x10(%rbp)
  je     L112
  mov    -0x24(%rbp),%eax
  lea    -0x1(%rax),%edx
  mov    0x10(%rbp),%rax
  mov    %edx,(%rax)
L112:
  cmpq   $0x0,0x18(%rbp)
  je     L181
  mov    -0x28(%rbp),%eax
  lea    -0x1(%rax),%edx
  mov    0x18(%rbp),%rax
  mov    %edx,(%rax)
L181:
  addl   $0x1,-0x4(%rbp)
L246:
  cmpl   $0x0,-0x24(%rbp)
  jle    L2
  mov    -0x28(%rbp),%eax
  cmp    -0x18(%rbp),%eax
  jge    L2
  mov    -0x28(%rbp),%eax
  imul   -0x14(%rbp),%eax
  mov    %eax,%edx
  mov    -0x24(%rbp),%eax
  sub    $0x1,%eax
  add    %edx,%eax
  movslq %eax,%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movsbl %al,%edx
  mov    -0x2c(%rbp),%eax
  add    %edx,%eax
  test   %eax,%eax
  jle    L2
  cmpq   $0x0,0x10(%rbp)
  je     L83
  mov    -0x24(%rbp),%eax
  lea    -0x1(%rax),%edx
  mov    0x10(%rbp),%rax
  mov    %edx,(%rax)
L83:
  cmpq   $0x0,0x18(%rbp)
  je     L242
  mov    0x18(%rbp),%rax
  mov    -0x28(%rbp),%edx
  mov    %edx,(%rax)
L242:
  addl   $0x1,-0x4(%rbp)
L2:
  mov    -0x24(%rbp),%eax
  cmp    -0x14(%rbp),%eax
  jge    L136
  cmpl   $0x0,-0x28(%rbp)
  jle    L136
  mov    -0x28(%rbp),%eax
  sub    $0x1,%eax
  imul   -0x14(%rbp),%eax
  mov    %eax,%edx
  mov    -0x24(%rbp),%eax
  add    %edx,%eax
  movslq %eax,%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movsbl %al,%edx
  mov    -0x2c(%rbp),%eax
  add    %edx,%eax
  test   %eax,%eax
  jle    L136
  cmpq   $0x0,0x10(%rbp)
  je     L222
  mov    0x10(%rbp),%rax
  mov    -0x24(%rbp),%edx
  mov    %edx,(%rax)
L222:
  cmpq   $0x0,0x18(%rbp)
  je     L117
  mov    -0x28(%rbp),%eax
  lea    -0x1(%rax),%edx
  mov    0x18(%rbp),%rax
  mov    %edx,(%rax)
L117:
  addl   $0x1,-0x4(%rbp)
L136:
  mov    -0x24(%rbp),%eax
  cmp    -0x14(%rbp),%eax
  jge    L86
  mov    -0x28(%rbp),%eax
  cmp    -0x18(%rbp),%eax
  jge    L86
  mov    -0x28(%rbp),%eax
  imul   -0x14(%rbp),%eax
  mov    %eax,%edx
  mov    -0x24(%rbp),%eax
  add    %edx,%eax
  movslq %eax,%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  sub    -0x2c(%rbp),%eax
  test   %eax,%eax
  jns    L86
  cmpq   $0x0,0x10(%rbp)
  je     L238
  mov    0x10(%rbp),%rax
  mov    -0x24(%rbp),%edx
  mov    %edx,(%rax)
L238:
  cmpq   $0x0,0x18(%rbp)
  je     L108
  mov    0x18(%rbp),%rax
  mov    -0x28(%rbp),%edx
  mov    %edx,(%rax)
L108:
  addl   $0x1,-0x4(%rbp)
L86:
  cmpl   $0x0,-0x2c(%rbp)
  je     L37
  mov    $0x4,%eax
  sub    -0x4(%rbp),%eax
  jmp    L190
L37:
  mov    -0x4(%rbp),%eax
L190:
  leave
  ret
```

assistant: ```c
int vertex_degree(int w, int h, signed char *soln, int x, int y, int anti, int *sx, int *sy) {
  int ret = 0;
  assert(x >= 0 && x <= w && y >= 0 && y <= h);
  if (x > 0 && y > 0 && soln[(y - 1) * w + (x - 1)] - anti < 0) {
    if (sx)
      *sx = x - 1;
    if (sy)
      *sy = y - 1;
    ret++;
  }
  if (x > 0 && y < h && soln[y * w + (x - 1)] + anti > 0) {
    if (sx)
      *sx = x - 1;
    if (sy)
      *sy = y;
    ret++;
  }
  if (x < w && y > 0 && soln[(y - 1) * w + x] + anti > 0) {
    if (sx)
      *sx = x;
    if (sy)
      *sy = y - 1;
    ret++;
  }
  if (x < w && y < h && soln[y * w + x] - anti < 0) {
    if (sx)
      *sx = x;
    if (sy)
      *sy = y;
    ret++;
  }
  return anti ? 4 - ret : ret;
}
```