user: 这段汇编代码用C语言表示是什么样的?

```asm
<ConfigIsForRangeIP>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x30,%rsp
  mov    %rdi,-0x28(%rbp)
  mov    %esi,-0x2c(%rbp)
  movl   $0x0,-0x14(%rbp)
  cmpq   $0x0,-0x28(%rbp)
  jne    L65
  mov    $0x0,%eax
  jmp    L22
L65:
  mov    -0x28(%rbp),%rax
  add    $0x8,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  mov    %eax,-0x18(%rbp)
  mov    $0x0,%edi
  call   <IpGetClient@plt>
  mov    %rax,-0x10(%rbp)
  cmpq   $0x0,-0x10(%rbp)
  jne    L100
  mov    $0x0,%eax
  jmp    L22
L100:
  mov    -0x10(%rbp),%rax
  mov    %rax,%rdi
  call   <TagParseRangeIP@plt>
  mov    %rax,-0x8(%rbp)
  cmpq   $0x0,-0x8(%rbp)
  jne    L36
  mov    $0x0,%eax
  jmp    L22
L36:
  movl   $0x0,-0x1c(%rbp)
  jmp    L152
L63:
  mov    -0x1c(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%edx
  mov    -0x1c(%rbp),%eax
  movslq %eax,%rcx
  mov    -0x8(%rbp),%rax
  add    %rcx,%rax
  movzbl (%rax),%eax
  cmp    %al,%dl
  jg     L102
  mov    -0x1c(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x8(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%edx
  mov    -0x1c(%rbp),%eax
  cltq
  lea    0x4(%rax),%rcx
  mov    -0x28(%rbp),%rax
  add    %rcx,%rax
  movzbl (%rax),%eax
  cmp    %al,%dl
  jg     L102
  addl   $0x1,-0x1c(%rbp)
  subl   $0x8,-0x18(%rbp)
L152:
  cmpl   $0x7,-0x18(%rbp)
  jg     L63
  cmpl   $0x0,-0x18(%rbp)
  jle    L60
  mov    -0x1c(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x8(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movzbl %al,%edx
  mov    $0x8,%eax
  sub    -0x18(%rbp),%eax
  mov    %eax,%ecx
  sar    %cl,%edx
  mov    %edx,%ecx
  mov    -0x1c(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x8(%rbp),%rax
  add    %rdx,%rax
  mov    %ecx,%edx
  mov    %dl,(%rax)
  mov    -0x1c(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x8(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movzbl %al,%edx
  mov    $0x8,%eax
  sub    -0x18(%rbp),%eax
  mov    %eax,%ecx
  shl    %cl,%edx
  mov    %edx,%ecx
  mov    -0x1c(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x8(%rbp),%rax
  add    %rdx,%rax
  mov    %ecx,%edx
  mov    %dl,(%rax)
  mov    -0x1c(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%edx
  mov    -0x1c(%rbp),%eax
  movslq %eax,%rcx
  mov    -0x8(%rbp),%rax
  add    %rcx,%rax
  movzbl (%rax),%eax
  cmp    %al,%dl
  jg     L125
  mov    -0x1c(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x8(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%edx
  mov    -0x1c(%rbp),%eax
  cltq
  lea    0x4(%rax),%rcx
  mov    -0x28(%rbp),%rax
  add    %rcx,%rax
  movzbl (%rax),%eax
  cmp    %al,%dl
  jg     L125
L60:
  cmpl   $0x1,-0x2c(%rbp)
  jle    L47
  mov    -0x28(%rbp),%rax
  add    $0x8,%rax
  movzbl (%rax),%eax
  movzbl %al,%r9d
  mov    -0x28(%rbp),%rax
  add    $0x7,%rax
  movzbl (%rax),%eax
  movzbl %al,%r8d
  mov    -0x28(%rbp),%rax
  add    $0x6,%rax
  movzbl (%rax),%eax
  movzbl %al,%edi
  mov    -0x28(%rbp),%rax
  add    $0x5,%rax
  movzbl (%rax),%eax
  movzbl %al,%esi
  mov    -0x28(%rbp),%rax
  add    $0x4,%rax
  movzbl (%rax),%eax
  movzbl %al,%r11d
  mov    -0x28(%rbp),%rax
  add    $0x3,%rax
  movzbl (%rax),%eax
  movzbl %al,%r10d
  mov    -0x28(%rbp),%rax
  add    $0x2,%rax
  movzbl (%rax),%eax
  movzbl %al,%ecx
  mov    -0x28(%rbp),%rax
  add    $0x1,%rax
  movzbl (%rax),%eax
  movzbl %al,%edx
  mov    -0x28(%rbp),%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  push   %r9
  push   %r8
  push   %rdi
  push   %rsi
  mov    %r11d,%r9d
  mov    %r10d,%r8d
  mov    %eax,%esi
  lea    D2(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  add    $0x20,%rsp
L47:
  movl   $0x1,-0x14(%rbp)
  jmp    L24
L102:
  nop
  jmp    L24
L125:
  nop
L24:
  mov    -0x8(%rbp),%rax
  mov    %rax,%rdi
  call   <free@plt>
  mov    -0x10(%rbp),%rax
  mov    %rax,%rdi
  call   <free@plt>
  mov    -0x14(%rbp),%eax
L22:
  leave
  ret
```

tool_calls: name: unpack_data
arguments: data_tag: D2
type_guessed: string

tool: D2: --- Apply restrictions for ip range '%i.%i.%i.%i-%i.%i.%i.%i/%i' ---


assistant: ```c
int ConfigIsForRangeIP(const char *range, int verbose) {
  char *bip, *ip;
  int pos, size, retValue = 0;
  if (range == NULL)
    return (0);
  size = (int)((unsigned char)range[8]);
  ip = IpGetClient(0);
  if (ip == NULL)
    return (0);
  bip = TagParseRangeIP(ip);
  if (bip == NULL)
    return (0);
  pos = 0;
  while (size >= 8) {
    if (range[pos] <= bip[pos] && bip[pos] <= range[pos + 4]) {
      pos++;
      size -= 8;
    } else
      goto error_is_for_rangeip;
  }
  if (size > 0) {
    bip[pos] = (unsigned char)bip[pos] >> (8 - size);
    bip[pos] = (unsigned char)bip[pos] << (8 - size);
    if (range[pos] > bip[pos] || bip[pos] > range[pos + 4])
      goto error_is_for_rangeip;
  }
  if (verbose >= 2)
    (void)printf("--- Apply restrictions for ip range '%i.%i.%i.%i-%i.%i.%i.%i/%i' ---\n", (unsigned char)range[0], (unsigned char)range[1], (unsigned char)range[2], (unsigned char)range[3], (unsigned char)range[4], (unsigned char)range[5], (unsigned char)range[6], (unsigned char)range[7], (unsigned char)range[8]);
  retValue = 1;
error_is_for_rangeip:
  free(bip);
  free(ip);
  return (retValue);
}
```