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

```asm
<remove_pcp_port_forwarding_chain>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x320,%rsp
  mov    %edi,-0x314(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movq   $0x0,-0x310(%rbp)
  movq   $0x0,-0x308(%rbp)
  movq   $0x0,-0x300(%rbp)
  movq   $0x0,-0x2f8(%rbp)
  movq   $0x0,-0x2f0(%rbp)
  movq   $0x0,-0x2e8(%rbp)
  movq   $0x0,-0x2e0(%rbp)
  movq   $0x0,-0x2d8(%rbp)
  movq   $0x0,-0x2d0(%rbp)
  movq   $0x0,-0x2c8(%rbp)
  movq   $0x0,-0x2c0(%rbp)
  movq   $0x0,-0x2b8(%rbp)
  movq   $0x0,-0x2b0(%rbp)
  movq   $0x0,-0x2a8(%rbp)
  movq   $0x0,-0x2a0(%rbp)
  movq   $0x0,-0x298(%rbp)
  movq   $0x0,-0x290(%rbp)
  movq   $0x0,-0x288(%rbp)
  movq   $0x0,-0x280(%rbp)
  movq   $0x0,-0x278(%rbp)
  movq   $0x0,-0x270(%rbp)
  movq   $0x0,-0x268(%rbp)
  movq   $0x0,-0x260(%rbp)
  movq   $0x0,-0x258(%rbp)
  movq   $0x0,-0x250(%rbp)
  movq   $0x0,-0x248(%rbp)
  movq   $0x0,-0x240(%rbp)
  movq   $0x0,-0x238(%rbp)
  movq   $0x0,-0x230(%rbp)
  movq   $0x0,-0x228(%rbp)
  movq   $0x0,-0x220(%rbp)
  movq   $0x0,-0x218(%rbp)
  movq   $0x0,-0x210(%rbp)
  movq   $0x0,-0x208(%rbp)
  movq   $0x0,-0x200(%rbp)
  movq   $0x0,-0x1f8(%rbp)
  movq   $0x0,-0x1f0(%rbp)
  movq   $0x0,-0x1e8(%rbp)
  movq   $0x0,-0x1e0(%rbp)
  movq   $0x0,-0x1d8(%rbp)
  movq   $0x0,-0x1d0(%rbp)
  movq   $0x0,-0x1c8(%rbp)
  movq   $0x0,-0x1c0(%rbp)
  movq   $0x0,-0x1b8(%rbp)
  movq   $0x0,-0x1b0(%rbp)
  movq   $0x0,-0x1a8(%rbp)
  movq   $0x0,-0x1a0(%rbp)
  movq   $0x0,-0x198(%rbp)
  movq   $0x0,-0x190(%rbp)
  movq   $0x0,-0x188(%rbp)
  movq   $0x0,-0x180(%rbp)
  movq   $0x0,-0x178(%rbp)
  movq   $0x0,-0x170(%rbp)
  movq   $0x0,-0x168(%rbp)
  movq   $0x0,-0x160(%rbp)
  movq   $0x0,-0x158(%rbp)
  movq   $0x0,-0x150(%rbp)
  movq   $0x0,-0x148(%rbp)
  movq   $0x0,-0x140(%rbp)
  movq   $0x0,-0x138(%rbp)
  movq   $0x0,-0x130(%rbp)
  movq   $0x0,-0x128(%rbp)
  movq   $0x0,-0x120(%rbp)
  movq   $0x0,-0x118(%rbp)
  movq   $0x0,-0x110(%rbp)
  movq   $0x0,-0x108(%rbp)
  movq   $0x0,-0x100(%rbp)
  movq   $0x0,-0xf8(%rbp)
  movq   $0x0,-0xf0(%rbp)
  movq   $0x0,-0xe8(%rbp)
  movq   $0x0,-0xe0(%rbp)
  movq   $0x0,-0xd8(%rbp)
  movq   $0x0,-0xd0(%rbp)
  movq   $0x0,-0xc8(%rbp)
  movq   $0x0,-0xc0(%rbp)
  movq   $0x0,-0xb8(%rbp)
  movq   $0x0,-0xb0(%rbp)
  movq   $0x0,-0xa8(%rbp)
  movq   $0x0,-0xa0(%rbp)
  movq   $0x0,-0x98(%rbp)
  movq   $0x0,-0x90(%rbp)
  movq   $0x0,-0x88(%rbp)
  movq   $0x0,-0x80(%rbp)
  movq   $0x0,-0x78(%rbp)
  movq   $0x0,-0x70(%rbp)
  movq   $0x0,-0x68(%rbp)
  movq   $0x0,-0x60(%rbp)
  movq   $0x0,-0x58(%rbp)
  movq   $0x0,-0x50(%rbp)
  movq   $0x0,-0x48(%rbp)
  movq   $0x0,-0x40(%rbp)
  movq   $0x0,-0x38(%rbp)
  movq   $0x0,-0x30(%rbp)
  movq   $0x0,-0x28(%rbp)
  movq   $0x0,-0x20(%rbp)
  movq   $0x0,-0x18(%rbp)
  mov    -0x314(%rbp),%edx
  lea    -0x310(%rbp),%rax
  mov    %edx,%ecx
  lea    D8(%rip),%rdx
  mov    $0x100,%esi
  mov    %rax,%rdi
  call   <snprintf@plt>
  test   %rax,%rax
  jle    L22
  mov    -0x314(%rbp),%edx
  lea    -0x210(%rbp),%rax
  mov    %edx,%ecx
  lea    D12(%rip),%rdx
  mov    $0x100,%esi
  mov    %rax,%rdi
  call   <snprintf@plt>
  test   %rax,%rax
  jle    L22
  mov    -0x314(%rbp),%edx
  lea    -0x110(%rbp),%rax
  mov    %edx,%ecx
  lea    D24(%rip),%rdx
  mov    $0x100,%esi
  mov    %rax,%rdi
  call   <snprintf@plt>
  test   %rax,%rax
  jg     L50
L22:
  mov    $0x0,%eax
  jmp    L47
L50:
  lea    -0x110(%rbp),%rdx
  lea    -0x210(%rbp),%rcx
  lea    -0x310(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <remove_jump_pcp_rule_chains@plt>
  test   %eax,%eax
  jne    L89
  mov    $0x0,%eax
  jmp    L47
L89:
  lea    -0x110(%rbp),%rdx
  lea    -0x210(%rbp),%rcx
  lea    -0x310(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <flush_pcp_rule_chains@plt>
  test   %eax,%eax
  jne    L55
  mov    $0x0,%eax
  jmp    L47
L55:
  lea    -0x110(%rbp),%rdx
  lea    -0x210(%rbp),%rcx
  lea    -0x310(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <delete_pcp_rule_chains@plt>
  test   %eax,%eax
  jne    L11
  mov    $0x0,%eax
  jmp    L47
L11:
  mov    $0x1,%eax
L47:
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L31
  call   <__stack_chk_fail@plt>
L31:
  leave
  ret
```

tool_calls: name: disassemble_data
arguments: tag: D8
type_guessed: string
name: disassemble_data
arguments: tag: D12
type_guessed: string
name: disassemble_data
arguments: tag: D24
type_guessed: string

tool: D8: PCP_NAT_PREROUTE_RULE_%d

tool: D12: PCP_NAT_POSTROUTE_RULE_%d

tool: D24: PCP_MANGLE_RULE_%d

assistant: ```c
bool remove_pcp_port_forwarding_chain(int index) {
  char chain_preroute[256] = {'\0'};
  char chain_postroute[256] = {'\0'};
  char chain_mangle[256] = {'\0'};
  if (snprintf(chain_preroute, 256, "PCP_NAT_PREROUTE_RULE_%d", index) <= 0 || snprintf(chain_postroute, 256, "PCP_NAT_POSTROUTE_RULE_%d", index) <= 0 || snprintf(chain_mangle, 256, "PCP_MANGLE_RULE_%d", index) <= 0) {
    return false;
  }
  if (!remove_jump_pcp_rule_chains(chain_preroute, chain_postroute, chain_mangle)) {
    return false;
  }
  if (!flush_pcp_rule_chains(chain_preroute, chain_postroute, chain_mangle)) {
    return false;
  }
  if (!delete_pcp_rule_chains(chain_preroute, chain_postroute, chain_mangle)) {
    return false;
  }
  return true;
}
```