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

```asm
<IsTestSelected>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x28,%rsp
  mov    %rdi,%rbx
  mov    %rsi,%r15
  mov    %rdx,%r14
  mov    %rdx,0x18(%rsp)
  test   %rdi,%rdi
  setne  %dil
  movzbl %dil,%edi
  call   <assert@plt>
  test   %r15,%r15
  setne  %dil
  movzbl %dil,%edi
  call   <assert@plt>
  test   %r14,%r14
  setne  %dil
  movzbl %dil,%edi
  call   <assert@plt>
  mov    %r15,%rdi
  call   <strlen@plt>
  cltq
  mov    %rax,0x8(%rsp)
  mov    %r14,%rdi
  call   <strlen@plt>
  cltq
  mov    %rax,0x10(%rsp)
  cmpb   $0x0,(%rbx)
  jne    L10
  mov    $0x0,%eax
  jmp    L187
L271:
  mov    %rbp,%rbx
  jmp    L286
L238:
  add    $0x1,%rbx
L286:
  movsbl (%rbx),%edi
  call   <IsTestDelimiter@plt>
  test   %rax,%rax
  jne    L190
  movsbl (%rbx),%edi
  call   <IsFieldDelimiter@plt>
  test   %rax,%rax
  jne    L190
  cmpb   $0x0,(%rbx)
  jne    L238
L190:
  mov    %rbx,%r13
  sub    %rbp,%r13
  movsbl (%rbx),%edi
  call   <IsFieldDelimiter@plt>
  mov    %rbp,%r12
  test   %rax,%rax
  je     L67
  add    $0x1,%rbx
  mov    %rbx,%r12
  jmp    L67
L30:
  add    $0x1,%rbx
L67:
  movsbl (%rbx),%edi
  call   <IsTestDelimiter@plt>
  test   %rax,%rax
  jne    L160
  cmpb   $0x0,(%rbx)
  jne    L30
L160:
  mov    %rbx,%r14
  sub    %r12,%r14
  je     L195
  test   %r13,%r13
  je     L43
L262:
  cmp    %r12,%rbp
  jne    L217
  cmp    %r14,%r13
  jne    L217
  mov    %rbp,%rcx
  mov    %r13,%rdx
  mov    %r15,%rsi
  mov    0x8(%rsp),%rdi
  call   <WildCompare@plt>
  test   %rax,%rax
  jne    L237
  mov    %rbp,%rcx
  mov    %r13,%rdx
  mov    0x18(%rsp),%rsi
  mov    0x10(%rsp),%rdi
  call   <WildCompare@plt>
  test   %rax,%rax
  jne    L133
L217:
  cmp    %r12,%rbp
  je     L73
  mov    %rbp,%rcx
  mov    %r13,%rdx
  mov    %r15,%rsi
  mov    0x8(%rsp),%rdi
  call   <WildCompare@plt>
  test   %rax,%rax
  jne    L302
L73:
  cmpb   $0x0,(%rbx)
  je     L92
L10:
  mov    %rbx,%rbp
L202:
  movsbl 0x0(%rbp),%edi
  call   <IsTestDelimiter@plt>
  test   %rax,%rax
  je     L271
  add    $0x1,%rbp
  jmp    L202
L195:
  mov    %rbp,%rcx
  mov    %r13,%rdx
  mov    %r15,%rsi
  mov    0x8(%rsp),%rdi
  call   <WildCompare@plt>
  test   %rax,%rax
  jne    L138
  test   %r13,%r13
  jne    L217
  mov    %r12,%rcx
  mov    %r14,%rdx
  mov    0x18(%rsp),%rsi
  mov    0x10(%rsp),%rdi
  call   <WildCompare@plt>
  test   %rax,%rax
  je     L262
  mov    $0x1,%eax
  jmp    L187
L302:
  mov    %r12,%rcx
  mov    %r14,%rdx
  mov    0x18(%rsp),%rsi
  mov    0x10(%rsp),%rdi
  call   <WildCompare@plt>
  test   %rax,%rax
  je     L73
  mov    $0x1,%eax
  jmp    L187
L138:
  mov    $0x1,%eax
  jmp    L187
L237:
  mov    $0x1,%eax
  jmp    L187
L133:
  mov    $0x1,%eax
  jmp    L187
L92:
  mov    $0x0,%eax
L187:
  add    $0x28,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L43:
  mov    %r12,%rcx
  mov    %r14,%rdx
  mov    0x18(%rsp),%rsi
  mov    0x10(%rsp),%rdi
  call   <WildCompare@plt>
  test   %rax,%rax
  je     L217
  mov    $0x1,%eax
  jmp    L187
```

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;
}
```