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

```asm
<flip>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x230,%rsp
  mov    %rdi,-0x228(%rbp)
  mov    %rsi,-0x230(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movl   $0x0,-0x218(%rbp)
  movl   $0x0,-0x214(%rbp)
  movb   $0x0,-0x210(%rbp)
  movb   $0x0,-0x110(%rbp)
  subq   $0x1,-0x228(%rbp)
  jmp    L7
L123:
  subq   $0x1,-0x228(%rbp)
L7:
  mov    -0x228(%rbp),%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <isspace@plt>
  test   %rax,%rax
  jne    L123
L113:
  mov    -0x228(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x7b,%al
  jne    L21
  addl   $0x1,-0x218(%rbp)
  mov    -0x218(%rbp),%eax
  cmp    -0x214(%rbp),%eax
  jg     L174
L21:
  mov    -0x228(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x7d,%al
  jne    L24
  addl   $0x1,-0x214(%rbp)
L24:
  cmpl   $0x0,-0x214(%rbp)
  jne    L92
  mov    -0x228(%rbp),%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <isspace@plt>
  test   %rax,%rax
  jne    L140
  mov    -0x228(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x24,%al
  je     L140
  subq   $0x1,-0x228(%rbp)
  jmp    L177
L92:
  subq   $0x1,-0x228(%rbp)
  mov    -0x218(%rbp),%eax
  cmp    -0x214(%rbp),%eax
  jne    L113
  cmpl   $0x0,-0x218(%rbp)
  jne    L49
L177:
  jmp    L113
L174:
  nop
  jmp    L140
L49:
  nop
L140:
  addq   $0x1,-0x228(%rbp)
  mov    -0x228(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x5c,%al
  jne    L169
  addq   $0x1,-0x228(%rbp)
  lea    -0x110(%rbp),%rdx
  mov    -0x228(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <getword@plt>
  lea    -0x110(%rbp),%rdx
  lea    -0x210(%rbp),%rax
  lea    D15(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <sprintf@plt>
  subq   $0x1,-0x228(%rbp)
  jmp    L60
L169:
  mov    -0x228(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x7b,%al
  jne    L178
  lea    -0x210(%rbp),%rdx
  mov    -0x228(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <get_brace_arg@plt>
  jmp    L60
L178:
  lea    -0x210(%rbp),%rdx
  mov    -0x228(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <getword@plt>
L60:
  mov    -0x228(%rbp),%rax
  movb   $0x0,(%rax)
  lea    -0x210(%rbp),%rcx
  mov    -0x230(%rbp),%rdx
  lea    -0x110(%rbp),%rax
  lea    D18(%rip),%rsi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <sprintf@plt>
  lea    -0x110(%rbp),%rdx
  mov    -0x228(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strapp@plt>
  mov    %rax,-0x228(%rbp)
  mov    -0x228(%rbp),%rax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L102
  call   <__stack_chk_fail@plt>
L102:
  leave
  ret
```

tool_calls: name: extract_symbolic_data
arguments: tag: D15
type: string
name: extract_symbolic_data
arguments: tag: D18
type: string

tool: D15: \%s

tool: D18: \%s %s

assistant: ```c
char *flip(char *pout, char *w) {
  int lb = 0, rb = 0;
  char ww[250], tmp[250];
  ww[0] = '\0';
  tmp[0] = '\0';
  pout--;
  while (isspace(*pout))
    pout--;
  while (1) {
    if (*pout == '{') {
      lb++;
      if (lb > rb)
        break;
    }
    if (*pout == '}')
      rb++;
    if (rb == 0) {
      if (!isspace(*pout) && *pout != '$') {
        pout--;
        continue;
      } else
        break;
    }
    pout--;
    if (lb == rb && lb != 0)
      break;
  }
  pout++;
  if (*pout == '\\') {
    pout++;
    (void)getword(pout, tmp);
    sprintf(ww, "\\%s", tmp);
    pout--;
  } else if (*pout == '{')
    (void)get_brace_arg(pout, ww);
  else
    (void)getword(pout, ww);
  *pout = '\0';
  sprintf(tmp, "\\%s %s", w, ww);
  pout = strapp(pout, tmp);
  return (pout);
}
```