user: Translate the below assembly code into C programming language:

```asm
<strip_directory_from_filename>:
  endbr64
  mov    %rdi,%rcx
  mov    %rsi,%r9
  xor    %eax,%eax
  mov    $0xffffffffffffffff,%r8
  jmp    L214
  nopl   (%rax)
L108:
  test   %dl,%dl
  je     L78
  cmp    $0xa,%dl
  je     L78
L114:
  add    $0x1,%rax
  cmp    $0x400,%rax
  je     L135
L214:
  movzbl (%rcx,%rax,1),%edx
  mov    %eax,%esi
  mov    %eax,%edi
  cmp    $0x2f,%dl
  jne    L108
  movslq %eax,%r8
  jmp    L114
  nopl   0x0(%rax,%rax,1)
L78:
  lea    0x1(%r8),%edx
  cmp    %edi,%edx
  jge    L135
  lea    0x2(%rcx,%r8,1),%r11
  mov    %r9,%r10
  sub    %r8d,%esi
  sub    %r11,%r10
  lea    -0x2(%rsi),%eax
  cmp    $0xe,%r10
  jbe    L63
  cmp    $0x6,%eax
  jbe    L63
  push   %rbx
  lea    -0x1(%rsi),%r11d
  cmp    $0xe,%eax
  jbe    L123
  mov    %r11d,%r10d
  lea    0x1(%rcx,%r8,1),%rbx
  xor    %eax,%eax
  shr    $0x4,%r10d
  shl    $0x4,%r10
  nopl   0x0(%rax,%rax,1)
L89:
  movdqu (%rbx,%rax,1),%xmm0
  movups %xmm0,(%r9,%rax,1)
  add    $0x10,%rax
  cmp    %r10,%rax
  jne    L89
  mov    %r11d,%eax
  and    $0xfffffff0,%eax
  mov    %eax,%r10d
  add    %eax,%edx
  cmp    %eax,%r11d
  je     L199
  sub    %eax,%esi
  lea    -0x1(%rsi),%ebx
  sub    $0x2,%esi
  cmp    $0x6,%esi
  jbe    L207
L40:
  add    %rcx,%r8
  mov    0x1(%rax,%r8,1),%rsi
  mov    %rsi,(%r9,%rax,1)
  mov    %ebx,%eax
  and    $0xfffffff8,%eax
  add    %eax,%edx
  add    %eax,%r10d
  cmp    %eax,%ebx
  je     L199
L207:
  movslq %edx,%rax
  movzbl (%rcx,%rax,1),%esi
  movslq %r10d,%rax
  mov    %sil,(%r9,%rax,1)
  lea    0x1(%rdx),%eax
  lea    0x1(%r10),%esi
  cmp    %eax,%edi
  jle    L199
  cltq
  movslq %esi,%rsi
  movzbl (%rcx,%rax,1),%eax
  mov    %al,(%r9,%rsi,1)
  lea    0x2(%rdx),%eax
  lea    0x2(%r10),%esi
  cmp    %eax,%edi
  jle    L199
  cltq
  movslq %esi,%rsi
  movzbl (%rcx,%rax,1),%eax
  mov    %al,(%r9,%rsi,1)
  lea    0x3(%rdx),%eax
  lea    0x3(%r10),%esi
  cmp    %eax,%edi
  jle    L199
  cltq
  movslq %esi,%rsi
  movzbl (%rcx,%rax,1),%eax
  mov    %al,(%r9,%rsi,1)
  lea    0x4(%rdx),%eax
  lea    0x4(%r10),%esi
  cmp    %eax,%edi
  jle    L199
  cltq
  movslq %esi,%rsi
  movzbl (%rcx,%rax,1),%eax
  mov    %al,(%r9,%rsi,1)
  lea    0x5(%rdx),%eax
  lea    0x5(%r10),%esi
  cmp    %eax,%edi
  jle    L199
  cltq
  movslq %esi,%rsi
  add    $0x6,%edx
  add    $0x6,%r10d
  movzbl (%rcx,%rax,1),%eax
  mov    %al,(%r9,%rsi,1)
  cmp    %edx,%edi
  jle    L199
  movslq %edx,%rdx
  movslq %r10d,%r10
  movzbl (%rcx,%rdx,1),%eax
  mov    %al,(%r9,%r10,1)
L199:
  movslq %r11d,%r11
  pop    %rbx
  add    %r11,%r9
  movb   $0x0,(%r9)
  ret
  nopl   0x0(%rax)
L63:
  mov    %r9,%r10
  movslq %edx,%rdx
  sub    %r8,%r10
  nopl   0x0(%rax)
L143:
  movzbl (%rcx,%rdx,1),%eax
  mov    %al,-0x1(%r10,%rdx,1)
  add    $0x1,%rdx
  cmp    %edx,%edi
  jg     L143
  lea    -0x1(%rsi),%r11d
  movslq %r11d,%r11
  add    %r11,%r9
L135:
  movb   $0x0,(%r9)
  ret
L123:
  mov    %r11d,%ebx
  xor    %eax,%eax
  xor    %r10d,%r10d
  jmp    L40
```

assistant: ```c
void strip_directory_from_filename(char *input_filename, char *output_filename) {
  int i;
  int end_index = 0;
  int last_forward_slash_index = -1;
  for (i = 0; i < 1024; i++) {
    if (input_filename[i] == '/') {
      last_forward_slash_index = i;
    }
    if (input_filename[i] == '\0' || input_filename[i] == '\n') {
      end_index = i;
      break;
    }
  }
  int current_index = 0;
  for (i = last_forward_slash_index + 1; i < end_index; i++) {
    output_filename[current_index] = input_filename[i];
    current_index++;
  }
  output_filename[current_index] = '\0';
}
```