user: 请将这段汇编代码片段转换成等效的C代码：

```asm
<ccnl_mgmt_create_interface_stmt>:
  endbr64
  push   %r15
  movslq %edi,%rax
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0xa8,%rsp
  mov    %rsi,0x8(%rsp)
  mov    0xe0(%rsp),%r13
  mov    %rdx,0x20(%rsp)
  mov    %rcx,0x10(%rsp)
  mov    %r8,0x18(%rsp)
  mov    %fs:0x28,%rdx
  mov    %rdx,0x98(%rsp)
  xor    %edx,%edx
  test   %eax,%eax
  jle    L15
  mov    %rax,0x28(%rsp)
  mov    %r9,%r15
  xor    %r12d,%r12d
  lea    0x30(%rsp),%rbp
  mov    0xe8(%rsp),%ebx
  lea    D11(%rip),%r14
  jmp    L16
  nop
L26:
  call   <sprintf@plt>
  movslq %ebx,%rdi
  mov    %rbp,%rcx
  mov    $0x2,%edx
  add    %r13,%rdi
  mov    $0x1838d,%esi
  call   <ccnl_ccnb_mkStrBlob@plt>
  add    %eax,%ebx
L13:
  mov    $0x64,%edx
  xor    %esi,%esi
  mov    %rbp,%rdi
  call   <memset@plt>
  mov    0x18(%rsp),%rax
  mov    %r14,%rsi
  mov    %rbp,%rdi
  mov    (%rax,%r12,4),%edx
  xor    %eax,%eax
  add    $0x1,%r12
  call   <sprintf@plt>
  movslq %ebx,%rdi
  mov    %rbp,%rcx
  mov    $0x2,%edx
  add    %r13,%rdi
  mov    $0x1838e,%esi
  call   <ccnl_ccnb_mkStrBlob@plt>
  add    %ebx,%eax
  lea    0x1(%rax),%ebx
  cltq
  movb   $0x0,0x0(%r13,%rax,1)
  cmp    %r12,0x28(%rsp)
  je     L22
L16:
  movslq %ebx,%rdi
  mov    $0x2,%edx
  mov    $0x18382,%esi
  add    %r13,%rdi
  call   <ccnl_ccnb_mkHeader@plt>
  xor    %esi,%esi
  mov    $0x64,%edx
  mov    %rbp,%rdi
  add    %eax,%ebx
  call   <memset@plt>
  mov    0x8(%rsp),%rax
  mov    %r14,%rsi
  mov    %rbp,%rdi
  mov    (%rax,%r12,4),%edx
  xor    %eax,%eax
  call   <sprintf@plt>
  movslq %ebx,%rdi
  mov    %rbp,%rcx
  mov    $0x2,%edx
  add    %r13,%rdi
  mov    $0x18385,%esi
  call   <ccnl_ccnb_mkStrBlob@plt>
  mov    $0x64,%edx
  xor    %esi,%esi
  mov    %rbp,%rdi
  add    %eax,%ebx
  call   <memset@plt>
  mov    (%r15,%r12,8),%rsi
  mov    %rbp,%rdi
  call   <strcpy@plt>
  movslq %ebx,%rdi
  mov    %rbp,%rcx
  mov    $0x2,%edx
  add    %r13,%rdi
  mov    $0x1838c,%esi
  call   <ccnl_ccnb_mkStrBlob@plt>
  xor    %esi,%esi
  mov    $0x64,%edx
  mov    %rbp,%rdi
  add    %eax,%ebx
  call   <memset@plt>
  mov    0x10(%rsp),%rax
  lea    D6(%rip),%rsi
  mov    %rbp,%rdi
  cmpl   $0x1,(%rax,%r12,4)
  mov    0x20(%rsp),%rax
  mov    (%rax,%r12,8),%rdx
  mov    $0x0,%eax
  jne    L26
  call   <sprintf@plt>
  movslq %ebx,%rdi
  mov    %rbp,%rcx
  mov    $0x2,%edx
  add    %r13,%rdi
  mov    $0x18387,%esi
  call   <ccnl_ccnb_mkStrBlob@plt>
  add    %eax,%ebx
  jmp    L13
  xchg   %ax,%ax
L15:
  mov    0xe8(%rsp),%ebx
  nopw   0x0(%rax,%rax,1)
L22:
  mov    0x98(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L30
  add    $0xa8,%rsp
  mov    %ebx,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L30:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: tag: D11
data_type: string
name: parse_data
arguments: tag: D6
data_type: string

tool: D11: %d

tool: D6: %p

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;
}
```