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

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbx
  sub    $0x78,%rsp
  mov    %edi,-0x74(%rbp)
  mov    %rsi,-0x80(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x38(%rbp)
  xor    %eax,%eax
  mov    %rsp,%rax
  mov    %rax,%rbx
  cmpl   $0x1,-0x74(%rbp)
  setg   %al
  movzbl %al,%eax
  mov    %eax,%edi
  call   <assert@plt>
  movq   $0x64,-0x60(%rbp)
  movb   $0x6f,-0x65(%rbp)
  mov    -0x60(%rbp),%rax
  sub    $0x1,%rax
  mov    %rax,-0x58(%rbp)
  mov    -0x60(%rbp),%rax
  mov    %rax,-0x90(%rbp)
  movq   $0x0,-0x88(%rbp)
  mov    -0x60(%rbp),%rax
  mov    %rax,-0xa0(%rbp)
  movq   $0x0,-0x98(%rbp)
  mov    $0x10,%eax
  lea    -0x1(%rax),%rdx
  mov    -0x60(%rbp),%rax
  add    %rdx,%rax
  mov    $0x10,%esi
  mov    $0x0,%edx
  div    %rsi
  imul   $0x10,%rax,%rax
  mov    %rax,%rcx
  and    $0xfffffffffffff000,%rcx
  mov    %rsp,%rdx
  sub    %rcx,%rdx
L88:
  cmp    %rdx,%rsp
  je     L60
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L88
L60:
  mov    %rax,%rdx
  and    $0xfff,%edx
  sub    %rdx,%rsp
  mov    %rax,%rdx
  and    $0xfff,%edx
  test   %rdx,%rdx
  je     L13
  and    $0xfff,%eax
  sub    $0x8,%rax
  add    %rsp,%rax
  orq    $0x0,(%rax)
L13:
  mov    %rsp,%rax
  add    $0x0,%rax
  mov    %rax,-0x50(%rbp)
  mov    -0x60(%rbp),%rax
  sub    $0x1,%rax
  mov    %rax,-0x48(%rbp)
  mov    -0x60(%rbp),%rax
  mov    %rax,%r14
  mov    $0x0,%r15d
  mov    -0x60(%rbp),%rax
  mov    %rax,%r12
  mov    $0x0,%r13d
  mov    $0x10,%eax
  lea    -0x1(%rax),%rdx
  mov    -0x60(%rbp),%rax
  add    %rdx,%rax
  mov    $0x10,%esi
  mov    $0x0,%edx
  div    %rsi
  imul   $0x10,%rax,%rax
  mov    %rax,%rcx
  and    $0xfffffffffffff000,%rcx
  mov    %rsp,%rdx
  sub    %rcx,%rdx
L147:
  cmp    %rdx,%rsp
  je     L136
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L147
L136:
  mov    %rax,%rdx
  and    $0xfff,%edx
  sub    %rdx,%rsp
  mov    %rax,%rdx
  and    $0xfff,%edx
  test   %rdx,%rdx
  je     L170
  and    $0xfff,%eax
  sub    $0x8,%rax
  add    %rsp,%rax
  orq    $0x0,(%rax)
L170:
  mov    %rsp,%rax
  add    $0x0,%rax
  mov    %rax,-0x40(%rbp)
  movsbl -0x65(%rbp),%ecx
  mov    -0x60(%rbp),%rdx
  mov    -0x50(%rbp),%rax
  mov    %ecx,%esi
  mov    %rax,%rdi
  call   <memset@plt>
  movsbl -0x65(%rbp),%ecx
  mov    -0x60(%rbp),%rdx
  mov    -0x40(%rbp),%rax
  mov    %ecx,%esi
  mov    %rax,%rdi
  call   <memset@plt>
  mov    -0x80(%rbp),%rax
  add    $0x8,%rax
  mov    (%rax),%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  sub    $0x61,%eax
  cmp    $0x8,%eax
  ja     L149
  mov    %eax,%eax
  lea    0x0(,%rax,4),%rdx
  lea    D4(%rip),%rax
  mov    (%rdx,%rax,1),%eax
  cltq
  lea    D4(%rip),%rdx
  add    %rdx,%rax
  notrack jmp *%rax
  mov    -0x60(%rbp),%rax
  lea    -0x1(%rax),%rdx
  mov    -0x50(%rbp),%rax
  movb   $0x7a,(%rax,%rdx,1)
  mov    -0x60(%rbp),%rax
  lea    -0x1(%rax),%rdx
  mov    -0x40(%rbp),%rax
  movb   $0x78,(%rax,%rdx,1)
  movl   $0x0,-0x64(%rbp)
  jmp    L176
L162:
  mov    -0x64(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x40(%rbp),%rcx
  mov    -0x50(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <strncasecmp@plt>
  test   %eax,%eax
  setne  %dl
  mov    -0x64(%rbp),%eax
  cltq
  cmp    %rax,-0x60(%rbp)
  seta   %al
  xor    %edx,%eax
  movzbl %al,%eax
  mov    %eax,%edi
  call   <assert@plt>
  addl   $0x1,-0x64(%rbp)
L176:
  mov    -0x64(%rbp),%eax
  cltq
  cmp    %rax,-0x60(%rbp)
  jae    L162
  mov    -0x60(%rbp),%rax
  lea    -0x1(%rax),%rdx
  mov    -0x50(%rbp),%rax
  movb   $0x0,(%rax,%rdx,1)
  mov    -0x60(%rbp),%rax
  lea    -0x1(%rax),%rdx
  mov    -0x40(%rbp),%rax
  movb   $0x0,(%rax,%rdx,1)
  mov    -0x60(%rbp),%rax
  lea    (%rax,%rax,1),%rdx
  mov    -0x40(%rbp),%rcx
  mov    -0x50(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <strncasecmp@plt>
  test   %eax,%eax
  sete   %al
  movzbl %al,%eax
  mov    %eax,%edi
  call   <assert@plt>
  jmp    L149
  mov    -0x50(%rbp),%rax
  lea    -0x1(%rax),%rcx
  mov    -0x40(%rbp),%rax
  mov    $0x1,%edx
  mov    %rax,%rsi
  mov    %rcx,%rdi
  call   <strncasecmp@plt>
  jmp    L2
  mov    -0x40(%rbp),%rax
  lea    -0x1(%rax),%rcx
  mov    -0x50(%rbp),%rax
  mov    $0x1,%edx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <strncasecmp@plt>
  jmp    L2
  mov    -0x50(%rbp),%rdx
  mov    -0x60(%rbp),%rax
  lea    (%rdx,%rax,1),%rcx
  mov    -0x40(%rbp),%rax
  mov    $0x1,%edx
  mov    %rax,%rsi
  mov    %rcx,%rdi
  call   <strncasecmp@plt>
  jmp    L2
  mov    -0x40(%rbp),%rdx
  mov    -0x60(%rbp),%rax
  lea    (%rdx,%rax,1),%rcx
  mov    -0x50(%rbp),%rax
  mov    $0x1,%edx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <strncasecmp@plt>
  jmp    L2
  mov    -0x50(%rbp),%rax
  lea    0x1(%rax),%rcx
  mov    -0x60(%rbp),%rdx
  mov    -0x40(%rbp),%rax
  mov    %rax,%rsi
  mov    %rcx,%rdi
  call   <strncasecmp@plt>
  jmp    L2
  mov    -0x40(%rbp),%rax
  lea    0x1(%rax),%rcx
  mov    -0x60(%rbp),%rdx
  mov    -0x50(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <strncasecmp@plt>
  jmp    L2
  mov    -0x60(%rbp),%rax
  lea    -0x1(%rax),%rdx
  mov    -0x50(%rbp),%rax
  movb   $0x0,(%rax,%rdx,1)
  mov    -0x60(%rbp),%rax
  lea    (%rax,%rax,1),%rdx
  mov    -0x40(%rbp),%rcx
  mov    -0x50(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <strncasecmp@plt>
  test   %eax,%eax
  setne  %al
  movzbl %al,%eax
  mov    %eax,%edi
  call   <assert@plt>
  jmp    L149
  mov    -0x60(%rbp),%rax
  lea    -0x1(%rax),%rdx
  mov    -0x40(%rbp),%rax
  movb   $0x0,(%rax,%rdx,1)
  mov    -0x60(%rbp),%rax
  lea    (%rax,%rax,1),%rdx
  mov    -0x40(%rbp),%rcx
  mov    -0x50(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <strncasecmp@plt>
  test   %eax,%eax
  setne  %al
  movzbl %al,%eax
  mov    %eax,%edi
  call   <assert@plt>
  nop
L149:
  mov    $0x0,%eax
L2:
  mov    %rbx,%rsp
  mov    -0x38(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L154
  call   <__stack_chk_fail@plt>
L154:
  lea    -0x28(%rbp),%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
```

assistant: ```c
int main(int argc, char **argv) {
  assert(argc >= 2);
  const size_t size = 100;
  char fill = 'o';
  char s1[size];
  char s2[size];
  memset(s1, fill, size);
  memset(s2, fill, size);
  switch (argv[1][0]) {
  case 'a':
    s1[size - 1] = 'z';
    s2[size - 1] = 'x';
    for (int i = 0; i <= size; ++i)
      assert((strncasecmp(s1, s2, i) == 0) == (i < size));
    s1[size - 1] = '\0';
    s2[size - 1] = '\0';
    assert(strncasecmp(s1, s2, 2 * size) == 0);
    break;
  case 'b':
    return strncasecmp(s1 - 1, s2, 1);
  case 'c':
    return strncasecmp(s1, s2 - 1, 1);
  case 'd':
    return strncasecmp(s1 + size, s2, 1);
  case 'e':
    return strncasecmp(s1, s2 + size, 1);
  case 'f':
    return strncasecmp(s1 + 1, s2, size);
  case 'g':
    return strncasecmp(s1, s2 + 1, size);
  case 'h':
    s1[size - 1] = '\0';
    assert(strncasecmp(s1, s2, 2 * size) != 0);
    break;
  case 'i':
    s2[size - 1] = '\0';
    assert(strncasecmp(s1, s2, 2 * size) != 0);
    break;
  }
  return 0;
}
```