user: 请将以下的汇编代码转换成C语言代码:

```asm
<notak2>:
  endbr64
  push   %r14
  mov    %esi,%r10d
  mov    %edx,%esi
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  mov    0x30(%rsp),%edx
  mov    0x38(%rsp),%ebx
  add    %edx,%r8d
  add    %ebx,%r9d
  mov    %r8d,%eax
  or     %r9d,%eax
  cmp    $0x7,%eax
  jbe    L127
  cmp    $0x7,%r8d
  ja     L224
  test   %r9d,%r9d
  js     L34
  cmp    $0x7,%r9d
  jg     L224
  cmp    $0x1,%ebx
  jne    L119
L52:
  lea    0x0(,%r8,8),%eax
  lea    0x0(,%rdx,8),%ecx
  movslq %r9d,%rsi
  cltq
  movslq %ecx,%rcx
  add    %rsi,%rax
  add    $0x1,%rcx
  add    %rdi,%rax
  jmp    L124
  nop
L83:
  add    %edx,%r8d
  add    $0x1,%r9d
  js     L34
  cmp    $0x7,%r8d
  ja     L224
  add    %rcx,%rax
  cmp    $0x7,%r9d
  jg     L224
L124:
  cmp    (%rax),%r10b
  je     L83
L107:
  cmp    $0x7,%r9d
  jg     L224
  lea    (%r9,%r8,8),%eax
  cltq
  movzbl (%rdi,%rax,1),%r10d
L224:
  pop    %rbx
  mov    %r10d,%eax
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
  xchg   %ax,%ax
L127:
  lea    (%r9,%r8,8),%eax
  mov    %ecx,%r11d
  cltq
  movzbl (%rdi,%rax,1),%ecx
  cmp    $0x1,%ebx
  jne    L132
  lea    (%rdx,%r8,1),%eax
  movslq %r9d,%rbp
  lea    0x0(,%rdx,8),%ebx
  shl    $0x3,%eax
  movslq %ebx,%rbx
  cltq
  add    $0x1,%rbx
  add    %rbp,%rax
  movslq %edx,%rbp
  neg    %rbp
  add    %rdi,%rax
  shl    $0x3,%rbp
  jmp    L101
  nopw   0x0(%rax,%rax,1)
L9:
  add    %rbx,%rax
  movzbl (%rax,%rbp,1),%ecx
  cmp    %r11b,%cl
  je     L259
L101:
  test   %cl,%cl
  jne    L52
  add    $0x1,%r9d
  add    %edx,%r8d
  mov    %r9d,%ecx
  or     %r8d,%ecx
  cmp    $0x7,%ecx
  jbe    L9
L259:
  mov    %esi,%r10d
  pop    %rbx
  pop    %rbp
  mov    %r10d,%eax
  pop    %r12
  pop    %r13
  pop    %r14
  ret
  nopl   (%rax)
L34:
  cmp    $0x7,%r8d
  ja     L224
  test   %r9d,%r9d
  jns    L107
  pop    %rbx
  mov    %r10d,%eax
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
  nop
L119:
  movslq %ebx,%r12
L171:
  lea    0x0(,%r8,8),%eax
  lea    0x0(,%rdx,8),%ecx
  movslq %r9d,%rsi
  cltq
  movslq %ecx,%rcx
  add    %rsi,%rax
  add    %r12,%rcx
  add    %rdi,%rax
  jmp    L96
  nopl   (%rax)
L8:
  add    %edx,%r8d
  add    %ebx,%r9d
  cmp    $0x7,%r8d
  ja     L224
  test   %r9d,%r9d
  js     L34
  add    %rcx,%rax
  cmp    $0x7,%r9d
  jg     L224
L96:
  cmp    %r10b,(%rax)
  je     L8
  jmp    L107
L132:
  lea    (%rdx,%r8,1),%eax
  movslq %ebx,%r12
  movslq %r9d,%rbp
  shl    $0x3,%eax
  add    %r12,%rbp
  lea    0x0(,%rdx,8),%r13d
  mov    %r12,%r14
  cltq
  movslq %r13d,%r13
  neg    %r14
  add    %rbp,%rax
  movslq %edx,%rbp
  add    %r12,%r13
  neg    %rbp
  add    %rdi,%rax
  shl    $0x3,%rbp
  jmp    L63
  nopl   0x0(%rax)
L97:
  add    %r13,%rax
  lea    (%rax,%rbp,1),%rcx
  movzbl (%rcx,%r14,1),%ecx
  cmp    %r11b,%cl
  je     L259
L63:
  test   %cl,%cl
  jne    L171
  add    %edx,%r8d
  add    %ebx,%r9d
  mov    %r8d,%ecx
  or     %r9d,%ecx
  cmp    $0x7,%ecx
  jbe    L97
  jmp    L259
```

assistant: ```c
char notak2(char b[64], char p, char o, char e, int x, int y, int m, int n) {
  x += m;
  y += n;
  if (x >= 0 && x <= 7 && y >= 0 && y <= 7)
    while (b[x * 8 + y] == 0) {
      x += m;
      y += n;
      if (x < 0 || x > 7 || y < 0 || y > 7 || b[x * 8 + y] == e)
        return o;
    }
  while (x >= 0 && x <= 7 && y >= 0 && y <= 7 && b[x * 8 + y] == p) {
    x += m;
    y += n;
  }
  if (x < 0 || x > 7 || y < 0 || y > 7)
    return p;
  return b[x * 8 + y];
}
```