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

```asm
<validate_sys_macaddr>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x40,%rsp
  mov    %rdi,-0x38(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  cmpq   $0x0,-0x38(%rbp)
  jne    L37
  mov    $0x0,%eax
  jmp    L79
L37:
  mov    -0x38(%rbp),%rax
  mov    %rax,%rdi
  call   <validate_macaddr@plt>
  test   %eax,%eax
  jne    L68
  mov    $0x0,%eax
  jmp    L79
L68:
  movl   $0x0,-0x28(%rbp)
  lea    -0x20(%rbp),%rax
  lea    0xc(%rax),%r8
  lea    -0x20(%rbp),%rax
  lea    0x8(%rax),%rdi
  lea    -0x20(%rbp),%rax
  lea    0x4(%rax),%rcx
  lea    -0x20(%rbp),%rdx
  mov    -0x38(%rbp),%rax
  lea    -0x20(%rbp),%rsi
  add    $0x14,%rsi
  push   %rsi
  lea    -0x20(%rbp),%rsi
  add    $0x10,%rsi
  push   %rsi
  mov    %r8,%r9
  mov    %rdi,%r8
  lea    D19(%rip),%rsi
  mov    %rax,%rdi
  call   <sscanf@plt>
  add    $0x10,%rsp
  cmp    $0x6,%eax
  je     L81
  lea    D35(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  mov    $0x0,%eax
  jmp    L79
L81:
  mov    -0x20(%rbp),%eax
  and    $0x1,%eax
  test   %eax,%eax
  je     L181
  mov    -0xc(%rbp),%esi
  mov    -0x10(%rbp),%r8d
  mov    -0x14(%rbp),%edi
  mov    -0x18(%rbp),%ecx
  mov    -0x1c(%rbp),%edx
  mov    -0x20(%rbp),%eax
  sub    $0x8,%rsp
  push   %rsi
  mov    %r8d,%r9d
  mov    %edi,%r8d
  mov    %eax,%esi
  lea    D33(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  add    $0x10,%rsp
  mov    $0x0,%eax
  jmp    L79
L181:
  mov    -0x20(%rbp),%eax
  test   %eax,%eax
  jne    L154
  mov    -0x1c(%rbp),%eax
  test   %eax,%eax
  jne    L154
  mov    -0x18(%rbp),%eax
  cmp    $0x5e,%eax
  jne    L154
  mov    -0x14(%rbp),%eax
  test   %eax,%eax
  jne    L154
  mov    -0x10(%rbp),%eax
  cmp    $0x1,%eax
  jne    L154
  mov    -0xc(%rbp),%esi
  mov    -0x10(%rbp),%r8d
  mov    -0x14(%rbp),%edi
  mov    -0x18(%rbp),%ecx
  mov    -0x1c(%rbp),%edx
  mov    -0x20(%rbp),%eax
  sub    $0x8,%rsp
  push   %rsi
  mov    %r8d,%r9d
  mov    %edi,%r8d
  mov    %eax,%esi
  lea    D22(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  add    $0x10,%rsp
  mov    $0x0,%eax
  jmp    L79
L154:
  movl   $0x0,-0x24(%rbp)
  jmp    L40
L22:
  mov    -0x24(%rbp),%eax
  cltq
  mov    -0x20(%rbp,%rax,4),%eax
  add    %eax,-0x28(%rbp)
  addl   $0x1,-0x24(%rbp)
L40:
  cmpl   $0x5,-0x24(%rbp)
  jle    L22
  cmpl   $0x0,-0x28(%rbp)
  jne    L41
  lea    D34(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  mov    $0x0,%eax
  jmp    L79
L41:
  mov    $0x1,%eax
L79:
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L177
  call   <__stack_chk_fail@plt>
L177:
  leave
  ret
```

tool_calls: name: parse_data
arguments: data_label: D19
datatype: string
name: parse_data
arguments: data_label: D35
datatype: string
name: parse_data
arguments: data_label: D33
datatype: string
name: parse_data
arguments: data_label: D22
datatype: string
name: parse_data
arguments: data_label: D34
datatype: string

tool: D19: %x:%x:%x:%x:%x:%x

tool: D35: Error: wrong number of octets

tool: D33: Error: %x:%x:%x:%x:%x:%x is a multicast address


tool: D22: Error: %x:%x:%x:%x:%x:%x is a vrrp mac address


tool: D34: Error: zero is not a valid address

assistant: ```c
int validate_sys_macaddr(const char *str) {
  if (!str)
    return 0;
  if (!validate_macaddr(str))
    return 0;
  int a[6];
  int sum = 0;
  if (sscanf(str, "%x:%x:%x:%x:%x:%x", &a[0], &a[1], &a[2], &a[3], &a[4], &a[5]) != 6) {
    printf("Error: wrong number of octets\n");
    return 0;
  }
  if (a[0] & 1) {
    printf("Error: %x:%x:%x:%x:%x:%x is a multicast address\n", a[0], a[1], a[2], a[3], a[4], a[5]);
    return 0;
  }
  if ((a[0] == 0) && (a[1] == 0) && (a[2] == 94) && (a[3] == 0) && (a[4] == 1)) {
    printf("Error: %x:%x:%x:%x:%x:%x is a vrrp mac address\n", a[0], a[1], a[2], a[3], a[4], a[5]);
    return 0;
  }
  int i;
  for (i = 0; i < 6; ++i) {
    sum += a[i];
  }
  if (sum == 0) {
    printf("Error: zero is not a valid address\n");
    return 0;
  }
  return 1;
}
```