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

```asm
<maze_solve_helper_2>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  mov    %rdi,-0x28(%rbp)
  movl   $0x0,-0x20(%rbp)
  movl   $0x0,-0x1c(%rbp)
  movl   $0x0,-0x18(%rbp)
  movl   $0x1,-0x14(%rbp)
  movl   $0x0,-0x10(%rbp)
  movl   $0x0,-0xc(%rbp)
  movl   $0x0,-0x8(%rbp)
  movl   $0x0,-0x4(%rbp)
  jmp    L419
L240:
  movl   $0x0,-0x14(%rbp)
  movl   $0x0,-0x20(%rbp)
  movl   $0x0,-0x1c(%rbp)
  movl   $0x0,-0x18(%rbp)
  jmp    L208
L25:
  movl   $0x0,-0x18(%rbp)
  movl   $0x0,-0x1c(%rbp)
  jmp    L291
L226:
  movl   $0x0,-0x18(%rbp)
  mov    -0x20(%rbp),%eax
  movslq %eax,%rdx
  mov    %rdx,%rax
  shl    $0x3,%rax
  add    %rdx,%rax
  lea    0x0(,%rax,8),%rdx
  add    %rax,%rdx
  mov    -0x28(%rbp),%rax
  add    %rax,%rdx
  mov    -0x1c(%rbp),%eax
  cltq
  movzbl (%rdx,%rax,1),%eax
  cmp    $0x20,%al
  jne    L276
  cmpl   $0x0,-0x20(%rbp)
  je     L253
  mov    -0x20(%rbp),%eax
  movslq %eax,%rdx
  mov    %rdx,%rax
  shl    $0x3,%rax
  add    %rdx,%rax
  lea    0x0(,%rax,8),%rdx
  add    %rdx,%rax
  lea    -0x51(%rax),%rdx
  mov    -0x28(%rbp),%rax
  add    %rax,%rdx
  mov    -0x1c(%rbp),%eax
  cltq
  movzbl (%rdx,%rax,1),%eax
  cmp    $0x23,%al
  je     L405
  mov    -0x20(%rbp),%eax
  movslq %eax,%rdx
  mov    %rdx,%rax
  shl    $0x3,%rax
  add    %rdx,%rax
  lea    0x0(,%rax,8),%rdx
  add    %rdx,%rax
  lea    -0x51(%rax),%rdx
  mov    -0x28(%rbp),%rax
  add    %rax,%rdx
  mov    -0x1c(%rbp),%eax
  cltq
  movzbl (%rdx,%rax,1),%eax
  cmp    $0x2a,%al
  jne    L253
L405:
  addl   $0x1,-0x18(%rbp)
L253:
  cmpl   $0x0,-0x1c(%rbp)
  je     L77
  mov    -0x20(%rbp),%eax
  movslq %eax,%rdx
  mov    %rdx,%rax
  shl    $0x3,%rax
  add    %rdx,%rax
  lea    0x0(,%rax,8),%rdx
  add    %rax,%rdx
  mov    -0x28(%rbp),%rax
  add    %rax,%rdx
  mov    -0x1c(%rbp),%eax
  sub    $0x1,%eax
  cltq
  movzbl (%rdx,%rax,1),%eax
  cmp    $0x23,%al
  je     L377
  mov    -0x20(%rbp),%eax
  movslq %eax,%rdx
  mov    %rdx,%rax
  shl    $0x3,%rax
  add    %rdx,%rax
  lea    0x0(,%rax,8),%rdx
  add    %rax,%rdx
  mov    -0x28(%rbp),%rax
  add    %rax,%rdx
  mov    -0x1c(%rbp),%eax
  sub    $0x1,%eax
  cltq
  movzbl (%rdx,%rax,1),%eax
  cmp    $0x2a,%al
  jne    L77
L377:
  addl   $0x1,-0x18(%rbp)
L77:
  cmpl   $0x29,-0x20(%rbp)
  je     L98
  mov    -0x20(%rbp),%eax
  cltq
  lea    0x1(%rax),%rdx
  mov    %rdx,%rax
  shl    $0x3,%rax
  add    %rdx,%rax
  lea    0x0(,%rax,8),%rdx
  add    %rax,%rdx
  mov    -0x28(%rbp),%rax
  add    %rax,%rdx
  mov    -0x1c(%rbp),%eax
  cltq
  movzbl (%rdx,%rax,1),%eax
  cmp    $0x23,%al
  je     L298
  mov    -0x20(%rbp),%eax
  cltq
  lea    0x1(%rax),%rdx
  mov    %rdx,%rax
  shl    $0x3,%rax
  add    %rdx,%rax
  lea    0x0(,%rax,8),%rdx
  add    %rax,%rdx
  mov    -0x28(%rbp),%rax
  add    %rax,%rdx
  mov    -0x1c(%rbp),%eax
  cltq
  movzbl (%rdx,%rax,1),%eax
  cmp    $0x2a,%al
  jne    L98
L298:
  addl   $0x1,-0x18(%rbp)
L98:
  cmpl   $0x51,-0x1c(%rbp)
  je     L366
  mov    -0x20(%rbp),%eax
  movslq %eax,%rdx
  mov    %rdx,%rax
  shl    $0x3,%rax
  add    %rdx,%rax
  lea    0x0(,%rax,8),%rdx
  add    %rax,%rdx
  mov    -0x28(%rbp),%rax
  add    %rax,%rdx
  mov    -0x1c(%rbp),%eax
  add    $0x1,%eax
  cltq
  movzbl (%rdx,%rax,1),%eax
  cmp    $0x23,%al
  je     L317
  mov    -0x20(%rbp),%eax
  movslq %eax,%rdx
  mov    %rdx,%rax
  shl    $0x3,%rax
  add    %rdx,%rax
  lea    0x0(,%rax,8),%rdx
  add    %rax,%rdx
  mov    -0x28(%rbp),%rax
  add    %rax,%rdx
  mov    -0x1c(%rbp),%eax
  add    $0x1,%eax
  cltq
  movzbl (%rdx,%rax,1),%eax
  cmp    $0x2a,%al
  jne    L366
L317:
  addl   $0x1,-0x18(%rbp)
L366:
  cmpl   $0x2,-0x18(%rbp)
  jle    L276
  mov    -0x20(%rbp),%eax
  movslq %eax,%rdx
  mov    %rdx,%rax
  shl    $0x3,%rax
  add    %rdx,%rax
  lea    0x0(,%rax,8),%rdx
  add    %rax,%rdx
  mov    -0x28(%rbp),%rax
  add    %rax,%rdx
  mov    -0x1c(%rbp),%eax
  cltq
  movb   $0x2a,(%rdx,%rax,1)
  movl   $0x1,-0x14(%rbp)
L276:
  addl   $0x1,-0x1c(%rbp)
L291:
  cmpl   $0x50,-0x1c(%rbp)
  jle    L226
  addl   $0x1,-0x20(%rbp)
L208:
  cmpl   $0x28,-0x20(%rbp)
  jle    L25
L419:
  cmpl   $0x0,-0x14(%rbp)
  jne    L240
  movl   $0x0,-0x20(%rbp)
  movl   $0x0,-0x1c(%rbp)
  jmp    L118
L464:
  movl   $0x0,-0x1c(%rbp)
  jmp    L402
L451:
  mov    -0x20(%rbp),%eax
  movslq %eax,%rdx
  mov    %rdx,%rax
  shl    $0x3,%rax
  add    %rdx,%rax
  lea    0x0(,%rax,8),%rdx
  add    %rax,%rdx
  mov    -0x28(%rbp),%rax
  add    %rax,%rdx
  mov    -0x1c(%rbp),%eax
  cltq
  movzbl (%rdx,%rax,1),%eax
  cmp    $0x20,%al
  jne    L321
  mov    -0x20(%rbp),%eax
  movslq %eax,%rdx
  mov    %rdx,%rax
  shl    $0x3,%rax
  add    %rdx,%rax
  lea    0x0(,%rax,8),%rdx
  add    %rax,%rdx
  mov    -0x28(%rbp),%rax
  add    %rax,%rdx
  mov    -0x1c(%rbp),%eax
  cltq
  movb   $0x2e,(%rdx,%rax,1)
L321:
  mov    -0x20(%rbp),%eax
  movslq %eax,%rdx
  mov    %rdx,%rax
  shl    $0x3,%rax
  add    %rdx,%rax
  lea    0x0(,%rax,8),%rdx
  add    %rax,%rdx
  mov    -0x28(%rbp),%rax
  add    %rax,%rdx
  mov    -0x1c(%rbp),%eax
  cltq
  movzbl (%rdx,%rax,1),%eax
  cmp    $0x2a,%al
  jne    L79
  mov    -0x20(%rbp),%eax
  movslq %eax,%rdx
  mov    %rdx,%rax
  shl    $0x3,%rax
  add    %rdx,%rax
  lea    0x0(,%rax,8),%rdx
  add    %rax,%rdx
  mov    -0x28(%rbp),%rax
  add    %rax,%rdx
  mov    -0x1c(%rbp),%eax
  cltq
  movb   $0x20,(%rdx,%rax,1)
L79:
  addl   $0x1,-0x1c(%rbp)
L402:
  cmpl   $0x50,-0x1c(%rbp)
  jle    L451
  addl   $0x1,-0x20(%rbp)
L118:
  cmpl   $0x28,-0x20(%rbp)
  jle    L464
  movl   $0x0,-0x20(%rbp)
  movl   $0x1,-0x1c(%rbp)
L215:
  cmpl   $0x28,-0x20(%rbp)
  jne    L24
  cmpl   $0x4f,-0x1c(%rbp)
  je     L414
L24:
  cmpl   $0x0,-0x20(%rbp)
  je     L46
  mov    -0x20(%rbp),%eax
  sub    $0x1,%eax
  mov    %eax,-0x8(%rbp)
  mov    -0x1c(%rbp),%eax
  mov    %eax,-0x4(%rbp)
  mov    -0x8(%rbp),%eax
  cmp    -0x10(%rbp),%eax
  jne    L51
  mov    -0x4(%rbp),%eax
  cmp    -0xc(%rbp),%eax
  je     L46
L51:
  mov    -0x8(%rbp),%eax
  movslq %eax,%rdx
  mov    %rdx,%rax
  shl    $0x3,%rax
  add    %rdx,%rax
  lea    0x0(,%rax,8),%rdx
  add    %rax,%rdx
  mov    -0x28(%rbp),%rax
  add    %rax,%rdx
  mov    -0x4(%rbp),%eax
  cltq
  movzbl (%rdx,%rax,1),%eax
  cmp    $0x2e,%al
  jne    L46
  mov    -0x20(%rbp),%eax
  mov    %eax,-0x10(%rbp)
  mov    -0x1c(%rbp),%eax
  mov    %eax,-0xc(%rbp)
  mov    -0x8(%rbp),%eax
  mov    %eax,-0x20(%rbp)
  mov    -0x4(%rbp),%eax
  mov    %eax,-0x1c(%rbp)
  jmp    L10
L46:
  mov    -0x20(%rbp),%eax
  mov    %eax,-0x8(%rbp)
  mov    -0x1c(%rbp),%eax
  sub    $0x1,%eax
  mov    %eax,-0x4(%rbp)
  mov    -0x8(%rbp),%eax
  cmp    -0x10(%rbp),%eax
  jne    L293
  mov    -0x4(%rbp),%eax
  cmp    -0xc(%rbp),%eax
  je     L412
L293:
  mov    -0x8(%rbp),%eax
  movslq %eax,%rdx
  mov    %rdx,%rax
  shl    $0x3,%rax
  add    %rdx,%rax
  lea    0x0(,%rax,8),%rdx
  add    %rax,%rdx
  mov    -0x28(%rbp),%rax
  add    %rax,%rdx
  mov    -0x4(%rbp),%eax
  cltq
  movzbl (%rdx,%rax,1),%eax
  cmp    $0x2e,%al
  jne    L412
  mov    -0x20(%rbp),%eax
  mov    %eax,-0x10(%rbp)
  mov    -0x1c(%rbp),%eax
  mov    %eax,-0xc(%rbp)
  mov    -0x8(%rbp),%eax
  mov    %eax,-0x20(%rbp)
  mov    -0x4(%rbp),%eax
  mov    %eax,-0x1c(%rbp)
  jmp    L10
L412:
  mov    -0x20(%rbp),%eax
  add    $0x1,%eax
  mov    %eax,-0x8(%rbp)
  mov    -0x1c(%rbp),%eax
  mov    %eax,-0x4(%rbp)
  mov    -0x8(%rbp),%eax
  cmp    -0x10(%rbp),%eax
  jne    L38
  mov    -0x4(%rbp),%eax
  cmp    -0xc(%rbp),%eax
  je     L119
L38:
  mov    -0x8(%rbp),%eax
  movslq %eax,%rdx
  mov    %rdx,%rax
  shl    $0x3,%rax
  add    %rdx,%rax
  lea    0x0(,%rax,8),%rdx
  add    %rax,%rdx
  mov    -0x28(%rbp),%rax
  add    %rax,%rdx
  mov    -0x4(%rbp),%eax
  cltq
  movzbl (%rdx,%rax,1),%eax
  cmp    $0x2e,%al
  jne    L119
  mov    -0x20(%rbp),%eax
  mov    %eax,-0x10(%rbp)
  mov    -0x1c(%rbp),%eax
  mov    %eax,-0xc(%rbp)
  mov    -0x8(%rbp),%eax
  mov    %eax,-0x20(%rbp)
  mov    -0x4(%rbp),%eax
  mov    %eax,-0x1c(%rbp)
  jmp    L10
L119:
  mov    -0x20(%rbp),%eax
  mov    %eax,-0x8(%rbp)
  mov    -0x1c(%rbp),%eax
  add    $0x1,%eax
  mov    %eax,-0x4(%rbp)
  mov    -0x8(%rbp),%eax
  cmp    -0x10(%rbp),%eax
  jne    L339
  mov    -0x4(%rbp),%eax
  cmp    -0xc(%rbp),%eax
  je     L117
L339:
  mov    -0x8(%rbp),%eax
  movslq %eax,%rdx
  mov    %rdx,%rax
  shl    $0x3,%rax
  add    %rdx,%rax
  lea    0x0(,%rax,8),%rdx
  add    %rax,%rdx
  mov    -0x28(%rbp),%rax
  add    %rax,%rdx
  mov    -0x4(%rbp),%eax
  cltq
  movzbl (%rdx,%rax,1),%eax
  cmp    $0x2e,%al
  jne    L117
  mov    -0x20(%rbp),%eax
  mov    %eax,-0x10(%rbp)
  mov    -0x1c(%rbp),%eax
  mov    %eax,-0xc(%rbp)
  mov    -0x8(%rbp),%eax
  mov    %eax,-0x20(%rbp)
  mov    -0x4(%rbp),%eax
  mov    %eax,-0x1c(%rbp)
  jmp    L10
L117:
  mov    $0x0,%eax
  jmp    L222
L10:
  jmp    L215
L414:
  nop
  mov    $0x1,%eax
L222:
  pop    %rbp
  ret
```

assistant: ```c
int maze_solve_helper_2(char maze[41][81]) {
  int r = 0, c = 0, walls = 0, reloop = 1, old_r = 0, old_c = 0, new_r = 0, new_c = 0;
  while (reloop) {
    reloop = 0;
    r = 0;
    c = 0;
    walls = 0;
    while (r < 41) {
      walls = 0;
      c = 0;
      while (c < 81) {
        walls = 0;
        if (maze[r][c] == ' ') {
          if (r != 0)
            if (maze[r - 1][c] == '#' || maze[r - 1][c] == '*')
              walls++;
          if (c != 0)
            if (maze[r][c - 1] == '#' || maze[r][c - 1] == '*')
              walls++;
          if (r != 41)
            if (maze[r + 1][c] == '#' || maze[r + 1][c] == '*')
              walls++;
          if (c != 81)
            if (maze[r][c + 1] == '#' || maze[r][c + 1] == '*')
              walls++;
          if (walls >= 3) {
            maze[r][c] = '*';
            reloop = 1;
          }
        }
        c++;
      }
      r++;
    }
  }
  r = 0;
  c = 0;
  while (r < 41) {
    c = 0;
    while (c < 81) {
      if (maze[r][c] == ' ')
        maze[r][c] = '.';
      if (maze[r][c] == '*')
        maze[r][c] = ' ';
      c++;
    }
    r++;
  }
  r = 0;
  c = 1;
  while (1) {
    if (r == 40 && c == 79)
      goto success;
    if (r != 0) {
      new_r = r - 1;
      new_c = c;
      if (!(new_r == old_r && new_c == old_c) && maze[new_r][new_c] == '.') {
        old_r = r;
        old_c = c;
        r = new_r;
        c = new_c;
        continue;
      }
    }
    new_r = r;
    new_c = c - 1;
    if (!(new_r == old_r && new_c == old_c) && maze[new_r][new_c] == '.') {
      old_r = r;
      old_c = c;
      r = new_r;
      c = new_c;
      continue;
    }
    new_r = r + 1;
    new_c = c;
    if (!(new_r == old_r && new_c == old_c) && maze[new_r][new_c] == '.') {
      old_r = r;
      old_c = c;
      r = new_r;
      c = new_c;
      continue;
    }
    new_r = r;
    new_c = c + 1;
    if (!(new_r == old_r && new_c == old_c) && maze[new_r][new_c] == '.') {
      old_r = r;
      old_c = c;
      r = new_r;
      c = new_c;
      continue;
    }
    return 0;
  }
success:
  return 1;
}
```