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

```asm
<load_ip_address>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x30,%rsp
  mov    %rdi,-0x28(%rbp)
  mov    %rsi,-0x30(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  cmpq   $0x0,-0x28(%rbp)
  setne  %al
  movzbl %al,%eax
  mov    %eax,%edi
  call   <assert@plt>
  cmpq   $0x0,-0x30(%rbp)
  setne  %al
  movzbl %al,%eax
  mov    %eax,%edi
  call   <assert@plt>
  mov    -0x28(%rbp),%rax
  mov    %rax,-0x10(%rbp)
  jmp    L47
L109:
  addq   $0x1,-0x10(%rbp)
L47:
  mov    -0x10(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x20,%al
  je     L109
  mov    -0x10(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x9,%al
  je     L109
  movl   $0x0,-0x14(%rbp)
  movl   $0x0,-0x18(%rbp)
L7:
  lea    -0x1c(%rbp),%rdx
  mov    -0x10(%rbp),%rax
  lea    D29(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <sscanf@plt>
  cmp    $0x1,%eax
  je     L1
  mov    -0x10(%rbp),%rax
  mov    %rax,%rsi
  lea    D8(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0x0,%eax
  jmp    L79
L1:
  mov    -0x1c(%rbp),%eax
  cmp    $0xff,%eax
  jle    L153
  mov    -0x1c(%rbp),%eax
  mov    %eax,%esi
  lea    D58(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0x0,%eax
  jmp    L79
L153:
  mov    -0x1c(%rbp),%eax
  test   %eax,%eax
  jns    L14
  mov    -0x1c(%rbp),%eax
  mov    %eax,%esi
  lea    D66(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0x0,%eax
  jmp    L79
L14:
  mov    -0x1c(%rbp),%eax
  not    %eax
  shr    $0x1f,%eax
  movzbl %al,%eax
  mov    %eax,%edi
  call   <assert@plt>
  mov    -0x1c(%rbp),%eax
  cmp    $0xff,%eax
  setle  %al
  movzbl %al,%eax
  mov    %eax,%edi
  call   <assert@plt>
  mov    -0x14(%rbp),%eax
  shl    $0x8,%eax
  mov    %eax,%edx
  mov    -0x1c(%rbp),%eax
  or     %edx,%eax
  mov    %eax,-0x14(%rbp)
  mov    -0x10(%rbp),%rax
  lea    D71(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strspn@plt>
  cltq
  add    %rax,-0x10(%rbp)
  mov    -0x10(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  je     L194
  mov    -0x10(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x20,%al
  je     L194
  mov    -0x10(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x9,%al
  jne    L93
L194:
  cmpl   $0x3,-0x18(%rbp)
  je     L23
  lea    D34(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  mov    $0x0,%eax
  jmp    L79
L93:
  mov    -0x10(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x2e,%al
  jne    L188
  cmpl   $0x3,-0x18(%rbp)
  jne    L67
  mov    $0x4,%esi
  lea    D2(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0x0,%eax
  jmp    L79
L67:
  addq   $0x1,-0x10(%rbp)
  jmp    L192
L188:
  lea    D46(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  mov    $0x0,%eax
  jmp    L79
L192:
  addl   $0x1,-0x18(%rbp)
  jmp    L7
L23:
  nop
  mov    -0x14(%rbp),%eax
  mov    %eax,%edi
  call   <htonl@plt>
  mov    -0x30(%rbp),%rdx
  mov    %eax,(%rdx)
  mov    $0x1,%eax
L79:
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L180
  call   <__stack_chk_fail@plt>
L180:
  leave
  ret
```

tool_calls: name: disassemble_data
arguments: data_label: D29
data_type: string
name: disassemble_data
arguments: data_label: D8
data_type: string
name: disassemble_data
arguments: data_label: D58
data_type: string
name: disassemble_data
arguments: data_label: D66
data_type: string
name: disassemble_data
arguments: data_label: D71
data_type: string
name: disassemble_data
arguments: data_label: D34
data_type: string
name: disassemble_data
arguments: data_label: D2
data_type: string
name: disassemble_data
arguments: data_label: D46
data_type: string

tool: D29: %d

tool: D8: load_ip_address: Unable to parse IP byte from string '%s'


tool: D58: load_ip_address: Invalid IP byte %d higher than 255


tool: D66: load_ip_address: Invalid IP byte %d lower than 0


tool: D71: 0123456789

tool: D34: load_ip_address: Separating dot not found

tool: D2: load_ip_address: Too many IP bytes, only %u expected


tool: D46: load_ip_address: IP byte is not a number

assistant: ```c
int load_ip_address(const char *data, struct in_addr *addr) {
  int i, tmp;
  unsigned int ip;
  const char *pos;
  assert(data != NULL);
  assert(addr != NULL);
  pos = data;
  while (*pos == ' ' || *pos == '\t')
    pos++;
  ip = 0;
  for (i = 0;; i++) {
    if (sscanf(pos, "%d", &tmp) != 1) {
      printf("load_ip_address: Unable to parse IP byte "
             "from string '%s'\n",
             pos);
      return 0;
    }
    if (tmp > 255) {
      printf("load_ip_address: Invalid IP byte %d higher "
             "than 255\n",
             tmp);
      return 0;
    }
    if (tmp < 0) {
      printf("load_ip_address: Invalid IP byte %d lower "
             "than 0\n",
             tmp);
      return 0;
    }
    assert(tmp >= 0);
    assert(tmp <= 255);
    ip = (ip << 8) | tmp;
    pos = pos + strspn(pos, "0123456789");
    if (*pos == '\0' || *pos == ' ' || *pos == '\t') {
      if (i == 4 - 1)
        break;
      printf("load_ip_address: Separating dot not found\n");
      return 0;
    }
    if (*pos == '.') {
      if (i == 4 - 1) {
        printf("load_ip_address: Too many IP "
               "bytes, only %u expected\n",
               4);
        return 0;
      }
      pos++;
    } else {
      printf("load_ip_address: IP byte is not a number\n");
      return 0;
    }
  }
  addr->s_addr = htonl(ip);
  return 1;
}
```