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

```asm
<toc_uuid>:
  endbr64
  push   %r15
  mov    %rsi,%r15
  push   %r14
  mov    %rdx,%r14
  push   %r13
  mov    %rcx,%r13
  push   %r12
  mov    %rdi,%r12
  push   %rbp
  push   %rbx
  mov    %r8,%rbx
  sub    $0x38,%rsp
  mov    0x78(%rsp),%rax
  mov    0x70(%rsp),%rbp
  mov    %r9,(%rsp)
  mov    0x80(%rsp),%rcx
  mov    %rbp,0x18(%rsp)
  mov    %rax,0x8(%rsp)
  mov    %rcx,0x10(%rsp)
  mov    %fs:0x28,%rax
  mov    %rax,0x28(%rsp)
  xor    %eax,%eax
  call   <strlen@plt>
  cmp    $0x4,%eax
  jg     L141
  movl   $0x946,(%r15)
  mov    $0x10,%edx
  xor    %esi,%esi
  mov    %r12,%rdi
  call   <strtol@plt>
  mov    0x10(%rsp),%rcx
  mov    %eax,(%r14)
  mov    0x8(%rsp),%rax
  movl   $0x4c7f,0x0(%r13)
  movl   $0x11d1,(%rbx)
  mov    (%rsp),%rbx
  movl   $0x8222,(%rbx)
  movl   $0x4445,0x0(%rbp)
  movl   $0x5354,(%rax)
  movl   $0x0,(%rcx)
L98:
  mov    0x28(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L164
  add    $0x38,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax)
L141:
  lea    0x23(%rsp),%rbp
  mov    $0x4,%edx
  mov    %r12,%rsi
  movb   $0x0,0x27(%rsp)
  mov    %rbp,%rdi
  call   <strncpy@plt>
  xor    %edi,%edi
  cmpb   $0x0,0x27(%rsp)
  je     L36
L185:
  call   <assert@plt>
  xor    %esi,%esi
  mov    $0x10,%edx
  mov    %rbp,%rdi
  call   <strtol@plt>
  mov    %rbp,%rdi
  lea    0x4(%r12),%rsi
  mov    $0x4,%edx
  mov    %eax,(%r15)
  call   <strncpy@plt>
  xor    %edi,%edi
  cmpb   $0x0,0x27(%rsp)
  je     L67
L2:
  call   <assert@plt>
  xor    %esi,%esi
  mov    $0x10,%edx
  mov    %rbp,%rdi
  call   <strtol@plt>
  mov    %rbp,%rdi
  lea    0x9(%r12),%rsi
  mov    $0x4,%edx
  mov    %eax,(%r14)
  call   <strncpy@plt>
  xor    %edi,%edi
  cmpb   $0x0,0x27(%rsp)
  je     L160
L113:
  call   <assert@plt>
  xor    %esi,%esi
  mov    $0x10,%edx
  mov    %rbp,%rdi
  call   <strtol@plt>
  mov    %rbp,%rdi
  lea    0xe(%r12),%rsi
  mov    $0x4,%edx
  mov    %eax,0x0(%r13)
  call   <strncpy@plt>
  xor    %edi,%edi
  cmpb   $0x0,0x27(%rsp)
  je     L84
L161:
  call   <assert@plt>
  xor    %esi,%esi
  mov    $0x10,%edx
  mov    %rbp,%rdi
  call   <strtol@plt>
  mov    %rbp,%rdi
  lea    0x13(%r12),%rsi
  mov    $0x4,%edx
  mov    %eax,(%rbx)
  call   <strncpy@plt>
  xor    %edi,%edi
  cmpb   $0x0,0x27(%rsp)
  je     L14
L114:
  call   <assert@plt>
  xor    %esi,%esi
  mov    $0x10,%edx
  mov    %rbp,%rdi
  call   <strtol@plt>
  mov    (%rsp),%rbx
  mov    %rbp,%rdi
  lea    0x18(%r12),%rsi
  mov    $0x4,%edx
  mov    %eax,(%rbx)
  call   <strncpy@plt>
  xor    %edi,%edi
  cmpb   $0x0,0x27(%rsp)
  je     L85
L21:
  call   <assert@plt>
  xor    %esi,%esi
  mov    $0x10,%edx
  mov    %rbp,%rdi
  call   <strtol@plt>
  mov    0x18(%rsp),%rbx
  mov    %rbp,%rdi
  lea    0x1c(%r12),%rsi
  mov    $0x4,%edx
  mov    %eax,(%rbx)
  call   <strncpy@plt>
  xor    %edi,%edi
  cmpb   $0x0,0x27(%rsp)
  je     L4
L54:
  call   <assert@plt>
  xor    %esi,%esi
  mov    $0x10,%edx
  mov    %rbp,%rdi
  call   <strtol@plt>
  mov    0x8(%rsp),%rbx
  mov    %rbp,%rdi
  lea    0x20(%r12),%rsi
  mov    $0x4,%edx
  mov    %eax,(%rbx)
  call   <strncpy@plt>
  xor    %edi,%edi
  cmpb   $0x0,0x27(%rsp)
  je     L110
L122:
  call   <assert@plt>
  mov    $0x10,%edx
  xor    %esi,%esi
  mov    %rbp,%rdi
  call   <strtol@plt>
  mov    0x10(%rsp),%rcx
  mov    %eax,(%rcx)
  jmp    L98
L110:
  mov    %rbp,%rdi
  call   <strlen@plt>
  xor    %edi,%edi
  cmp    $0x4,%eax
  sete   %dil
  jmp    L122
  nopl   0x0(%rax,%rax,1)
L36:
  mov    %rbp,%rdi
  call   <strlen@plt>
  xor    %edi,%edi
  cmp    $0x4,%eax
  sete   %dil
  jmp    L185
  xchg   %ax,%ax
L67:
  mov    %rbp,%rdi
  call   <strlen@plt>
  xor    %edi,%edi
  cmp    $0x4,%eax
  sete   %dil
  jmp    L2
  cs nopw 0x0(%rax,%rax,1)
L160:
  mov    %rbp,%rdi
  call   <strlen@plt>
  xor    %edi,%edi
  cmp    $0x4,%eax
  sete   %dil
  jmp    L113
  cs nopw 0x0(%rax,%rax,1)
L84:
  mov    %rbp,%rdi
  call   <strlen@plt>
  xor    %edi,%edi
  cmp    $0x4,%eax
  sete   %dil
  jmp    L161
  cs nopw 0x0(%rax,%rax,1)
L14:
  mov    %rbp,%rdi
  call   <strlen@plt>
  xor    %edi,%edi
  cmp    $0x4,%eax
  sete   %dil
  jmp    L114
  cs nopw 0x0(%rax,%rax,1)
L85:
  mov    %rbp,%rdi
  call   <strlen@plt>
  xor    %edi,%edi
  cmp    $0x4,%eax
  sete   %dil
  jmp    L21
  cs nopw 0x0(%rax,%rax,1)
L4:
  mov    %rbp,%rdi
  call   <strlen@plt>
  xor    %edi,%edi
  cmp    $0x4,%eax
  sete   %dil
  jmp    L54
L164:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
void toc_uuid(const char *const uuid, int *A1, int *A2, int *B, int *C, int *D, int *E1, int *E2, int *E3) {
  if (strlen(uuid) <= 4) {
    *A1 = 0x0946;
    *A2 = strtol(uuid, NULL, 16);
    *B = 0x4C7F;
    *C = 0x11D1;
    *D = 0x8222;
    *E1 = 0x4445;
    *E2 = 0x5354;
    *E3 = 0x0000;
  } else {
    char buf[5];
    buf[4] = 0;
    strncpy(buf, uuid + 0, 4);
    assert((buf[4] == 0) && (strlen(buf) == 4));
    *A1 = strtol(buf, NULL, 16);
    strncpy(buf, uuid + 4, 4);
    assert((buf[4] == 0) && (strlen(buf) == 4));
    *A2 = strtol(buf, NULL, 16);
    strncpy(buf, uuid + 9, 4);
    assert((buf[4] == 0) && (strlen(buf) == 4));
    *B = strtol(buf, NULL, 16);
    strncpy(buf, uuid + 14, 4);
    assert((buf[4] == 0) && (strlen(buf) == 4));
    *C = strtol(buf, NULL, 16);
    strncpy(buf, uuid + 19, 4);
    assert((buf[4] == 0) && (strlen(buf) == 4));
    *D = strtol(buf, NULL, 16);
    strncpy(buf, uuid + 24, 4);
    assert((buf[4] == 0) && (strlen(buf) == 4));
    *E1 = strtol(buf, NULL, 16);
    strncpy(buf, uuid + 28, 4);
    assert((buf[4] == 0) && (strlen(buf) == 4));
    *E2 = strtol(buf, NULL, 16);
    strncpy(buf, uuid + 32, 4);
    assert((buf[4] == 0) && (strlen(buf) == 4));
    *E3 = strtol(buf, NULL, 16);
  }
}
```