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

```asm
<checkaddline>:
  endbr64
  push   %r15
  movslq %edx,%r15
  movslq %esi,%rdx
  mov    %esi,%ecx
  push   %r14
  lea    (%rdx,%rdx,8),%r14
  sub    %r15d,%ecx
  push   %r13
  shl    $0x4,%r14
  mov    %rdi,%r13
  push   %r12
  lea    (%r15,%r15,8),%r12
  push   %rbp
  shl    $0x4,%r12
  mov    %esi,%ebp
  mov    %r15d,%esi
  push   %rbx
  lea    (%rdi,%r12,1),%rax
  lea    (%rdi,%r14,1),%r12
  mov    %ebp,%edi
  mov    %r15,%rbx
  sub    $0x28,%rsp
  movl   $0x1,(%rax,%rdx,4)
  movl   $0x1,(%r12,%r15,4)
  mov    %rdx,0x10(%rsp)
  mov    %ecx,0xc(%rsp)
  mov    %rax,0x18(%rsp)
  call   <min@plt>
  movslq %eax,%rdi
  sar    $0x1f,%eax
  imul   $0x2aaaaaab,%rdi,%rdi
  shr    $0x20,%rdi
  sub    %eax,%edi
  call   <floor@plt>
  mov    0xc(%rsp),%ecx
  mov    0x10(%rsp),%rdx
  lea    0x1(%rcx),%eax
  test   $0xfffffffd,%eax
  jne    L268
  cmp    $0x5,%ebp
  jg     L41
L66:
  mov    $0x1,%eax
L128:
  add    $0x6,%ebx
  movslq %ebx,%rbx
  lea    0x0(%r13,%rbx,4),%rcx
  cmpl   $0x1,0x360(%r14,%rcx,1)
  jne    L226
  add    $0x6,%ebp
  movslq %ebp,%rbp
  cmpl   $0x1,(%r12,%rbp,4)
  jne    L226
  jmp    L68
  nopl   0x0(%rax)
L268:
  cmp    $0xfffffffa,%ecx
  je     L194
  cmp    $0x6,%ecx
  je     L194
L226:
  add    $0x28,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax)
L41:
  lea    -0x6(%r15),%eax
  cltq
  lea    0x0(%r13,%rax,4),%rcx
  cmpl   $0x1,-0x360(%r14,%rcx,1)
  je     L150
L127:
  cmp    $0x1d,%ebp
  jle    L66
  add    $0x28,%rsp
  mov    $0x1,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax,%rax,1)
L194:
  lea    0x5(%rbp),%eax
  cmp    $0xa,%eax
  jbe    L193
  lea    -0x1(%rbx),%eax
  cltq
  lea    0x0(%r13,%rax,4),%rcx
  cmpl   $0x1,-0x90(%r14,%rcx,1)
  je     L67
L193:
  lea    0x6(%rbp),%eax
  cmp    $0xa,%eax
  mov    $0x1,%eax
  jbe    L226
L0:
  add    $0x1,%ebx
  movslq %ebx,%rbx
  lea    0x0(%r13,%rbx,4),%rcx
  cmpl   $0x1,0x90(%r14,%rcx,1)
  jne    L226
  add    $0x1,%ebp
  movslq %ebp,%rbp
  cmpl   $0x1,(%r12,%rbp,4)
  jne    L226
L68:
  mov    0x18(%rsp),%rsi
  cmpl   $0x1,(%rsi,%rbx,4)
  jne    L226
  cmpl   $0x1,(%r12,%r15,4)
  je     L123
  cmpl   $0x1,(%rsi,%rdx,4)
  mov    $0x0,%edx
  cmove  %edx,%eax
  jmp    L226
  nopl   0x0(%rax)
L150:
  lea    -0x6(%rbp),%ecx
  movslq %ecx,%rcx
  cmpl   $0x1,(%r12,%rcx,4)
  jne    L127
  mov    0x18(%rsp),%rsi
  cmpl   $0x1,(%rsi,%rax,4)
  jne    L127
  cmpl   $0x1,(%r12,%r15,4)
  je     L131
  cmpl   $0x1,(%rsi,%rdx,4)
  jne    L127
L131:
  xor    %eax,%eax
  cmp    $0x1d,%ebp
  jg     L226
  jmp    L128
  nopl   0x0(%rax)
L67:
  lea    -0x1(%rbp),%ecx
  movslq %ecx,%rcx
  cmpl   $0x1,(%r12,%rcx,4)
  jne    L193
  mov    0x18(%rsp),%rsi
  cmpl   $0x1,(%rsi,%rax,4)
  jne    L193
  cmpl   $0x1,(%r12,%r15,4)
  je     L293
  cmpl   $0x1,(%rsi,%rdx,4)
  jne    L193
L293:
  lea    0x6(%rbp),%eax
  cmp    $0xa,%eax
  mov    $0x0,%eax
  ja     L0
  jmp    L226
L123:
  xor    %eax,%eax
  jmp    L226
```

assistant: ```c
int checkaddline(int madhugrid[36][36], int tempp1, int tempp2) {
  int t, temp, flag, tmp;
  madhugrid[tempp1][tempp2] = madhugrid[tempp2][tempp1] = 1;
  t = tempp1 - tempp2;
  temp = min(tempp1, tempp2);
  tmp = floor(temp / 6);
  if (t == -1 || t == 1) {
    flag = 0;
    if (tempp1 > 5 && madhugrid[tempp1 - 6][tempp2 - 6] == 1 && madhugrid[tempp1][tempp1 - 6] == 1 && madhugrid[tempp2][tempp2 - 6] == 1) {
      if ((madhugrid[tempp1][tempp2] == 1 || madhugrid[tempp2][tempp1] == 1)) {
        flag = 1;
      }
    }
    if (tempp1 < 30 && madhugrid[tempp1 + 6][tempp2 + 6] == 1 && madhugrid[tempp1][tempp1 + 6] == 1 && madhugrid[tempp2][tempp2 + 6] == 1) {
      if ((madhugrid[tempp1][tempp2] == 1 || madhugrid[tempp2][tempp1] == 1)) {
        flag = 1;
      }
    }
    if (flag) {
      return 0;
    } else {
      return 1;
    }
  } else if (t == -6 || t == 6) {
    flag = 0;
    if (tempp1 / 6 != 0 && madhugrid[tempp1 - 1][tempp2 - 1] == 1 && madhugrid[tempp1][tempp1 - 1] == 1 && madhugrid[tempp2][tempp2 - 1] == 1) {
      if ((madhugrid[tempp1][tempp2] == 1 || madhugrid[tempp2][tempp1] == 1)) {
        flag = 1;
      }
    }
    if ((tempp1 + 1) / 6 != 0 && madhugrid[tempp1 + 1][tempp2 + 1] == 1 && madhugrid[tempp1][tempp1 + 1] == 1 && madhugrid[tempp2][tempp2 + 1] == 1) {
      if ((madhugrid[tempp1][tempp2] == 1 || madhugrid[tempp2][tempp1] == 1)) {
        flag = 1;
      }
    }
    if (flag) {
      return 0;
    } else {
      return 1;
    }
  }
}
```