user: 下面的汇编指令对应的C源代码是什么:

```asm
<in_ether>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x18,%rsp
  movzbl (%rdi),%ebx
  mov    %rdi,0x8(%rsp)
  test   %bl,%bl
  je     L164
  mov    %rdi,%rbp
  mov    %rsi,%r14
  xor    %r12d,%r12d
  jmp    L34
  nopl   (%rax)
L42:
  lea    -0x30(%r15),%eax
  mov    %eax,0x4(%rsp)
  mov    %eax,%r15d
L199:
  movsbl 0x1(%rbp),%ebx
  shl    $0x4,%r15d
  mov    %ebx,%edi
  mov    %ebx,%r13d
  call   <isdigit@plt>
  test   %rax,%rax
  je     L18
  lea    -0x30(%rbx),%edx
  or     %edx,%r15d
L89:
  test   %r13b,%r13b
  jne    L39
  add    $0x1,%rbp
  mov    %r15b,(%r14)
  add    $0x1,%r12d
  movzbl 0x0(%rbp),%ebx
  cmp    $0x3a,%bl
  je     L32
L23:
  add    $0x1,%r14
  test   %bl,%bl
  je     L160
L117:
  cmp    $0x6,%r12d
  je     L160
L34:
  movsbl %bl,%r15d
  mov    %r15d,%edi
  call   <isdigit@plt>
  test   %rax,%rax
  jne    L42
  lea    -0x61(%rbx),%eax
  cmp    $0x5,%al
  ja     L14
  lea    -0x57(%r15),%eax
  mov    %eax,0x4(%rsp)
  mov    %eax,%r15d
  jmp    L199
  nopl   0x0(%rax)
L18:
  lea    -0x61(%rbx),%eax
  cmp    $0x5,%al
  ja     L175
  lea    -0x57(%rbx),%edx
  or     %edx,%r15d
L39:
  add    $0x2,%rbp
  mov    %r15b,(%r14)
  add    $0x1,%r12d
  movzbl 0x0(%rbp),%ebx
  cmp    $0x3a,%bl
  jne    L23
L32:
  cmp    $0x6,%r12d
  je     L160
  movzbl 0x1(%rbp),%ebx
  add    $0x1,%r14
  add    $0x1,%rbp
  test   %bl,%bl
  jne    L117
L160:
  sub    0x8(%rsp),%rbp
  xor    %eax,%eax
  cmp    $0x11,%rbp
  setne  %al
  add    $0x18,%rsp
  pop    %rbx
  neg    %eax
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  xchg   %ax,%ax
L14:
  sub    $0x41,%ebx
  cmp    $0x5,%bl
  ja     L164
  lea    -0x37(%r15),%eax
  mov    %eax,0x4(%rsp)
  mov    %eax,%r15d
  jmp    L199
  nopl   0x0(%rax,%rax,1)
L175:
  lea    -0x41(%rbx),%eax
  cmp    $0x5,%al
  ja     L200
  lea    -0x37(%rbx),%edx
  or     %edx,%r15d
  jmp    L39
  nop
L200:
  cmp    $0x3a,%bl
  je     L66
  test   %bl,%bl
  jne    L164
L66:
  mov    0x4(%rsp),%r15d
  and    $0xfffffff,%r15d
  jmp    L89
  nopw   0x0(%rax,%rax,1)
L164:
  add    $0x18,%rsp
  mov    $0xffffffff,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

assistant: ```c
int in_ether(char *macStr, unsigned char *hwAddr) {
  char c, *macStrOrig;
  int i;
  unsigned val;
  unsigned char *ptr = hwAddr;
  i = 0;
  macStrOrig = macStr;
  while ((*macStr != '\0') && (i < 6)) {
    val = 0;
    c = *macStr++;
    if (isdigit(c)) {
      val = c - '0';
    } else if (c >= 'a' && c <= 'f') {
      val = c - 'a' + 10;
    } else if (c >= 'A' && c <= 'F') {
      val = c - 'A' + 10;
    } else {
      return (-1);
    }
    val <<= 4;
    c = *macStr;
    if (isdigit(c)) {
      val |= c - '0';
    } else if (c >= 'a' && c <= 'f') {
      val |= c - 'a' + 10;
    } else if (c >= 'A' && c <= 'F') {
      val |= c - 'A' + 10;
    } else if (c == ':' || c == 0) {
      val >>= 4;
    } else {
      return (-1);
    }
    if (c != 0) {
      macStr++;
    }
    *ptr++ = (unsigned char)(val & 0377);
    i++;
    if (*macStr == ':') {
      if (i != 6) {
        macStr++;
      }
    }
  }
  if (macStr - macStrOrig != 17) {
    return (-1);
  } else {
    return (0);
  }
}
```