user: What is the c source code of the assembly code below?

```asm
<mark_pos>:
  endbr64
  movslq %esi,%rax
  movslq %edx,%r11
  mov    %ecx,%esi
  push   %r14
  mov    (%rdi,%rax,8),%r10
  push   %r13
  mov    %rax,%r8
  mov    %r11,%r9
  push   %r12
  lea    0x0(,%r11,4),%rcx
  push   %rbp
  push   %rbx
  test   %esi,%esi
  jle    L55
  lea    -0x1(%rsi),%ebp
  mov    %rdi,%rax
  lea    0x8(%rdi,%rbp,8),%rbx
  nopl   (%rax)
L21:
  mov    (%rax),%rdx
  add    %rcx,%rdx
  mov    (%rdx),%r13d
  test   %r13d,%r13d
  jne    L130
  movl   $0xa,(%rdx)
L130:
  add    $0x8,%rax
  cmp    %rax,%rbx
  jne    L21
  mov    %r10,%rax
  lea    (%r10,%rbp,4),%rbx
  jmp    L91
  xchg   %ax,%ax
L162:
  mov    %rdx,%rax
L91:
  mov    (%rax),%r12d
  test   %r12d,%r12d
  jne    L166
  movl   $0xa,(%rax)
L166:
  lea    0x4(%rax),%rdx
  cmp    %rbx,%rax
  jne    L162
L55:
  cmp    %r9d,%r8d
  mov    %r9d,%edx
  lea    0x1(%r8),%eax
  mov    %r9d,%r12d
  cmovge %r8d,%edx
  cltq
  mov    %rcx,%rbx
  sub    %r8d,%r12d
  cmp    %edx,%esi
  jle    L16
  nopw   0x0(%rax,%rax,1)
L49:
  mov    -0x8(%rdi,%rax,8),%rdx
  add    %rbx,%rdx
  mov    (%rdx),%ebp
  test   %ebp,%ebp
  jne    L84
  movl   $0xa,(%rdx)
L84:
  lea    (%r12,%rax,1),%edx
  cmp    %eax,%edx
  cmovl  %eax,%edx
  add    $0x1,%rax
  add    $0x4,%rbx
  cmp    %esi,%edx
  jl     L49
L16:
  mov    %r8d,%ebx
  mov    %r9d,%r13d
  mov    %r9d,%r12d
  mov    %r8d,%eax
  not    %ebx
  not    %r13d
  lea    -0x1(%r8),%edx
  sub    %r8d,%r12d
  shr    $0x1f,%ebx
  shr    $0x1f,%r13d
  or     %r9d,%eax
  movslq %edx,%rdx
  mov    %rcx,%rbp
  js     L69
  nopl   0x0(%rax,%rax,1)
L40:
  mov    0x8(%rdi,%rdx,8),%rax
  add    %rbp,%rax
  mov    (%rax),%r14d
  test   %r14d,%r14d
  jne    L73
  movl   $0xa,(%rax)
L73:
  lea    (%r12,%rdx,1),%eax
  mov    %edx,%r14d
  sub    $0x4,%rbp
  sub    $0x1,%rdx
  not    %eax
  not    %r14d
  shr    $0x1f,%eax
  shr    $0x1f,%r14d
  test   %r14b,%al
  jne    L40
L69:
  cmp    %r8d,%esi
  jle    L123
  test   %r13b,%r13b
  je     L123
  lea    0x1(%r8),%edx
  mov    %rcx,%r12
  lea    (%r9,%r8,1),%ebp
  movslq %edx,%rdx
  cs nopw 0x0(%rax,%rax,1)
L46:
  mov    -0x8(%rdi,%rdx,8),%rax
  add    %r12,%rax
  mov    (%rax),%r13d
  test   %r13d,%r13d
  jne    L56
  movl   $0xa,(%rax)
L56:
  mov    %ebp,%eax
  sub    %edx,%eax
  not    %eax
  shr    $0x1f,%eax
  cmp    %edx,%esi
  setg   %r13b
  add    $0x1,%rdx
  sub    $0x4,%r12
  test   %al,%r13b
  jne    L46
L123:
  cmp    %r9d,%esi
  jle    L146
  lea    -0x1(%r8),%eax
  lea    (%r9,%r8,1),%ebp
  cltq
  test   %bl,%bl
  je     L146
  nopl   (%rax)
L54:
  mov    0x8(%rdi,%rax,8),%rdx
  add    %rcx,%rdx
  mov    (%rdx),%r8d
  test   %r8d,%r8d
  jne    L1
  movl   $0xa,(%rdx)
L1:
  mov    %ebp,%edx
  sub    %eax,%edx
  cmp    %edx,%esi
  mov    %eax,%edx
  not    %edx
  setg   %r8b
  sub    $0x1,%rax
  add    $0x4,%rcx
  shr    $0x1f,%edx
  test   %dl,%r8b
  jne    L54
L146:
  movl   $0x14,(%r10,%r11,4)
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
```

assistant: ```c
int mark_pos(int **board, int x, int y, int q) {
  int i = 0, j = 0;
  int flag = 0;
  for (i = 0; i < q; i++) {
    j = y;
    if (board[i][j] == 0) {
      board[i][j] = 10;
    }
  }
  for (j = 0; j < q; j++) {
    i = x;
    if (board[i][j] == 0) {
      board[i][j] = 10;
    }
  }
  for (i = x, j = y; i < q && j < q; i++, j++) {
    if (board[i][j] == 0) {
      board[i][j] = 10;
    }
  }
  for (i = x, j = y; i >= 0 && j >= 0; i--, j--) {
    if (board[i][j] == 0) {
      board[i][j] = 10;
    }
  }
  for (i = x, j = y; i < q && j >= 0; i++, j--) {
    if (board[i][j] == 0) {
      board[i][j] = 10;
    }
  }
  for (i = x, j = y; i >= 0 && j < q; i--, j++) {
    if (board[i][j] == 0) {
      board[i][j] = 10;
    }
  }
  board[x][y] = 20;
  return 0;
}
```