user: What is the c source code of the assembly code below:

```asm
<set_filter_flags>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x18,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x8(%rsp)
  xor    %eax,%eax
  movq   $0x0,(%rsp)
  test   %rdi,%rdi
  je     L347
  mov    %rdi,%r12
  call   <strlen@plt>
  cmp    $0x1,%eax
  jle    L347
  mov    %rsp,%rbp
  lea    D204(%rip),%rbx
  mov    %r12,%rdi
  xor    %r12d,%r12d
  mov    %rbp,%rdx
  mov    %rbx,%rsi
  call   <strtok_r@plt>
  mov    %rax,%r15
  test   %rax,%rax
  je     L43
  lea    D196(%rip),%r13
  lea    D122(%rip),%r14
  jmp    L634
  nopw   0x0(%rax,%rax,1)
L524:
  or     $0x1,%r12d
L570:
  mov    %rbp,%rdx
  mov    %rbx,%rsi
  xor    %edi,%edi
  call   <strtok_r@plt>
  mov    %rax,%r15
  test   %rax,%rax
  je     L43
L634:
  cmpq   $0x0,(%rsp)
  je     L502
  movb   $0x2c,-0x1(%r15)
L502:
  mov    %r13,%rsi
  mov    %r15,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L524
  mov    %r14,%rsi
  mov    %r15,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L228
  or     $0x2,%r12d
  jmp    L570
L347:
  mov    $0xffffffff,%r12d
  nopl   0x0(%rax)
L43:
  mov    0x8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L519
  add    $0x18,%rsp
  mov    %r12d,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  xchg   %ax,%ax
L228:
  lea    D116(%rip),%rsi
  mov    %r15,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L144
  or     $0x4,%r12d
  jmp    L570
  nopl   (%rax)
L144:
  lea    D16(%rip),%rsi
  mov    %r15,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L496
  or     $0x8,%r12d
  jmp    L570
  nopl   (%rax)
L496:
  lea    D26(%rip),%rsi
  mov    %r15,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L558
  or     $0x10,%r12d
  jmp    L570
L558:
  lea    D305(%rip),%rsi
  mov    %r15,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L384
  or     $0x20,%r12d
  jmp    L570
L384:
  lea    D247(%rip),%rsi
  mov    %r15,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L7
  or     $0x2000,%r12d
  jmp    L570
L7:
  lea    D13(%rip),%rsi
  mov    %r15,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L28
  or     $0x4000,%r12d
  jmp    L570
L28:
  lea    D30(%rip),%rsi
  mov    %r15,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L510
  or     $0xc000,%r12d
  jmp    L570
L519:
  call   <__stack_chk_fail@plt>
L510:
  lea    D275(%rip),%rsi
  mov    %r15,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L137
  or     $0x10000,%r12d
  jmp    L570
L137:
  lea    D77(%rip),%rsi
  mov    %r15,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L32
  or     $0x20000,%r12d
  jmp    L570
L32:
  lea    D210(%rip),%rsi
  mov    %r15,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L345
  or     $0x40000,%r12d
  jmp    L570
L345:
  lea    D49(%rip),%rsi
  mov    %r15,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L283
  or     $0x80000,%r12d
  jmp    L570
L283:
  lea    D143(%rip),%rsi
  mov    %r15,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L354
  or     $0x40,%r12d
  jmp    L570
L354:
  lea    D137(%rip),%rsi
  mov    %r15,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L147
L383:
  or     $0xc0,%r12b
  jmp    L570
L147:
  lea    D24(%rip),%rsi
  mov    %r15,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L383
  lea    D52(%rip),%rsi
  mov    %r15,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L483
  test   $0x40,%r12b
  jne    L383
L483:
  lea    D273(%rip),%rsi
  mov    %r15,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L287
L318:
  or     $0x140,%r12d
  jmp    L570
L287:
  lea    D163(%rip),%rsi
  mov    %r15,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L318
  lea    D151(%rip),%rsi
  mov    %r15,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L365
  test   $0x40,%r12b
  jne    L318
L365:
  lea    D298(%rip),%rsi
  mov    %r15,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L454
L442:
  or     $0x240,%r12d
  jmp    L570
L454:
  lea    D131(%rip),%rsi
  mov    %r15,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L442
  lea    D62(%rip),%rsi
  mov    %r15,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L431
  test   $0x40,%r12b
  jne    L442
L431:
  lea    D264(%rip),%rsi
  mov    %r15,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L421
L115:
  or     $0x440,%r12d
  jmp    L570
L421:
  lea    D141(%rip),%rsi
  mov    %r15,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L115
  lea    D250(%rip),%rsi
  mov    %r15,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L613
  test   $0x40,%r12b
  jne    L115
L613:
  lea    D38(%rip),%rsi
  mov    %r15,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L305
L235:
  or     $0x840,%r12d
  jmp    L570
L305:
  lea    D179(%rip),%rsi
  mov    %r15,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L235
  lea    D211(%rip),%rsi
  mov    %r15,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L476
  test   $0x40,%r12b
  jne    L235
L476:
  lea    D156(%rip),%rsi
  mov    %r15,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L240
L593:
  or     $0x1040,%r12d
  jmp    L570
L240:
  lea    D259(%rip),%rsi
  mov    %r15,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L593
  lea    D299(%rip),%rsi
  mov    %r15,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L593
  jmp    L570
```

tool_calls: name: parse_data
arguments: tag: D204
type: string
name: parse_data
arguments: tag: D196
type: string
name: parse_data
arguments: tag: D122
type: string
name: parse_data
arguments: tag: D116
type: string
name: parse_data
arguments: tag: D16
type: string
name: parse_data
arguments: tag: D26
type: string
name: parse_data
arguments: tag: D305
type: string
name: parse_data
arguments: tag: D247
type: string
name: parse_data
arguments: tag: D13
type: string
name: parse_data
arguments: tag: D30
type: string
name: parse_data
arguments: tag: D275
type: string
name: parse_data
arguments: tag: D77
type: string
name: parse_data
arguments: tag: D210
type: string
name: parse_data
arguments: tag: D49
type: string
name: parse_data
arguments: tag: D143
type: string
name: parse_data
arguments: tag: D137
type: string
name: parse_data
arguments: tag: D24
type: string
name: parse_data
arguments: tag: D52
type: string
name: parse_data
arguments: tag: D273
type: string
name: parse_data
arguments: tag: D163
type: string
name: parse_data
arguments: tag: D151
type: string
name: parse_data
arguments: tag: D298
type: string
name: parse_data
arguments: tag: D131
type: string
name: parse_data
arguments: tag: D62
type: string
name: parse_data
arguments: tag: D264
type: string
name: parse_data
arguments: tag: D141
type: string
name: parse_data
arguments: tag: D250
type: string
name: parse_data
arguments: tag: D38
type: string
name: parse_data
arguments: tag: D179
type: string
name: parse_data
arguments: tag: D211
type: string
name: parse_data
arguments: tag: D156
type: string
name: parse_data
arguments: tag: D259
type: string
name: parse_data
arguments: tag: D299
type: string

tool: D204: ,

tool: D196: @childCount

tool: D122: dc:creator

tool: D116: dc:date

tool: D16: dc:description

tool: D26: dlna

tool: D305: @refID

tool: D247: upnp:album

tool: D13: upnp:albumArtURI

tool: D30: upnp:albumArtURI@dlna:profileID

tool: D275: upnp:artist

tool: D77: upnp:genre

tool: D210: upnp:originalTrackNumber

tool: D49: upnp:searchClass

tool: D143: res

tool: D137: res@bitrate

tool: D24: @bitrate

tool: D52: bitrate

tool: D273: res@duration

tool: D163: @duration

tool: D151: duration

tool: D298: res@nrAudioChannels

tool: D131: @nrAudioChannels

tool: D62: nrAudioChannels

tool: D264: res@resolution

tool: D141: @resolution

tool: D250: resolution

tool: D38: res@sampleFrequency

tool: D179: @sampleFrequency

tool: D211: sampleFrequency

tool: D156: res@size

tool: D259: @size

tool: D299: size

assistant: ```c
u_int32_t set_filter_flags(char *filter) {
  char *item, *saveptr = NULL;
  u_int32_t flags = 0;
  if (!filter || (strlen(filter) <= 1))
    return 0xFFFFFFFF;
  item = strtok_r(filter, ",", &saveptr);
  while (item != NULL) {
    if (saveptr)
      *(item - 1) = ',';
    if (strcmp(item, "@childCount") == 0) {
      flags |= 0x00000001;
    } else if (strcmp(item, "dc:creator") == 0) {
      flags |= 0x00000002;
    } else if (strcmp(item, "dc:date") == 0) {
      flags |= 0x00000004;
    } else if (strcmp(item, "dc:description") == 0) {
      flags |= 0x00000008;
    } else if (strcmp(item, "dlna") == 0) {
      flags |= 0x00000010;
    } else if (strcmp(item, "@refID") == 0) {
      flags |= 0x00000020;
    } else if (strcmp(item, "upnp:album") == 0) {
      flags |= 0x00002000;
    } else if (strcmp(item, "upnp:albumArtURI") == 0) {
      flags |= 0x00004000;
    } else if (strcmp(item, "upnp:albumArtURI@dlna:profileID") == 0) {
      flags |= 0x00004000;
      flags |= 0x00008000;
    } else if (strcmp(item, "upnp:artist") == 0) {
      flags |= 0x00010000;
    } else if (strcmp(item, "upnp:genre") == 0) {
      flags |= 0x00020000;
    } else if (strcmp(item, "upnp:originalTrackNumber") == 0) {
      flags |= 0x00040000;
    } else if (strcmp(item, "upnp:searchClass") == 0) {
      flags |= 0x00080000;
    } else if (strcmp(item, "res") == 0) {
      flags |= 0x00000040;
    } else if ((strcmp(item, "res@bitrate") == 0) || (strcmp(item, "@bitrate") == 0) || ((strcmp(item, "bitrate") == 0) && (flags & 0x00000040))) {
      flags |= 0x00000040;
      flags |= 0x00000080;
    } else if ((strcmp(item, "res@duration") == 0) || (strcmp(item, "@duration") == 0) || ((strcmp(item, "duration") == 0) && (flags & 0x00000040))) {
      flags |= 0x00000040;
      flags |= 0x00000100;
    } else if ((strcmp(item, "res@nrAudioChannels") == 0) || (strcmp(item, "@nrAudioChannels") == 0) || ((strcmp(item, "nrAudioChannels") == 0) && (flags & 0x00000040))) {
      flags |= 0x00000040;
      flags |= 0x00000200;
    } else if ((strcmp(item, "res@resolution") == 0) || (strcmp(item, "@resolution") == 0) || ((strcmp(item, "resolution") == 0) && (flags & 0x00000040))) {
      flags |= 0x00000040;
      flags |= 0x00000400;
    } else if ((strcmp(item, "res@sampleFrequency") == 0) || (strcmp(item, "@sampleFrequency") == 0) || ((strcmp(item, "sampleFrequency") == 0) && (flags & 0x00000040))) {
      flags |= 0x00000040;
      flags |= 0x00000800;
    } else if ((strcmp(item, "res@size") == 0) || (strcmp(item, "@size") == 0) || (strcmp(item, "size") == 0)) {
      flags |= 0x00000040;
      flags |= 0x00001000;
    }
    item = strtok_r(NULL, ",", &saveptr);
  }
  return flags;
}
```