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

```asm
<scanDhcpLease>:
  endbr64
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x1d8,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x1c8(%rsp)
  xor    %eax,%eax
  lea    0xc0(%rsp),%rbx
  lea    D75(%rip),%rdx
  mov    $0x100,%esi
  mov    %rbx,%rdi
  call   <snprintf@plt>
  mov    %rbx,%rdi
  call   <system@plt>
  lea    D15(%rip),%rdi
  call   <system@plt>
  lea    D27(%rip),%rsi
  lea    D81(%rip),%rdi
  call   <fopen@plt>
  test   %rax,%rax
  je     L134
  mov    %rax,%rbx
  mov    %rsp,%rbp
L50:
  mov    %rbx,%rcx
  mov    $0x60,%edx
  mov    $0x1,%esi
  mov    %rbp,%rdi
  call   <fread@plt>
  cmp    $0x60,%eax
  jne    L55
  lea    0x20(%rsp),%rdi
  call   <strlen@plt>
  test   %rax,%rax
  jle    L50
  movzbl 0x1(%rsp),%ecx
  movzbl (%rsp),%edx
  lea    0x60(%rsp),%rdi
  movzbl 0x5(%rsp),%eax
  push   %rax
  movzbl 0xc(%rsp),%eax
  push   %rax
  movzbl 0x13(%rsp),%r9d
  movzbl 0x12(%rsp),%r8d
  lea    D82(%rip),%rsi
  call   <sprintf@plt>
  mov    0x20(%rsp),%rbp
  mov    0x28(%rsp),%rdi
  call   <ntohl@plt>
  mov    %rax,%rcx
  movabs $0xc22e450672894ab7,%rdx
  mul    %rdx
  shr    $0x10,%rdx
  mov    %edx,%edi
  add    $0x10,%rsp
  test   %edx,%edx
  jne    L162
L95:
  mov    %rbp,%rdi
  call   <inet_ntoa@plt>
  mov    %rax,%rdi
  call   <isARPReply@plt>
  test   %eax,%eax
  jne    L79
  mov    %rbp,%rdi
  call   <inet_ntoa@plt>
  mov    %rax,%r12
  lea    0x60(%rsp),%r13
  mov    %r13,%rdi
  call   <mac2if@plt>
  mov    %rax,%rcx
  lea    0xc0(%rsp),%rbx
  sub    $0x8,%rsp
  lea    0x28(%rsp),%rax
  push   %rax
  mov    %r13,%r9
  mov    %r12,%r8
  lea    D56(%rip),%rdx
  mov    $0x100,%esi
  mov    %rbx,%rdi
  mov    $0x0,%eax
  call   <snprintf@plt>
  mov    %rbx,%rsi
  lea    D22(%rip),%rdi
  call   <printf@plt>
  mov    %rbx,%rdi
  call   <system@plt>
  add    $0x10,%rsp
L127:
  lea    0x60(%rsp),%r12
  mov    %r12,%rdi
  call   <mac2if@plt>
  mov    %rax,%rbx
  mov    %rbp,%rdi
  call   <inet_ntoa@plt>
  mov    %rax,%r8
  lea    0x20(%rsp),%rcx
  lea    0xc0(%rsp),%rbp
  push   %rbx
  lea    0x88(%rsp),%rax
  push   %rax
  mov    %r12,%r9
  lea    D139(%rip),%rdx
  mov    $0x100,%esi
  mov    %rbp,%rdi
  mov    $0x0,%eax
  call   <snprintf@plt>
  mov    %rbp,%rdi
  call   <system@plt>
  add    $0x10,%rsp
  mov    $0x0,%ebx
L125:
  mov    0x1c8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L128
  mov    %ebx,%eax
  add    $0x1d8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
L162:
  movabs $0xc22e450672894ab7,%rdx
  mov    %rcx,%rax
  mul    %rdx
  mov    %rdx,%rsi
  shr    $0x10,%rsi
  imul   $0x15180,%rsi,%rax
  sub    %rax,%rcx
  mov    %rcx,%rsi
  mov    %rcx,%r8
  shr    $0x4,%r8
  movabs $0x91a2b3c4d5e6f81,%rdx
  mov    %r8,%rax
  mul    %rdx
  mov    %rdx,%r8
  mov    %rdx,%rcx
  shr    $0x3,%rcx
  imul   $0xe10,%rcx,%rax
  mov    %rsi,%rcx
  sub    %rax,%rcx
  movabs $0x8888888888888889,%r9
  mov    %rcx,%rax
  mul    %r9
  mov    %rdx,%r9
  shr    $0x5,%r9
  shr    $0x3,%r8
  lea    0x80(%rsp),%r10
  sub    $0x8,%rsp
  mov    %r9,%rax
  shl    $0x4,%rax
  sub    %r9,%rax
  shl    $0x2,%rax
  sub    %rax,%rcx
  push   %rcx
  mov    %edi,%ecx
  lea    D38(%rip),%rdx
  mov    $0x40,%esi
  mov    %r10,%rdi
  mov    $0x0,%eax
  call   <snprintf@plt>
  add    $0x10,%rsp
  jmp    L95
L79:
  mov    %rbp,%rdi
  call   <inet_ntoa@plt>
  mov    %rax,%rsi
  lea    D6(%rip),%rdi
  call   <printf@plt>
  jmp    L127
L55:
  mov    %rbx,%rdi
  call   <fclose@plt>
  lea    D27(%rip),%rsi
  lea    D70(%rip),%rdi
  call   <fopen@plt>
  mov    %rax,%rbx
  test   %rax,%rax
  je     L42
  mov    %rsp,%rbp
L102:
  mov    %rbx,%rcx
  mov    $0x60,%edx
  mov    $0x1,%esi
  mov    %rbp,%rdi
  call   <fread@plt>
  cmp    $0x60,%eax
  jne    L130
  lea    0x20(%rsp),%rdi
  call   <strlen@plt>
  test   %rax,%rax
  jle    L102
  movzbl 0x1(%rsp),%ecx
  movzbl (%rsp),%edx
  lea    0x60(%rsp),%rdi
  movzbl 0x5(%rsp),%eax
  push   %rax
  movzbl 0xc(%rsp),%eax
  push   %rax
  movzbl 0x13(%rsp),%r9d
  movzbl 0x12(%rsp),%r8d
  lea    D82(%rip),%rsi
  call   <sprintf@plt>
  mov    0x20(%rsp),%rbp
  mov    %rbp,%rdi
  call   <inet_ntoa@plt>
  mov    %rax,%rdi
  call   <isARPReply@plt>
  mov    %eax,%ebx
  add    $0x10,%rsp
  test   %eax,%eax
  jne    L34
  mov    %rbp,%rdi
  call   <inet_ntoa@plt>
  mov    %rax,%rbp
  lea    0x60(%rsp),%r13
  mov    %r13,%rdi
  call   <mac2if@plt>
  mov    %rax,%rcx
  lea    0xc0(%rsp),%r12
  sub    $0x8,%rsp
  lea    0x28(%rsp),%rax
  push   %rax
  mov    %r13,%r9
  mov    %rbp,%r8
  lea    D56(%rip),%rdx
  mov    $0x100,%esi
  mov    %r12,%rdi
  mov    $0x0,%eax
  call   <snprintf@plt>
  mov    %r12,%rdi
  call   <system@plt>
  add    $0x10,%rsp
  jmp    L125
L34:
  mov    %rbp,%rdi
  call   <inet_ntoa@plt>
  mov    %rax,%rsi
  lea    D6(%rip),%rdi
  call   <printf@plt>
  mov    $0x0,%ebx
  jmp    L125
L130:
  mov    %rbx,%rdi
  call   <fclose@plt>
  mov    $0x0,%ebx
  jmp    L125
L134:
  mov    $0xffffffff,%ebx
  jmp    L125
L42:
  mov    $0xffffffff,%ebx
  jmp    L125
L128:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: data_tag: D75
datatype: string
name: parse_data
arguments: data_tag: D15
datatype: string
name: parse_data
arguments: data_tag: D27
datatype: string
name: parse_data
arguments: data_tag: D81
datatype: string
name: parse_data
arguments: data_tag: D82
datatype: string
name: parse_data
arguments: data_tag: D56
datatype: string
name: parse_data
arguments: data_tag: D22
datatype: string
name: parse_data
arguments: data_tag: D139
datatype: string
name: parse_data
arguments: data_tag: D38
datatype: string
name: parse_data
arguments: data_tag: D6
datatype: string
name: parse_data
arguments: data_tag: D70
datatype: string

tool: D75: sqlite3 /tmp/system.db "delete from DhcpLeasedClients"

tool: D15: killall -q -USR1 udhcpd

tool: D27: r

tool: D81: /tmp/udhcpd0.leases

tool: D82: %02x:%02x:%02x:%02x:%02x:%02x

tool: D56: sqlite3 /tmp/system.db "insert into attacheddevice  (AttchedType, IpAddress, MacAddress, DeviceName) values ('%s', '%s', '%s', '%s')"

tool: D22: [debug] %s


tool: D139: sqlite3 /tmp/system.db "insert into DhcpLeasedClients (LogicalIfname, hostName, IPAddress, MacAddress, Timeout, clientIf)  values ('br0', '%s', '%s', '%s', '%s', '%s')"

tool: D38: %u days %02u:%02u:%02u


tool: D6: %s didn't exist anymore...


tool: D70: /tmp/udhcpd1.leases

assistant: ```c
int scanDhcpLease() {
  FILE *fp;
  char tmpmac[30];
  char sysCmd[256];
  char tmpexpires[64];
  unsigned long expires;
  unsigned d, h, m;
  struct dhcpOfferedAddr {
    unsigned char mac[16];
    unsigned long ip;
    unsigned long expires;
    unsigned char hostname[64];
  } lease;
  struct in_addr addr;
  snprintf(sysCmd, sizeof(sysCmd), "sqlite3 /tmp/system.db \"delete from DhcpLeasedClients\"");
  system(sysCmd);
  system("killall -q -USR1 udhcpd");
  fp = fopen("/tmp/udhcpd0.leases", "r");
  if (NULL == fp) {
    return -1;
  }
  while (fread(&lease, 1, sizeof(lease), fp) == sizeof(lease)) {
    if (strlen(lease.hostname) > 0) {
      sprintf(tmpmac, "%02x:%02x:%02x:%02x:%02x:%02x", lease.mac[0], lease.mac[1], lease.mac[2], lease.mac[3], lease.mac[4], lease.mac[5]);
      addr.s_addr = lease.ip;
      expires = ntohl(lease.expires);
      d = expires / (24 * 60 * 60);
      expires %= (24 * 60 * 60);
      h = expires / (60 * 60);
      expires %= (60 * 60);
      m = expires / 60;
      expires %= 60;
      if (d)
        snprintf(tmpexpires, sizeof(tmpexpires), "%u days %02u:%02u:%02u\n", d, h, m, (unsigned)expires);
      if (!isARPReply(inet_ntoa(addr))) {
        snprintf(sysCmd, sizeof(sysCmd), "sqlite3 /tmp/system.db \"insert into attacheddevice  (AttchedType, IpAddress, MacAddress, DeviceName) values ('%s', '%s', '%s', '%s')\"", mac2if(tmpmac), inet_ntoa(addr), tmpmac, lease.hostname);
        printf("[debug] %s\n", sysCmd);
        system(sysCmd);
      } else
        printf("%s didn't exist anymore...\n", inet_ntoa(addr));
      snprintf(sysCmd, sizeof(sysCmd), "sqlite3 /tmp/system.db \"insert into DhcpLeasedClients (LogicalIfname, hostName, IPAddress, MacAddress, Timeout, clientIf)  values ('br0', '%s', '%s', '%s', '%s', '%s')\"", lease.hostname, inet_ntoa(addr), tmpmac, tmpexpires, mac2if(tmpmac));
      system(sysCmd);
      return 0;
    }
  }
  fclose(fp);
  fp = fopen("/tmp/udhcpd1.leases", "r");
  if (NULL == fp) {
    return -1;
  }
  while (fread(&lease, 1, sizeof(lease), fp) == sizeof(lease)) {
    if (strlen(lease.hostname) > 0) {
      sprintf(tmpmac, "%02x:%02x:%02x:%02x:%02x:%02x", lease.mac[0], lease.mac[1], lease.mac[2], lease.mac[3], lease.mac[4], lease.mac[5]);
      addr.s_addr = lease.ip;
      if (!isARPReply(inet_ntoa(addr))) {
        snprintf(sysCmd, sizeof(sysCmd), "sqlite3 /tmp/system.db \"insert into attacheddevice  (AttchedType, IpAddress, MacAddress, DeviceName) values ('%s', '%s', '%s', '%s')\"", mac2if(tmpmac), inet_ntoa(addr), tmpmac, lease.hostname);
        system(sysCmd);
      } else
        printf("%s didn't exist anymore...\n", inet_ntoa(addr));
      return 0;
    }
  }
  fclose(fp);
  return 0;
}
```