user: What would the C source look like for the assembly code provided here:

```asm
<get_multi__mode_chan>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x20,%rsp
  mov    %rdi,-0x18(%rbp)
  mov    %esi,-0x1c(%rbp)
  mov    -0x18(%rbp),%rax
  mov    %rax,-0x8(%rbp)
  movw   $0x0,-0xc(%rbp)
  movw   $0x0,-0xa(%rbp)
  movb   $0x0,-0xe(%rbp)
  movb   $0x0,-0xd(%rbp)
  jmp    L134
L192:
  mov    -0x8(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x2b,%al
  je     L157
  mov    -0x8(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x2d,%al
  jne    L309
L157:
  mov    -0x8(%rbp),%rax
  movzbl (%rax),%eax
  mov    %al,-0xe(%rbp)
  jmp    L333
L309:
  mov    -0x8(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x61,%al
  je     L159
  mov    -0x8(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x69,%al
  je     L159
  mov    -0x8(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x6d,%al
  je     L159
  mov    -0x8(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x6e,%al
  je     L159
  mov    -0x8(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x71,%al
  je     L159
  mov    -0x8(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x70,%al
  je     L159
  mov    -0x8(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x72,%al
  je     L159
  mov    -0x8(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x73,%al
  je     L159
  mov    -0x8(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x74,%al
  jne    L11
L159:
  movzwl -0xc(%rbp),%eax
  add    $0x1,%eax
  mov    %ax,-0xc(%rbp)
  movzwl -0xc(%rbp),%eax
  cmp    %eax,-0x1c(%rbp)
  jne    L50
  mov    -0x18(%rbp),%rax
  movzbl -0xe(%rbp),%edx
  mov    %dl,(%rax)
  mov    -0x18(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    -0x8(%rbp),%rax
  movzbl (%rax),%eax
  mov    %al,(%rdx)
  mov    -0x18(%rbp),%rax
  add    $0x2,%rax
  movb   $0x0,(%rax)
  jmp    L132
L11:
  mov    -0x8(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x4f,%al
  je     L331
  mov    -0x8(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x6f,%al
  je     L331
  mov    -0x8(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x76,%al
  je     L331
  mov    -0x8(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x6c,%al
  je     L331
  mov    -0x8(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x6b,%al
  je     L331
  mov    -0x8(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x62,%al
  je     L331
  mov    -0x8(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x65,%al
  je     L331
  mov    -0x8(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x69,%al
  jne    L50
L331:
  movzwl -0xc(%rbp),%eax
  add    $0x1,%eax
  mov    %ax,-0xc(%rbp)
  movzwl -0xc(%rbp),%eax
  cmp    %eax,-0x1c(%rbp)
  jne    L99
  mov    -0x8(%rbp),%rax
  movzbl (%rax),%eax
  mov    %al,-0xd(%rbp)
L99:
  addq   $0x1,-0x8(%rbp)
  jmp    L118
L55:
  addq   $0x1,-0x8(%rbp)
L118:
  mov    -0x8(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x20,%al
  je     L55
  mov    -0x8(%rbp),%rax
  mov    $0x20,%esi
  mov    %rax,%rdi
  call   <strlen2sep@plt>
  mov    %ax,-0xa(%rbp)
  cmpw   $0xffff,-0xa(%rbp)
  jne    L285
  mov    -0x8(%rbp),%rax
  mov    $0x0,%esi
  mov    %rax,%rdi
  call   <strlen2sep@plt>
  mov    %ax,-0xa(%rbp)
  cmpw   $0xffff,-0xa(%rbp)
  jne    L285
  jmp    L132
L50:
  movzwl -0xc(%rbp),%eax
  cmp    %eax,-0x1c(%rbp)
  jb     L312
L333:
  addq   $0x1,-0x8(%rbp)
L134:
  mov    -0x8(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  jne    L192
  jmp    L131
L285:
  nop
L131:
  mov    -0x8(%rbp),%rax
  sub    -0x18(%rbp),%rax
  cmp    $0x2,%rax
  jle    L132
  mov    -0x18(%rbp),%rax
  movzbl -0xe(%rbp),%edx
  mov    %dl,(%rax)
  mov    -0x18(%rbp),%rax
  lea    0x1(%rax),%rdx
  movzbl -0xd(%rbp),%eax
  mov    %al,(%rdx)
  movzwl -0xa(%rbp),%eax
  add    $0x2,%eax
  cwtl
  mov    -0x18(%rbp),%rdx
  lea    0x2(%rdx),%rdi
  mov    -0x8(%rbp),%rdx
  mov    %rdx,%rcx
  lea    D4(%rip),%rdx
  mov    %eax,%esi
  call   <snprintf@plt>
  jmp    L132
L312:
  nop
L132:
  leave
  ret
```

tool_calls: name: unpack_data
arguments: data_label: D4
type_infered: string

tool: D4:  %s

assistant: ```c
void get_multi__mode_chan(char *mode, unsigned int modes_left) {
  char *ptr = mode;
  unsigned short int n = 0;
  short int len = 0;
  char sign = '\0', flag = '\0';
  while (*ptr != '\0') {
    if (*ptr == '+' || *ptr == '-')
      sign = *ptr;
    else {
      if (*ptr == 'a' || *ptr == 'i' || *ptr == 'm' || *ptr == 'n' || *ptr == 'q' || *ptr == 'p' || *ptr == 'r' || *ptr == 's' || *ptr == 't') {
        n++;
        if (n == modes_left) {
          *mode = sign;
          *(mode + 1) = *ptr;
          *(mode + 2) = '\0';
          return;
        }
      } else if (*ptr == 'O' || *ptr == 'o' || *ptr == 'v' || *ptr == 'l' || *ptr == 'k' || *ptr == 'b' || *ptr == 'e' || *ptr == 'i') {
        n++;
        if (n == modes_left)
          flag = *ptr;
        ptr++;
        while (*ptr == ' ')
          ptr++;
        len = strlen2sep(ptr, ' ');
        if (len == -1) {
          len = strlen2sep(ptr, '\0');
          if (len == -1)
            return;
        }
        break;
      }
      if (n > modes_left)
        return;
    }
    ptr++;
  }
  if (ptr - mode > 2) {
    *mode = sign;
    *(mode + 1) = flag;
    snprintf(mode + 2, len + 2, " %s", ptr);
  }
}
```