user: 请从给定的汇编指令推导出C源代码：

```asm
<do_configure>:
  endbr64
  push   %r12
  mov    %rdi,%r12
  lea    D95(%rip),%rdi
  push   %rbp
  push   %rbx
  mov    %rdx,%rbx
  sub    $0x10,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x8(%rsp)
  xor    %eax,%eax
  test   %esi,%esi
  movq   $0x0,(%rsp)
  cmovns %esi,%eax
  mov    %eax,%esi
  mov    %eax,%ebp
  xor    %eax,%eax
  call   <printf@plt>
  xor    %eax,%eax
  lea    D88(%rip),%rdi
  call   <printf@plt>
  test   %rbx,%rbx
  je     L43
  lea    D62(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
L7:
  lea    D1(%rip),%rdi
  call   <puts@plt>
  mov    %rbx,%rsi
  lea    D73(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  sub    $0x8,%rsp
  xor    %ecx,%ecx
  mov    %ebp,%edx
  lea    0x8(%rsp),%rax
  mov    %rbx,%r9
  mov    $0x4,%esi
  mov    %r12,%rdi
  push   %rax
  mov    $0x4,%r8d
  call   <XNVCTRLStringOperation@plt>
  pop    %rdx
  pop    %rcx
  test   %eax,%eax
  je     L20
  lea    D14(%rip),%rdi
  call   <puts@plt>
  mov    (%rsp),%rsi
  lea    D29(%rip),%rax
  lea    D7(%rip),%rdi
  test   %rsi,%rsi
  cmove  %rax,%rsi
  xor    %eax,%eax
  call   <printf@plt>
  mov    (%rsp),%rdi
  test   %rdi,%rdi
  je     L11
  call   <XFree@plt>
L11:
  mov    0x8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L31
  add    $0x10,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  ret
L20:
  mov    %ebp,%esi
  lea    D63(%rip),%rdi
  call   <printf@plt>
  jmp    L11
L43:
  lea    D90(%rip),%rdi
  xor    %eax,%eax
  lea    D66(%rip),%rbx
  call   <printf@plt>
  jmp    L7
L31:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: disassemble_data
arguments: data_tag: D95
data_type: string
name: disassemble_data
arguments: data_tag: D88
data_type: string
name: disassemble_data
arguments: data_tag: D62
data_type: string
name: disassemble_data
arguments: data_tag: D1
data_type: string
name: disassemble_data
arguments: data_tag: D73
data_type: string
name: disassemble_data
arguments: data_tag: D14
data_type: string
name: disassemble_data
arguments: data_tag: D29
data_type: string
name: disassemble_data
arguments: data_tag: D7
data_type: string
name: disassemble_data
arguments: data_tag: D63
data_type: string
name: disassemble_data
arguments: data_tag: D90
data_type: string
name: disassemble_data
arguments: data_tag: D66
data_type: string

tool: D95: Configuring GVI device %d:



tool: D88: Setting 

tool: D62: custom

tool: D1:  configuration:


tool: D73:   "%s"



tool: D14: Topology:


tool: D29: No streams are configured.

tool: D7:   %s



tool: D63:   - Failed to configure stream topology of GVI %d.


tool: D90: default

tool: D66: stream=0, link0=jack0.0; stream=1, link0=jack1.0; stream=2, link0=jack2.0; stream=3, link0=jack3.0

assistant: ```c
void do_configure(Display *dpy, int use_gvi, char *pIn) {
  Bool ret;
  char *pOut = NULL;
  if (use_gvi < 0) {
    use_gvi = 0;
  }
  printf("Configuring GVI device %d:\n\n", use_gvi);
  printf("Setting ");
  if (!pIn) {
    pIn = "stream=0, link0=jack0.0; "
          "stream=1, link0=jack1.0; "
          "stream=2, link0=jack2.0; "
          "stream=3, link0=jack3.0";
    printf("default");
  } else {
    printf("custom");
  }
  printf(" configuration:\n\n");
  printf("  \"%s\"\n\n", pIn);
  ret = XNVCTRLStringOperation(dpy, 4, use_gvi, 0, 4, pIn, &pOut);
  if (!ret) {
    printf("  - Failed to configure stream topology of GVI %d.\n", use_gvi);
    return;
  }
  printf("Topology:\n\n");
  printf("  %s\n\n", pOut ? pOut : "No streams are configured.");
  if (pOut) {
    XFree(pOut);
    pOut = NULL;
  }
}
```