user: 这段汇编代码用C语言表示是什么样的:

```asm
<glob>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x148,%rsp
  mov    %edx,0x10(%rsp)
  mov    %fs:0x28,%rax
  mov    %rax,0x138(%rsp)
  xor    %eax,%eax
  test   %rdi,%rdi
  je     L711
  mov    %rsi,%rbp
  test   %rsi,%rsi
  je     L711
  movzbl (%rdi),%eax
  mov    %rdi,%rbx
  lea    0x1(%rdi),%r14
  test   %al,%al
  je     L388
  lea    0x1(%rsi),%r12
L552:
  lea    -0x1(%r12),%r13
  cmp    $0x5b,%al
  je     L341
  jg     L106
  cmp    $0x2a,%al
  je     L695
  cmp    $0x3f,%al
  jne    L366
  movzbl -0x1(%r12),%eax
  mov    %r12,0x8(%rsp)
  test   %al,%al
  je     L711
  cmp    %rbp,%r13
  sete   %dl
  cmp    $0x2e,%al
  sete   %al
  test   %al,%dl
  je     L722
  mov    0x10(%rsp),%edx
  test   %edx,%edx
  jne    L711
  nopl   0x0(%rax,%rax,1)
L722:
  movzbl (%r14),%eax
  mov    %r14,%rbx
L723:
  lea    0x1(%rbx),%r14
  add    $0x1,%r12
  test   %al,%al
  jne    L552
L233:
  mov    0x8(%rsp),%rax
  cmpb   $0x0,(%rax)
  sete   %al
  movzbl %al,%eax
  jmp    L545
  nopl   0x0(%rax,%rax,1)
L106:
  cmp    $0x5c,%al
  jne    L366
  movzbl 0x1(%rbx),%eax
  lea    0x2(%rbx),%r14
L366:
  mov    %r12,0x8(%rsp)
  cmp    %al,-0x1(%r12)
  je     L722
L711:
  xor    %eax,%eax
L545:
  mov    0x138(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L501
  add    $0x148,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax,%rax,1)
L695:
  mov    0x10(%rsp),%eax
  test   %eax,%eax
  je     L610
  cmp    %rbp,%r13
  jne    L610
  cmpb   $0x2e,0x0(%r13)
  je     L711
  nopl   0x0(%rax)
L610:
  movzbl (%r14),%ebx
  add    $0x1,%r14
  cmp    $0x2a,%bl
  je     L610
  cmp    $0x3f,%bl
  jne    L181
L783:
  cmpb   $0x0,0x0(%r13)
  lea    0x1(%r13),%rax
  je     L711
  movzbl (%r14),%ebx
  add    $0x1,%r14
  mov    %rax,%r13
  cmp    $0x2a,%bl
  je     L610
  cmp    $0x3f,%bl
  je     L783
L181:
  test   %bl,%bl
  je     L667
  mov    %ebx,%ebp
  cmp    $0x5c,%bl
  jne    L61
  movzbl (%r14),%ebp
  jmp    L61
  cs nopw 0x0(%rax,%rax,1)
L341:
  movzbl -0x1(%r12),%r13d
  mov    %r12,0x8(%rsp)
  test   %r13b,%r13b
  je     L711
  lea    0x30(%rsp),%rax
  cmpb   $0x21,0x1(%rbx)
  mov    $0x0,%edx
  mov    %rax,0x18(%rsp)
  je     L273
  xor    %esi,%esi
  mov    %rax,%rdi
  mov    $0xffffffff,%r15d
  call   <memset@plt>
L319:
  movzbl (%r14),%eax
  lea    0x1(%r14),%rbx
  cmp    $0x5d,%al
  je     L174
  test   %al,%al
  je     L174
  xor    %r10d,%r10d
  xor    %r14d,%r14d
  jmp    L452
  nopl   (%rax)
L390:
  test   %r15b,%r15b
  je     L673
  cmp    %al,%r13b
  je     L280
L673:
  movslq %r14d,%rdx
  mov    %r15b,0x30(%rsp,%rax,1)
  xor    %r10d,%r10d
  cmp    $0x1,%r14d
  mov    %al,0x2e(%rsp,%rdx,1)
  mov    $0x2,%eax
  cmove  %eax,%r14d
L659:
  movzbl (%rbx),%eax
  add    $0x1,%rbx
  cmp    $0x5d,%al
  je     L174
L579:
  test   %al,%al
  je     L174
L452:
  test   %r10d,%r10d
  jne    L390
  cmp    $0x2d,%al
  je     L704
  cmp    $0x5c,%al
  je     L553
  test   %r15b,%r15b
  je     L615
  cmp    %al,%r13b
  je     L280
L615:
  movslq %r14d,%rdx
  mov    %r15b,0x30(%rsp,%rax,1)
  mov    %al,0x2e(%rsp,%rdx,1)
  cmp    $0x1,%r14d
  je     L560
  cmp    $0x2,%r14d
  jne    L659
L560:
  movzbl 0x2e(%rsp),%edi
  movzbl 0x2f(%rsp),%eax
  cmp    %al,%dil
  jbe    L213
  mov    %edi,%edx
  movzbl %al,%edi
  mov    %edx,%eax
L213:
  test   %r15b,%r15b
  je     L786
  cmp    %r13b,%dil
  ja     L786
  cmp    %r13b,%al
  jae    L280
L786:
  movzbl %al,%edx
  movzbl %dil,%esi
  xor    %r14d,%r14d
  sub    %esi,%edx
  cmp    $0x1,%edx
  jle    L659
  lea    -0x1(%rax),%edx
  movzbl %r15b,%esi
  add    $0x1,%rbx
  mov    %r10d,0x14(%rsp)
  mov    %edx,%eax
  sub    %edi,%eax
  movzbl %al,%edx
  mov    0x18(%rsp),%rax
  lea    0x1(%rax,%rdi,1),%rdi
  call   <memset@plt>
  movzbl -0x1(%rbx),%eax
  mov    0x14(%rsp),%r10d
  cmp    $0x5d,%al
  jne    L579
  nopl   0x0(%rax)
L174:
  movzbl (%rbx),%eax
  test   %al,%al
  je     L735
  movzbl %r13b,%r8d
  cmpb   $0x0,0x30(%rsp,%r8,1)
  jne    L723
  jmp    L711
  nopl   0x0(%rax,%rax,1)
L586:
  movzbl (%rsi),%eax
  lea    0x1(%rsi),%rbx
  test   %al,%al
  je     L260
  cmp    $0x5d,%al
  je     L260
L280:
  movzbl (%rbx),%eax
  lea    0x1(%rbx),%rsi
  test   %al,%al
  je     L378
  cmp    $0x5d,%al
  je     L378
  add    $0x2,%rbx
  cmp    $0x5c,%al
  je     L586
  movzbl -0x1(%rbx),%edx
  lea    -0x1(%rbx),%rdi
  mov    %rbx,%rsi
  cmp    $0x2d,%al
  je     L263
L710:
  mov    %edx,%eax
  test   %dl,%dl
  je     L780
  cmp    $0x5d,%dl
  je     L780
L440:
  add    $0x1,%rbx
  cmp    $0x5c,%dl
  je     L586
  movzbl -0x1(%rbx),%edx
  lea    -0x1(%rbx),%rdi
  mov    %rbx,%rsi
  cmp    $0x2d,%al
  jne    L710
L263:
  cmp    $0x2d,%dl
  je     L735
  mov    %edx,%eax
  cmp    $0x5d,%dl
  je     L780
  test   %dl,%dl
  jne    L440
L780:
  movzbl 0x1(%rdi),%eax
  jmp    L723
  nopl   (%rax)
L553:
  mov    $0x1,%r10d
  jmp    L659
  nopl   0x0(%rax,%rax,1)
L704:
  cmp    $0x1,%r14d
  je     L735
  mov    $0x1,%r14d
  jmp    L659
  nopl   (%rax)
L160:
  sub    $0x1,%r14
  xor    %edx,%edx
  mov    %r13,%rsi
  mov    %r14,%rdi
  call   <glob>
  test   %eax,%eax
  jne    L667
  movzbl 0x0(%r13),%eax
L605:
  add    $0x1,%r13
  test   %al,%al
  je     L711
L61:
  cmp    $0x5b,%bl
  je     L160
  movzbl 0x0(%r13),%eax
  cmp    %bpl,%al
  jne    L605
  jmp    L160
  nopw   0x0(%rax,%rax,1)
L273:
  mov    $0xff,%esi
  mov    %rax,%rdi
  lea    0x2(%rbx),%r14
  xor    %r15d,%r15d
  call   <memset@plt>
  movb   $0x0,0x30(%rsp)
  jmp    L319
  xchg   %ax,%ax
L667:
  mov    $0x1,%eax
  jmp    L545
L260:
  movzbl 0x1(%rsi),%eax
  jmp    L723
L735:
  mov    $0xffffffff,%eax
  jmp    L545
L378:
  movzbl 0x1(%rbx),%eax
  mov    %rsi,%rbx
  jmp    L723
L388:
  mov    %rsi,0x8(%rsp)
  jmp    L233
L501:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
int glob(const char *pat, const char *str, int isdotspecial) {
  char c, cnext;
  const char *str0;
  if (!pat || !str)
    return (0);
  str0 = str;
  while ((c = *pat++)) {
    switch (c) {
    case '\\':
      c = *pat++;
    default:
      if (c != *str++)
        return (0);
      break;
    case '?':
      if (!(*str) || (isdotspecial && str == str0 && *str == '.'))
        return (0);
      str++;
      break;
    case '*':
      if (isdotspecial && str == str0 && *str == '.')
        return (0);
      while ((c = *pat++) == '*' || c == '?')
        if (c == '?' && !(*str++))
          return (0);
      if (c == '\0')
        return (1);
      cnext = (c == '\\') ? *pat : c;
      while (1) {
        if ((c == '[' || *str == cnext) && glob(--pat, str, 0))
          return (1);
        if (!(*str++))
          return (0);
      }
      break;
    case '[':
      if (!(*str))
        return (0);
      else {
        unsigned char c_endpoints[2], mark, targets[256], uc, us;
        int flip_flop, isliteral;
        us = (unsigned char)(*str++);
        if (*pat != '!') {
          mark = 0xff;
          memset(targets, 0x00, sizeof(targets));
        } else {
          mark = 0x00;
          memset(targets, 0xff, sizeof(targets));
          targets[0] = 0x00;
          pat++;
        }
        flip_flop = 0;
        isliteral = 0;
        while ((uc = *pat++) && uc != ']') {
          if (isliteral) {
            isliteral = 0;
            if (mark && uc == us)
              goto hyperspace_bypass;
            c_endpoints[flip_flop] = uc;
            targets[uc] = mark;
            if (flip_flop == 1)
              flip_flop = 2;
          } else {
            switch (uc) {
            default:
              if (mark && uc == us)
                goto hyperspace_bypass;
              c_endpoints[flip_flop] = uc;
              targets[uc] = mark;
              if (flip_flop == 1)
                flip_flop = 2;
              break;
            case '\\':
              isliteral = 1;
              break;
            case '-':
              if (flip_flop == 1)
                return (-1);
              flip_flop = 1;
              break;
            }
            if (flip_flop == 2 && !isliteral) {
              unsigned char c1, c2;
              flip_flop = 0;
              c1 = c_endpoints[0];
              c2 = c_endpoints[1];
              if (c1 > c2) {
                c1 = c2;
                c2 = c_endpoints[0];
              }
              if (mark && (c1 <= us && us <= c2))
                goto hyperspace_bypass;
              if ((c2 - c1) > 1)
                memset(targets + c1 + 1, mark, (c2 - c1) - 1);
            }
          }
        }
        if (!(*pat))
          return (-1);
        if (!targets[us])
          return (0);
        break;
      hyperspace_bypass:
        isliteral = 0;
        while ((uc = *pat++) && uc != ']') {
          if (isliteral)
            isliteral = 0;
          else if (uc == '\\')
            isliteral = 1;
          else if (uc == '-' && *pat == '-')
            return (-1);
        }
        break;
      }
      break;
    }
  }
  return (!(*str) ? 1 : 0);
}
```