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

```asm
<ccnl_mgmt_create_interface_stmt>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x98,%rsp
  mov    %rdx,0x10(%rsp)
  mov    %rcx,0x8(%rsp)
  mov    0xd0(%rsp),%rcx
  mov    %rcx,(%rsp)
  mov    %fs:0x28,%rdx
  mov    %rdx,0x88(%rsp)
  xor    %edx,%edx
  test   %edi,%edi
  jle    L19
  mov    %rsi,%r13
  mov    %r8,%r14
  mov    %r9,%r15
  mov    %edi,%eax
  mov    %rax,0x18(%rsp)
  mov    0xd8(%rsp),%ebx
  mov    $0x0,%r12d
  lea    0x20(%rsp),%rbp
  jmp    L58
L36:
  mov    0x10(%rsp),%rax
  mov    (%rax,%r12,8),%rdx
  lea    D5(%rip),%rsi
  mov    %rbp,%rdi
  mov    $0x0,%eax
  call   <sprintf@plt>
  movslq %ebx,%rdi
  add    (%rsp),%rdi
  mov    %rbp,%rcx
  mov    $0x2,%edx
  mov    $0x18387,%esi
  call   <ccnl_ccnb_mkStrBlob@plt>
  add    %eax,%ebx
  jmp    L29
L64:
  mov    0x10(%rsp),%rax
  mov    (%rax,%r12,8),%rdx
  lea    D5(%rip),%rsi
  mov    %rbp,%rdi
  mov    $0x0,%eax
  call   <sprintf@plt>
  movslq %ebx,%rdi
  add    (%rsp),%rdi
  mov    %rbp,%rcx
  mov    $0x2,%edx
  mov    $0x1838d,%esi
  call   <ccnl_ccnb_mkStrBlob@plt>
  add    %eax,%ebx
L29:
  mov    $0x64,%edx
  mov    $0x0,%esi
  mov    %rbp,%rdi
  call   <memset@plt>
  mov    (%r14,%r12,4),%edx
  lea    D42(%rip),%rsi
  mov    %rbp,%rdi
  mov    $0x0,%eax
  call   <sprintf@plt>
  movslq %ebx,%rdi
  add    (%rsp),%rdi
  mov    %rbp,%rcx
  mov    $0x2,%edx
  mov    $0x1838e,%esi
  call   <ccnl_ccnb_mkStrBlob@plt>
  add    %ebx,%eax
  lea    0x1(%rax),%ebx
  cltq
  mov    (%rsp),%rcx
  movb   $0x0,(%rcx,%rax,1)
  add    $0x1,%r12
  cmp    0x18(%rsp),%r12
  je     L15
L58:
  movslq %ebx,%rdi
  add    (%rsp),%rdi
  mov    $0x2,%edx
  mov    $0x18382,%esi
  call   <ccnl_ccnb_mkHeader@plt>
  add    %eax,%ebx
  mov    $0x64,%edx
  mov    $0x0,%esi
  mov    %rbp,%rdi
  call   <memset@plt>
  mov    0x0(%r13,%r12,4),%edx
  lea    D42(%rip),%rsi
  mov    %rbp,%rdi
  mov    $0x0,%eax
  call   <sprintf@plt>
  movslq %ebx,%rdi
  add    (%rsp),%rdi
  mov    %rbp,%rcx
  mov    $0x2,%edx
  mov    $0x18385,%esi
  call   <ccnl_ccnb_mkStrBlob@plt>
  add    %eax,%ebx
  mov    $0x64,%edx
  mov    $0x0,%esi
  mov    %rbp,%rdi
  call   <memset@plt>
  mov    (%r15,%r12,8),%rsi
  mov    %rbp,%rdi
  call   <strcpy@plt>
  movslq %ebx,%rdi
  add    (%rsp),%rdi
  mov    %rbp,%rcx
  mov    $0x2,%edx
  mov    $0x1838c,%esi
  call   <ccnl_ccnb_mkStrBlob@plt>
  add    %eax,%ebx
  mov    $0x64,%edx
  mov    $0x0,%esi
  mov    %rbp,%rdi
  call   <memset@plt>
  mov    0x8(%rsp),%rax
  mov    (%rax,%r12,4),%eax
  cmp    $0x1,%eax
  je     L36
  cmp    $0x2,%eax
  je     L64
  mov    0x10(%rsp),%rax
  mov    (%rax,%r12,8),%rdx
  lea    D5(%rip),%rsi
  mov    %rbp,%rdi
  mov    $0x0,%eax
  call   <sprintf@plt>
  movslq %ebx,%rdi
  add    (%rsp),%rdi
  mov    %rbp,%rcx
  mov    $0x2,%edx
  mov    $0x1838d,%esi
  call   <ccnl_ccnb_mkStrBlob@plt>
  add    %eax,%ebx
  jmp    L29
L19:
  mov    0xd8(%rsp),%ebx
L15:
  mov    0x88(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L42
  mov    %ebx,%eax
  add    $0x98,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L42:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: retrieve_data
arguments: label: D5
datatype: string
name: retrieve_data
arguments: label: D42
datatype: string

tool: D5: %p

tool: D42: %d

assistant: ```c
int ccnl_mgmt_create_interface_stmt(int num_interfaces, int *interfaceifndx, long *interfacedev, int *interfacedevtype, int *interfacereflect, char **interfaceaddr, unsigned char *stmt, int len3) {
  int it;
  char str[100];
  for (it = 0; it < num_interfaces; ++it) {
    len3 += ccnl_ccnb_mkHeader(stmt + len3, 99202, 2);
    memset(str, 0, 100);
    sprintf(str, "%d", interfaceifndx[it]);
    len3 += ccnl_ccnb_mkStrBlob(stmt + len3, 99205, 2, str);
    memset(str, 0, 100);
    sprintf(str, "%s", interfaceaddr[it]);
    len3 += ccnl_ccnb_mkStrBlob(stmt + len3, 99212, 2, str);
    memset(str, 0, 100);
    if (interfacedevtype[it] == 1) {
      sprintf(str, "%p", (void *)interfacedev[it]);
      len3 += ccnl_ccnb_mkStrBlob(stmt + len3, 99207, 2, str);
    } else if (interfacedevtype[it] == 2) {
      sprintf(str, "%p", (void *)interfacedev[it]);
      len3 += ccnl_ccnb_mkStrBlob(stmt + len3, 99213, 2, str);
    } else {
      sprintf(str, "%p", (void *)interfacedev[it]);
      len3 += ccnl_ccnb_mkStrBlob(stmt + len3, 99213, 2, str);
    }
    memset(str, 0, 100);
    sprintf(str, "%d", interfacereflect[it]);
    len3 += ccnl_ccnb_mkStrBlob(stmt + len3, 99214, 2, str);
    stmt[len3++] = 0;
  }
  return len3;
}
```