user: Translate the below assembly code into C programming language:

```asm
<fontSetColorFromToken>:
  endbr64
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  mov    %rdi,%rbx
  sub    $0x30,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x28(%rsp)
  xor    %eax,%eax
  movzbl (%rdi),%eax
  cmp    $0x63,%al
  je     L56
  cmp    $0x61,%al
  je     L54
L94:
  cmp    $0x29,%al
  je     L16
L37:
  mov    $0x2,%ecx
  mov    %rbx,%rdx
  sub    %ebx,%ecx
  nopl   0x0(%rax)
L79:
  lea    (%rcx,%rdx,1),%eax
  add    $0x1,%rdx
  cmpb   $0x29,(%rdx)
  jne    L79
  add    $0x1,%eax
L3:
  mov    0x28(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L57
  add    $0x30,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
  nopl   0x0(%rax,%rax,1)
L56:
  lea    0x1(%rdi),%r12
  xor    %eax,%eax
  lea    0x10(%rsp),%rdx
  lea    0x14(%rsp),%rcx
  lea    0x18(%rsp),%r8
  mov    %r12,%rdi
  lea    D10(%rip),%rsi
  call   <sscanf@plt>
  cmp    $0x3,%eax
  jne    L51
  pxor   %xmm1,%xmm1
  mov    $0xffffffff,%esi
  mov    $0xff,%edi
  cvtsi2ssl 0x18(%rsp),%xmm1
  movss  %xmm1,(%rsp)
  call   <pow@plt>
  pxor   %xmm2,%xmm2
  mov    $0xffffffff,%esi
  mov    $0xff,%edi
  cvtsi2ssl 0x14(%rsp),%xmm2
  mov    %rax,%r13
  movss  %xmm2,0x4(%rsp)
  call   <pow@plt>
  pxor   %xmm3,%xmm3
  mov    $0xffffffff,%esi
  mov    $0xff,%edi
  cvtsi2ssl 0x10(%rsp),%xmm3
  mov    %rax,%rbp
  movss  %xmm3,0x8(%rsp)
  call   <pow@plt>
  pxor   %xmm0,%xmm0
  cvtsi2ss %r13,%xmm0
  mulss  (%rsp),%xmm0
  cvttss2si %xmm0,%edx
  pxor   %xmm0,%xmm0
  cvtsi2ss %rbp,%xmm0
  mulss  0x4(%rsp),%xmm0
  cvttss2si %xmm0,%esi
  pxor   %xmm0,%xmm0
  cvtsi2ss %rax,%xmm0
  mulss  0x8(%rsp),%xmm0
  cvttss2si %xmm0,%edi
  call   <fontColor@plt>
  movzbl 0x1(%rbx),%eax
  mov    %r12,%rbx
  cmp    $0x29,%al
  jne    L37
  nopl   0x0(%rax,%rax,1)
L16:
  mov    $0x2,%eax
  jmp    L3
  nopw   0x0(%rax,%rax,1)
L54:
  lea    0x1(%rdi),%r12
  xor    %eax,%eax
  lea    0x10(%rsp),%rdx
  lea    0x14(%rsp),%rcx
  lea    0x1c(%rsp),%r9
  mov    %r12,%rdi
  lea    0x18(%rsp),%r8
  lea    D9(%rip),%rsi
  call   <sscanf@plt>
  cmp    $0x4,%eax
  jne    L51
  pxor   %xmm4,%xmm4
  mov    $0xffffffff,%esi
  mov    $0xff,%edi
  cvtsi2ssl 0x1c(%rsp),%xmm4
  movss  %xmm4,(%rsp)
  call   <pow@plt>
  pxor   %xmm5,%xmm5
  mov    $0xffffffff,%esi
  mov    $0xff,%edi
  cvtsi2ssl 0x18(%rsp),%xmm5
  mov    %rax,%r14
  movss  %xmm5,0x4(%rsp)
  call   <pow@plt>
  pxor   %xmm6,%xmm6
  mov    $0xffffffff,%esi
  mov    $0xff,%edi
  cvtsi2ssl 0x14(%rsp),%xmm6
  mov    %rax,%r13
  movss  %xmm6,0x8(%rsp)
  call   <pow@plt>
  pxor   %xmm7,%xmm7
  mov    $0xffffffff,%esi
  mov    $0xff,%edi
  cvtsi2ssl 0x10(%rsp),%xmm7
  mov    %rax,%rbp
  movss  %xmm7,0xc(%rsp)
  call   <pow@plt>
  pxor   %xmm0,%xmm0
  cvtsi2ss %r14,%xmm0
  mulss  (%rsp),%xmm0
  cvttss2si %xmm0,%ecx
  pxor   %xmm0,%xmm0
  cvtsi2ss %r13,%xmm0
  mulss  0x4(%rsp),%xmm0
  cvttss2si %xmm0,%edx
  pxor   %xmm0,%xmm0
  cvtsi2ss %rbp,%xmm0
  mulss  0x8(%rsp),%xmm0
  cvttss2si %xmm0,%esi
  pxor   %xmm0,%xmm0
  cvtsi2ss %rax,%xmm0
  mulss  0xc(%rsp),%xmm0
  cvttss2si %xmm0,%edi
  call   <fontColorA@plt>
  movzbl 0x1(%rbx),%eax
  mov    %r12,%rbx
  jmp    L94
L51:
  mov    $0xffffffff,%eax
  jmp    L3
L57:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: tag: D10
type_infered: string
name: extract_symbolic_data
arguments: tag: D9
type_infered: string

tool: D10: (%d %d %d)

tool: D9: (%d %d %d %d)

assistant: ```c
int fontSetColorFromToken(char *s) {
  int clr[4];
  int ret = 1;
  if (*s == 'c') {
    s += 1;
    if (sscanf(s, "(%d %d %d)", &clr[0], &clr[1], &clr[2]) != 3)
      return -1;
    fontColor(clr[0] * (float)pow(255, -1), clr[1] * (float)pow(255, -1), clr[2] * (float)pow(255, -1));
  } else if (*s == 'a') {
    s += 1;
    if (sscanf(s, "(%d %d %d %d)", &clr[0], &clr[1], &clr[2], &clr[3]) != 4)
      return -1;
    fontColorA(clr[0] * (float)pow(255, -1), clr[1] * (float)pow(255, -1), clr[2] * (float)pow(255, -1), clr[3] * (float)pow(255, -1));
  }
  while (*s != ')' && ret++)
    s += 1;
  return ret + 1;
}
```