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

```asm
<SgLabelCmp>:
  endbr64
  push   %r15
  mov    %rsi,%r15
  push   %r14
  push   %r13
  lea    0x1(%rdx),%r13
  push   %r12
  mov    %rdx,%r12
  push   %rbp
  mov    %r13,%rbp
  push   %rbx
  mov    %rsi,%rbx
  sub    $0x18,%rsp
  mov    %edi,0xc(%rsp)
  cs nopw 0x0(%rax,%rax,1)
L422:
  movsbl -0x1(%rbp),%edi
  lea    -0x1(%rbp),%r14
  test   %dil,%dil
  je     L286
  cmp    $0x5f,%dil
  je     L464
  call   <isspace@plt>
  test   %rax,%rax
  jne    L464
  nopl   (%rax)
L286:
  movsbl (%r15),%edi
  test   %dil,%dil
  je     L55
  nopl   0x0(%rax)
L82:
  cmp    $0x5f,%dil
  je     L391
  call   <isspace@plt>
  test   %rax,%rax
  je     L458
L391:
  movsbl 0x1(%r15),%edi
  add    $0x1,%r15
  test   %dil,%dil
  jne    L82
L55:
  cmpb   $0x0,(%r14)
  je     L470
L405:
  mov    %rbx,%rbp
  nopw   0x0(%rax,%rax,1)
L113:
  movsbl (%r12),%edi
  test   %dil,%dil
  je     L52
  cmp    $0x5f,%dil
  je     L370
  call   <isspace@plt>
  test   %rax,%rax
  jne    L370
  nopw   0x0(%rax,%rax,1)
L52:
  movsbl 0x0(%rbp),%edi
  test   %dil,%dil
  je     L171
  nopl   0x0(%rax)
L189:
  cmp    $0x5f,%dil
  je     L431
  call   <isspace@plt>
  test   %rax,%rax
  je     L3
L431:
  movsbl 0x1(%rbp),%edi
  add    $0x1,%rbp
  test   %dil,%dil
  jne    L189
L171:
  cmpb   $0x0,(%r12)
  je     L470
L142:
  cmpl   $0xc2,0xc(%rsp)
  jle    L444
  nopw   0x0(%rax,%rax,1)
L199:
  movzbl -0x1(%r13),%eax
  lea    -0x1(%r13),%rbp
  test   %al,%al
  je     L401
  cmp    $0x5f,%al
  je     L232
  movsbl %al,%edi
  call   <isspace@plt>
  test   %rax,%rax
  jne    L232
  xchg   %ax,%ax
L401:
  movsbl (%rbx),%edi
  test   %dil,%dil
  je     L22
  nopl   0x0(%rax,%rax,1)
L177:
  cmp    $0x5f,%dil
  je     L163
  call   <isspace@plt>
  test   %rax,%rax
  je     L282
L163:
  movsbl 0x1(%rbx),%edi
  add    $0x1,%rbx
  test   %dil,%dil
  jne    L177
L22:
  movzbl 0x0(%rbp),%eax
  neg    %al
  sbb    %eax,%eax
  add    $0x18,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax,%rax,1)
L458:
  movsbl (%r15),%edi
  test   %dil,%dil
  je     L55
  cmp    $0x3d,%dil
  je     L55
  cmp    $0x2d,%dil
  jne    L161
  movsbl -0x1(%rbp),%edi
  cmp    $0x2d,%dil
  je     L446
  call   <toupper@plt>
  cmp    $0x42,%al
  jne    L405
L446:
  add    $0x1,%r15
L464:
  add    $0x1,%rbp
  jmp    L422
  nopl   (%rax)
L3:
  movsbl 0x0(%rbp),%edi
  cmp    $0x2d,%dil
  jne    L436
  movsbl 0x1(%r12),%edi
  cmp    $0x2d,%dil
  je     L249
  call   <toupper@plt>
  cmp    $0x42,%al
  jne    L142
L249:
  movsbl 0x1(%rbp),%edi
  call   <toupper@plt>
  movsbl (%r12),%edi
  mov    %eax,%r14d
  call   <toupper@plt>
  cmp    %al,%r14b
  jne    L142
  add    $0x1,%rbp
  add    $0x1,%r12
L131:
  add    $0x1,%rbp
L370:
  add    $0x1,%r12
  jmp    L113
  nop
L161:
  call   <toupper@plt>
  movsbl -0x1(%rbp),%edi
  mov    %eax,%r14d
  call   <toupper@plt>
  cmp    %al,%r14b
  je     L446
  jmp    L405
  nop
L436:
  test   %dil,%dil
  je     L171
  cmp    $0x3d,%dil
  je     L171
  call   <toupper@plt>
  movsbl (%r12),%edi
  mov    %eax,%r14d
  call   <toupper@plt>
  cmp    %al,%r14b
  je     L131
  jmp    L142
  nop
L282:
  movsbl (%rbx),%edi
  cmp    $0x2d,%dil
  jne    L468
  cmpb   $0x33,0x1(%rbx)
  jne    L424
  add    $0x1,%rbx
  mov    $0x33,%edi
  nopl   0x0(%rax,%rax,1)
L424:
  call   <toupper@plt>
  movsbl -0x1(%r13),%edi
  mov    %eax,%ebp
  call   <toupper@plt>
  cmp    %al,%bpl
  jne    L444
  add    $0x1,%rbx
L232:
  add    $0x1,%r13
  jmp    L199
L468:
  test   %dil,%dil
  je     L22
  cmp    $0x3d,%dil
  jne    L424
  jmp    L22
  nopw   0x0(%rax,%rax,1)
L470:
  add    $0x18,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L444:
  add    $0x18,%rsp
  mov    $0xffffffff,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

assistant: ```c
int SgLabelCmp(const int SgNumber, const char *SgLabel, const char *WtdLbl) {
  const char *sgl, *wl;
  sgl = SgLabel;
  for (wl = WtdLbl;; wl++) {
    while (*(wl) && (*(wl) == '_' || isspace(*(wl))))
      (wl)++;
    while (*(sgl) && (*(sgl) == '_' || isspace(*(sgl))))
      (sgl)++;
    if (*sgl == '\0' || *sgl == '=') {
      if (*wl == '\0')
        return 0;
      break;
    }
    if (*sgl == '-') {
      if (*wl != '-' && toupper(*wl) != 'B')
        break;
    } else if (toupper(*sgl) != toupper(*wl))
      break;
    sgl++;
  }
  sgl = SgLabel;
  for (wl = WtdLbl;; wl++) {
    while (*(wl) && (*(wl) == '_' || isspace(*(wl))))
      (wl)++;
    while (*(sgl) && (*(sgl) == '_' || isspace(*(sgl))))
      (sgl)++;
    if (*sgl == '-') {
      if (wl[1] != '-' && toupper(wl[1]) != 'B')
        break;
      if (toupper(sgl[1]) != toupper(*wl))
        break;
      sgl++;
      wl++;
    } else {
      if (*sgl == '\0' || *sgl == '=') {
        if (*wl == '\0')
          return 0;
        break;
      }
      if (toupper(*sgl) != toupper(*wl))
        break;
    }
    sgl++;
  }
  if (SgNumber >= 195) {
    sgl = SgLabel;
    for (wl = WtdLbl;; wl++) {
      while (*(wl) && (*(wl) == '_' || isspace(*(wl))))
        (wl)++;
      while (*(sgl) && (*(sgl) == '_' || isspace(*(sgl))))
        (sgl)++;
      if (*sgl == '-' && sgl[1] == '3')
        sgl++;
      if (*sgl == '\0' || *sgl == '=') {
        if (*wl == '\0')
          return 0;
        break;
      }
      if (toupper(*sgl) != toupper(*wl))
        break;
      sgl++;
    }
  }
  return -1;
}
```