user: 请将以下的汇编代码转换成C语言代码：

```asm
<match_c_literal>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x38,%rsp
  movzbl (%rdi),%r12d
  mov    %rdi,0x10(%rsp)
  mov    %rsi,0x28(%rsp)
  test   %r12b,%r12b
  je     L250
  mov    %rdi,%rax
  movl   $0x0,0x18(%rsp)
  mov    %rdi,%r13
  xor    %ebp,%ebp
  add    $0x1,%rax
  movl   $0x0,0x1c(%rsp)
  mov    $0x1,%r14d
  xor    %ebx,%ebx
  movl   $0x0,0xc(%rsp)
  mov    %rax,0x20(%rsp)
  jmp    L144
  nopl   0x0(%rax)
L158:
  or     %ebp,%ebx
  jne    L151
  movl   $0x1,0x18(%rsp)
  mov    %r14d,%r15d
  xor    %ebp,%ebp
L167:
  movzbl 0x1(%r13),%r12d
  add    $0x1,%r13
  add    $0x1,%r14d
  test   %r12b,%r12b
  je     L151
L144:
  movsbl %r12b,%edi
  lea    -0x1(%r14),%r15d
  call   <isdigit@plt>
  test   %rax,%rax
  jne    L158
  mov    0xc(%rsp),%esi
  test   %esi,%esi
  jne    L87
  cmp    $0x2e,%r12b
  jne    L87
  or     %ebp,%ebx
  jne    L151
  movl   $0x1,0xc(%rsp)
  mov    %r14d,%r15d
  xor    %ebp,%ebp
  jmp    L167
  nopw   0x0(%rax,%rax,1)
L87:
  cmp    $0x66,%r12b
  jne    L350
  mov    0xc(%rsp),%ecx
  test   %ecx,%ecx
  jne    L69
L350:
  cmp    $0x2d,%r12b
  jne    L340
  cmp    %r13,0x10(%rsp)
  jne    L340
L351:
  mov    %r14d,%r15d
  jmp    L167
  nopl   0x0(%rax)
L340:
  cmp    $0x78,%r12b
  je     L281
  mov    %r12d,%eax
  and    $0xffffffdf,%eax
  cmp    $0x55,%al
  jne    L264
  test   $0x1,%bl
  jne    L264
  mov    %r14d,%r15d
  mov    $0x1,%ebx
  jmp    L167
  cs nopw 0x0(%rax,%rax,1)
L264:
  cmp    $0x4c,%al
  jne    L214
  cmp    $0x1,%ebp
  jle    L243
L214:
  mov    0x1c(%rsp),%edx
  test   %edx,%edx
  je     L151
  or     %ebp,%ebx
  jne    L151
  cmp    $0x46,%r12b
  jg     L63
  cmp    $0x40,%r12b
  jg     L104
L151:
  cmp    $0x1,%r15d
  je     L18
L303:
  mov    0x18(%rsp),%eax
  test   %eax,%eax
  je     L250
  mov    0x28(%rsp),%rcx
  cmp    %rcx,0x10(%rsp)
  ja     L307
L330:
  add    $0x38,%rsp
  mov    %r15d,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax)
L63:
  lea    -0x61(%r12),%edx
  cmp    $0x5,%dl
  ja     L151
L104:
  mov    %r14d,%r15d
  xor    %ebp,%ebp
  jmp    L167
  nopl   0x0(%rax)
L281:
  cmp    0x20(%rsp),%r13
  jne    L214
  movl   $0x1,0x1c(%rsp)
  mov    %r14d,%r15d
  jmp    L167
  nopw   0x0(%rax,%rax,1)
L18:
  mov    0x10(%rsp),%rax
  movzbl (%rax),%eax
  mov    %al,0xc(%rsp)
  sub    $0x2d,%eax
  cmp    $0x1,%al
  ja     L303
  nopl   0x0(%rax,%rax,1)
L250:
  xor    %r15d,%r15d
  jmp    L330
  nopl   (%rax)
L243:
  add    $0x1,%ebp
  jmp    L351
L307:
  mov    0x10(%rsp),%rbx
  movsbl -0x1(%rbx),%edi
  call   <is_caps_var_char@plt>
  test   %rax,%rax
  jne    L250
  movsbl -0x1(%rbx),%edi
  call   <isalpha@plt>
  test   %rax,%rax
  je     L330
  jmp    L250
L69:
  or     %ebp,%ebx
  cmove  %r14d,%r15d
  jmp    L151
```

assistant: ```c
int64_t match_c_literal(const char *str, const char *beginning_of_line) {
  const char *itr = str;
  int64_t count = 0;
  char ch = *itr;
  bool seen_decimal = false;
  bool seen_hex = false;
  bool seen_u = false;
  bool seen_digit = false;
  int seen_l = 0;
  while (ch != 0) {
    if (isdigit(ch)) {
      if (seen_u || seen_l)
        break;
      seen_digit = true;
      count++;
    } else if (!seen_decimal && ch == '.') {
      if (seen_u || seen_l)
        break;
      seen_decimal = true;
      count++;
    } else if (ch == 'f' && seen_decimal) {
      if (seen_u || seen_l)
        break;
      count++;
      break;
    } else if (ch == '-' && itr == str) {
      count++;
    } else if (ch == 'x' && itr == (str + 1)) {
      seen_hex = true;
      count++;
    } else if ((ch == 'u' || ch == 'U') && !seen_u) {
      seen_u = true;
      count++;
    } else if ((ch == 'l' || ch == 'L') && seen_l < 2) {
      seen_l++;
      count++;
    } else if (seen_hex) {
      if (seen_u || seen_l)
        break;
      bool valid_hex_char = false;
      switch (ch) {
      default:
        break;
      case 'a':
      case 'b':
      case 'c':
      case 'd':
      case 'e':
      case 'f':
      case 'A':
      case 'B':
      case 'C':
      case 'D':
      case 'E':
      case 'F':
        count++;
        valid_hex_char = true;
        break;
      }
      if (!valid_hex_char)
        break;
    } else {
      break;
    }
    itr++;
    ch = *itr;
  }
  if (count == 1 && (str[0] == '-' || str[0] == '.'))
    return 0;
  if (!seen_digit)
    return 0;
  if (str > beginning_of_line) {
    const char *prev = str - 1;
    if (is_caps_var_char(*prev) || isalpha(*prev))
      return 0;
  }
  return count;
}
```