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

```asm
<IsTestSelected>:
  endbr64
  push   %r15
  mov    %rdi,%r15
  push   %r14
  mov    %rdx,%r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  mov    %rsi,%rbx
  sub    $0x28,%rsp
  test   %rdi,%rdi
  setne  %dil
  mov    %rdx,0x18(%rsp)
  movzbl %dil,%edi
  call   <assert@plt>
  xor    %edi,%edi
  test   %rbx,%rbx
  setne  %dil
  call   <assert@plt>
  xor    %edi,%edi
  test   %r14,%r14
  setne  %dil
  call   <assert@plt>
  mov    %rbx,%rdi
  call   <strlen@plt>
  mov    %r14,%rdi
  movslq %eax,%rbp
  call   <strlen@plt>
  cltq
  mov    %rax,0x10(%rsp)
  movsbl (%r15),%edi
  test   %dil,%dil
  je     L180
  nopl   0x0(%rax,%rax,1)
L103:
  mov    %r15,%r12
  jmp    L169
  nopl   (%rax)
L213:
  movsbl 0x1(%r12),%edi
  add    $0x1,%r12
L169:
  call   <IsTestDelimiter@plt>
  test   %rax,%rax
  jne    L213
  mov    %r12,%r15
  jmp    L74
  nopl   0x0(%rax)
L122:
  call   <IsFieldDelimiter@plt>
  movsbl (%r15),%edi
  test   %rax,%rax
  jne    L0
  test   %dil,%dil
  je     L0
  add    $0x1,%r15
L74:
  movsbl (%r15),%edi
  call   <IsTestDelimiter@plt>
  movsbl (%r15),%edi
  test   %rax,%rax
  je     L122
L0:
  call   <IsFieldDelimiter@plt>
  mov    %r15,%r14
  mov    %r12,%r13
  sub    %r12,%r14
  test   %rax,%rax
  je     L168
  add    $0x1,%r15
  mov    %r15,%r13
  jmp    L168
  nopl   (%rax)
L203:
  cmpb   $0x0,(%r15)
  je     L125
  add    $0x1,%r15
L168:
  movsbl (%r15),%edi
  call   <IsTestDelimiter@plt>
  test   %rax,%rax
  je     L203
L125:
  mov    %r15,%rax
  sub    %r13,%rax
  mov    %rax,0x8(%rsp)
  je     L241
  test   %r14,%r14
  je     L186
L44:
  cmp    %r13,%r12
  jne    L50
  cmp    0x8(%rsp),%r14
  jne    L49
  mov    %r12,%rcx
  mov    %r14,%rdx
  mov    %rbx,%rsi
  mov    %rbp,%rdi
  call   <WildCompare@plt>
  test   %rax,%rax
  jne    L191
  mov    %r12,%rcx
  mov    %r14,%rdx
L199:
  mov    0x18(%rsp),%rsi
  mov    0x10(%rsp),%rdi
  call   <WildCompare@plt>
  test   %rax,%rax
  jne    L191
L210:
  movsbl (%r15),%edi
  test   %dil,%dil
  jne    L103
L180:
  add    $0x28,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax)
L186:
  mov    0x8(%rsp),%rdx
  mov    0x18(%rsp),%rsi
  mov    %r13,%rcx
  mov    0x10(%rsp),%rdi
  call   <WildCompare@plt>
  test   %rax,%rax
  jne    L191
L49:
  cmp    %r13,%r12
  je     L210
L50:
  mov    %r12,%rcx
  mov    %r14,%rdx
  mov    %rbx,%rsi
  mov    %rbp,%rdi
  call   <WildCompare@plt>
  test   %rax,%rax
  je     L210
  mov    0x8(%rsp),%rdx
  mov    %r13,%rcx
  jmp    L199
  nopl   0x0(%rax)
L241:
  mov    %r12,%rcx
  mov    %r14,%rdx
  mov    %rbx,%rsi
  mov    %rbp,%rdi
  call   <WildCompare@plt>
  test   %rax,%rax
  jne    L191
  test   %r14,%r14
  jne    L49
  mov    0x18(%rsp),%rsi
  mov    0x10(%rsp),%rdi
  xor    %edx,%edx
  mov    %r13,%rcx
  call   <WildCompare@plt>
  test   %rax,%rax
  je     L44
L191:
  add    $0x28,%rsp
  mov    $0x1,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

assistant: ```c
bool IsTestSelected(const char *selection, const char *suite_name, const char *test_name) {
  assert(selection != NULL);
  assert(suite_name != NULL);
  assert(test_name != NULL);
  int32_t suite_length = (int32_t)strlen(suite_name);
  int32_t test_length = (int32_t)strlen(test_name);
  for (const char *c = selection; *c != '\0';) {
    while (IsTestDelimiter(*c)) {
      ++c;
    }
    const char *s_str = c;
    const char *t_str = c;
    while (!IsTestDelimiter(*c) && !IsFieldDelimiter(*c) && *c != '\0') {
      ++c;
    }
    int32_t s_len = (int32_t)(c - s_str);
    if (IsFieldDelimiter(*c)) {
      ++c;
      t_str = c;
    }
    while (!IsTestDelimiter(*c) && *c != '\0') {
      ++c;
    }
    int32_t t_len = (int32_t)(c - t_str);
    if (t_len == 0 && WildCompare(suite_length, suite_name, s_len, s_str)) {
      return true;
    } else if (s_len == 0 && WildCompare(test_length, test_name, t_len, t_str)) {
      return true;
    } else if (s_str == t_str && s_len == t_len && (WildCompare(suite_length, suite_name, s_len, s_str) || WildCompare(test_length, test_name, s_len, s_str))) {
      return true;
    } else if (s_str != t_str && WildCompare(suite_length, suite_name, s_len, s_str) && WildCompare(test_length, test_name, t_len, t_str)) {
      return true;
    }
  }
  return false;
}
```