user: 请显示与下面列出的汇编代码相匹配的C语言实现：

```asm
<fill_blank_frame>:
  endbr64
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  mov    %rdi,%rbp
  mov    %esi,%ebx
  cmp    $0x32595559,%edx
  je     L99
  jle    L48
  cmp    $0x47504a4d,%edx
  je     L62
  cmp    $0x59565955,%edx
  jne    L138
  test   %esi,%esi
  jle    L62
  mov    %rdi,%rax
  sub    $0x1,%ebx
  shr    $0x2,%ebx
  mov    %ebx,%ebx
  lea    0x4(%rdi,%rbx,4),%rdx
L45:
  movb   $0xff,(%rax)
  movb   $0x0,0x1(%rax)
  movb   $0x0,0x2(%rax)
  movb   $0x0,0x3(%rax)
  add    $0x4,%rax
  cmp    %rdx,%rax
  jne    L45
  jmp    L62
L48:
  cmp    $0x30323449,%edx
  je     L13
  cmp    $0x32315659,%edx
  jne    L138
  lea    0x0(,%rsi,4),%r14d
  movslq %r14d,%r12
  imul   $0x2aaaaaab,%r12,%r12
  shr    $0x20,%r12
  mov    %r14d,%eax
  sar    $0x1f,%eax
  sub    %eax,%r12d
  mov    %r12d,%edx
  mov    $0x29,%esi
  call   <memset@plt>
  movslq %ebx,%r13
  imul   $0x2aaaaaab,%r13,%r13
  shr    $0x20,%r13
  mov    %ebx,%eax
  sar    $0x1f,%eax
  sub    %eax,%r13d
  movslq %r12d,%rdi
  add    %rbp,%rdi
  mov    %r13d,%edx
  mov    $0x6e,%esi
  call   <memset@plt>
  lea    (%r14,%rbx,1),%eax
  movslq %eax,%rdi
  imul   $0x2aaaaaab,%rdi,%rdi
  shr    $0x20,%rdi
  sar    $0x1f,%eax
  sub    %eax,%edi
  movslq %edi,%rdi
  add    %rbp,%rdi
  mov    %r13d,%edx
  mov    $0xf0,%esi
  call   <memset@plt>
L62:
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
L99:
  test   %esi,%esi
  jle    L62
  mov    %rdi,%rax
  sub    $0x1,%ebx
  shr    $0x2,%ebx
  mov    %ebx,%ebx
  lea    0x4(%rdi,%rbx,4),%rdx
L64:
  movb   $0x0,(%rax)
  movb   $0xff,0x1(%rax)
  movb   $0x0,0x2(%rax)
  movb   $0x0,0x3(%rax)
  add    $0x4,%rax
  cmp    %rdx,%rax
  jne    L64
  jmp    L62
L13:
  lea    0x0(,%rsi,4),%r14d
  movslq %r14d,%r12
  imul   $0x2aaaaaab,%r12,%r12
  shr    $0x20,%r12
  mov    %r14d,%eax
  sar    $0x1f,%eax
  sub    %eax,%r12d
  mov    %r12d,%edx
  mov    $0x29,%esi
  call   <memset@plt>
  movslq %ebx,%r13
  imul   $0x2aaaaaab,%r13,%r13
  shr    $0x20,%r13
  mov    %ebx,%eax
  sar    $0x1f,%eax
  sub    %eax,%r13d
  movslq %r12d,%rdi
  add    %rbp,%rdi
  mov    %r13d,%edx
  mov    $0xf0,%esi
  call   <memset@plt>
  lea    (%r14,%rbx,1),%eax
  movslq %eax,%rdi
  imul   $0x2aaaaaab,%rdi,%rdi
  shr    $0x20,%rdi
  sar    $0x1f,%eax
  sub    %eax,%edi
  movslq %edi,%rdi
  add    %rbp,%rdi
  mov    %r13d,%edx
  mov    $0x6e,%esi
  call   <memset@plt>
  jmp    L62
L138:
  mov    %ebx,%edx
  mov    $0xc0,%esi
  mov    %rbp,%rdi
  call   <memset@plt>
  jmp    L62
```

assistant: ```c
void fill_blank_frame(char *buffer, int len, int fmt) {
  int i;
  switch (fmt) {
  case (('Y') | (('V') << 8) | (('1') << 16) | ((unsigned)('2') << 24)):
    memset(buffer, 41, 4 * len / 6);
    memset(buffer + 4 * len / 6, 110, len / 6);
    memset(buffer + 5 * len / 6, 240, len / 6);
    break;
  case (('I') | (('4') << 8) | (('2') << 16) | ((unsigned)('0') << 24)):
    memset(buffer, 41, 4 * len / 6);
    memset(buffer + 4 * len / 6, 240, len / 6);
    memset(buffer + 5 * len / 6, 110, len / 6);
    break;
  case (('U') | (('Y') << 8) | (('V') << 16) | ((unsigned)('Y') << 24)):
    for (i = 0; i < len; i += 4) {
      buffer[i] = 0xFF;
      buffer[i + 1] = 0;
      buffer[i + 2] = 0;
      buffer[i + 3] = 0;
    }
    break;
  case (('Y') | (('U') << 8) | (('Y') << 16) | ((unsigned)('2') << 24)):
    for (i = 0; i < len; i += 4) {
      buffer[i] = 0;
      buffer[i + 1] = 0xFF;
      buffer[i + 2] = 0;
      buffer[i + 3] = 0;
    }
    break;
  case (('M') | (('J') << 8) | (('P') << 16) | ((unsigned)('G') << 24)):
    break;
  default:
    memset(buffer, 0xC0, len);
  }
}
```