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

```asm
<find_commit_seq_msg>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x50,%rsp
  mov    %rdi,-0x28(%rbp)
  mov    %esi,-0x2c(%rbp)
  mov    %edx,-0x30(%rbp)
  mov    %ecx,-0x34(%rbp)
  mov    %r8,-0x40(%rbp)
  mov    %r9,-0x48(%rbp)
  mov    0x10(%rbp),%rax
  mov    %rax,-0x50(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movq   $0x0,-0x20(%rbp)
  cmpq   $0x0,-0x28(%rbp)
  setne  %al
  movzbl %al,%eax
  mov    %eax,%edi
  call   <assert@plt>
  mov    -0x2c(%rbp),%eax
  cmp    -0x30(%rbp),%eax
  setle  %al
  movzbl %al,%eax
  mov    %eax,%edi
  call   <assert@plt>
  cmpl   $0x4000000,-0x30(%rbp)
  setle  %al
  movzbl %al,%eax
  mov    %eax,%edi
  call   <assert@plt>
  cmpq   $0x0,-0x48(%rbp)
  setne  %al
  movzbl %al,%eax
  mov    %eax,%edi
  call   <assert@plt>
  cmpl   $0x0,-0x34(%rbp)
  je     L69
  mov    -0x2c(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  mov    %rax,-0x18(%rbp)
  mov    -0x30(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  mov    %rax,-0x10(%rbp)
  jmp    L48
L64:
  mov    -0x18(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x74,%al
  jne    L55
  mov    -0x18(%rbp),%rax
  lea    0x1(%rax),%rdx
  lea    -0x20(%rbp),%rax
  mov    %rax,%rsi
  mov    %rdx,%rdi
  call   <check_commit_msg_body@plt>
  test   %rax,%rax
  je     L55
  mov    -0x40(%rbp),%rax
  movl   $0x1,(%rax)
  mov    -0x20(%rbp),%rdx
  mov    -0x50(%rbp),%rax
  mov    %rdx,(%rax)
  mov    -0x18(%rbp),%rax
  sub    -0x28(%rbp),%rax
  mov    %eax,%edx
  mov    -0x48(%rbp),%rax
  mov    %edx,(%rax)
  mov    $0x0,%eax
  jmp    L93
L55:
  addq   $0x1,-0x18(%rbp)
L48:
  mov    -0x10(%rbp),%rax
  sub    $0xf,%rax
  cmp    %rax,-0x18(%rbp)
  jb     L64
  jmp    L91
L69:
  mov    -0x2c(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  mov    %rax,-0x18(%rbp)
  mov    -0x30(%rbp),%eax
  cltq
  lea    -0xf(%rax),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  mov    %rax,-0x10(%rbp)
  jmp    L128
L24:
  mov    -0x10(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x74,%al
  jne    L60
  mov    -0x10(%rbp),%rax
  lea    0x1(%rax),%rdx
  lea    -0x20(%rbp),%rax
  mov    %rax,%rsi
  mov    %rdx,%rdi
  call   <check_commit_msg_body@plt>
  test   %rax,%rax
  je     L60
  mov    -0x40(%rbp),%rax
  movl   $0x1,(%rax)
  mov    -0x20(%rbp),%rdx
  mov    -0x50(%rbp),%rax
  mov    %rdx,(%rax)
  mov    -0x10(%rbp),%rax
  sub    -0x28(%rbp),%rax
  mov    %eax,%edx
  mov    -0x48(%rbp),%rax
  mov    %edx,(%rax)
  mov    $0x0,%eax
  jmp    L93
L60:
  subq   $0x1,-0x10(%rbp)
L128:
  mov    -0x10(%rbp),%rax
  cmp    -0x18(%rbp),%rax
  jae    L24
L91:
  mov    -0x40(%rbp),%rax
  movl   $0x0,(%rax)
  mov    $0x0,%eax
L93:
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L46
  call   <__stack_chk_fail@plt>
L46:
  leave
  ret
```

assistant: ```c
int find_commit_seq_msg(void *addr, int from_off, int to_off, int fwd, int *found, int *roff, long long *commit_seq) {
  char *bp;
  char *ep;
  long long cseq = 0LL;
  assert(addr != NULL);
  assert(from_off <= to_off);
  assert(to_off <= (1 << 26));
  assert(roff != NULL);
  if (fwd) {
    bp = (char *)addr + from_off;
    ep = (char *)addr + to_off;
    while (bp < ep - (1 + sizeof(int) + sizeof(long long) + sizeof(unsigned short))) {
      if (*bp == 't' && check_commit_msg_body(bp + 1, &cseq)) {
        *found = 1;
        *commit_seq = cseq;
        *roff = (bp - (char *)addr);
        return 0;
      }
      bp++;
    }
  } else {
    bp = (char *)addr + from_off;
    ep = (char *)addr + to_off - (1 + sizeof(int) + sizeof(long long) + sizeof(unsigned short));
    while (ep >= bp) {
      if (*ep == 't' && check_commit_msg_body(ep + 1, &cseq)) {
        *found = 1;
        *commit_seq = cseq;
        *roff = (ep - (char *)addr);
        return 0;
      }
      ep--;
    }
  }
  *found = 0;
  return 0;
}
```