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

```asm
<get_rotate_fontname>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x1b8,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x1a8(%rsp)
  xor    %eax,%eax
  test   %rdi,%rdi
  je     L106
  mov    %rdi,%rbp
  call   <strlen@plt>
  mov    %rax,%rbx
  test   %eax,%eax
  jle    L106
  lea    0x1(%rax),%edi
  movslq %edi,%rdi
  call   <malloc@plt>
  mov    %rax,%r13
  test   %rax,%rax
  je     L106
  lea    0x1(%rbx),%rdx
  mov    %rbp,%rsi
  mov    %rax,%rdi
  mov    %rsp,%rbx
  call   <memcpy@plt>
  mov    $0xe,%ecx
  xor    %eax,%eax
  mov    %rbx,%rdi
  rep stos %rax,%es:(%rdi)
  mov    %r13,%rbp
  jmp    L16
  nop
L186:
  add    $0x1,%rbp
L16:
  movsbl 0x0(%rbp),%edi
  mov    %edi,%r14d
  call   <isspace@plt>
  test   %eax,%eax
  jne    L186
  cmp    $0x2d,%r14b
  je     L132
L175:
  lea    0x70(%rsp),%r12
  mov    %rbx,%r15
  jmp    L9
  nopl   0x0(%rax,%rax,1)
L115:
  mov    %rbp,(%r15)
  mov    $0x2d,%esi
  mov    %rbp,%rdi
  call   <strchr@plt>
  test   %rax,%rax
  je     L228
  movb   $0x0,(%rax)
L228:
  add    $0x8,%r15
  lea    0x1(%rax),%rbp
  cmp    %r12,%r15
  je     L77
  movzbl 0x1(%rax),%r14d
L9:
  test   %r14b,%r14b
  jne    L115
L106:
  xor    %eax,%eax
L32:
  mov    0x1a8(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L222
  add    $0x1b8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopw   0x0(%rax,%rax,1)
L77:
  mov    0x30(%rsp),%rdi
  mov    %rdi,%rdx
  test   %rdi,%rdi
  jne    L2
  nopl   0x0(%rax)
L71:
  xor    %eax,%eax
  lea    0x80(%rsp),%rbp
  lea    D10(%rip),%r14
  call   <atoi@plt>
  mov    %rbp,%rdi
  lea    D13(%rip),%rsi
  mov    %eax,%edx
  mov    %eax,%ecx
  xor    %eax,%eax
  call   <sprintf@plt>
  lea    0x7c(%rsp),%rax
  mov    $0x2a,%edx
  movb   $0x0,0xa0(%rsp)
  mov    %dx,0x7c(%rsp)
  mov    %rax,0x38(%rsp)
  mov    %rbp,0x30(%rsp)
  lea    0xa0(%rsp),%rbp
  nopl   0x0(%rax)
L178:
  mov    (%rbx),%rcx
  test   %rcx,%rcx
  je     L13
  mov    %rbp,%rdx
  mov    %r14,%rsi
  mov    %rbp,%rdi
  xor    %eax,%eax
  call   <sprintf@plt>
  add    $0x8,%rbx
  cmp    %r12,%rbx
  jne    L178
L13:
  mov    %r13,%rdi
  call   <free@plt>
  mov    %rbp,%rdi
  call   <strlen@plt>
  lea    0x1(%rax),%rbx
  mov    %rbx,%rdi
  call   <malloc@plt>
  test   %rax,%rax
  je     L32
  cmp    $0x8,%ebx
  jae    L255
  test   $0x4,%bl
  jne    L243
  test   %ebx,%ebx
  je     L32
  movzbl 0xa0(%rsp),%edx
  mov    %dl,(%rax)
  test   $0x2,%bl
  je     L32
  mov    %ebx,%ebx
  movzwl -0x2(%rbp,%rbx,1),%edx
  mov    %dx,-0x2(%rax,%rbx,1)
  jmp    L32
L211:
  sub    $0x30,%eax
  cmp    $0x9,%eax
  ja     L194
  add    $0x1,%rdx
L2:
  movsbl (%rdx),%eax
  test   %al,%al
  jne    L211
  jmp    L71
  nopl   0x0(%rax,%rax,1)
L132:
  movzbl 0x1(%rbp),%r14d
  add    $0x1,%rbp
  jmp    L175
  xchg   %ax,%ax
L255:
  mov    %ebx,%edx
  mov    %rax,%rdi
  mov    %rbp,%rsi
  mov    -0x8(%rbp,%rdx,1),%rcx
  mov    %rcx,-0x8(%rax,%rdx,1)
  lea    -0x1(%rbx),%ecx
  shr    $0x3,%ecx
  rep movsq %ds:(%rsi),%es:(%rdi)
  jmp    L32
L194:
  mov    %r13,%rdi
  call   <free@plt>
  jmp    L106
L243:
  mov    0xa0(%rsp),%edx
  mov    %ebx,%ebx
  mov    %edx,(%rax)
  mov    -0x4(%rbp,%rbx,1),%edx
  mov    %edx,-0x4(%rax,%rbx,1)
  jmp    L32
L222:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: disassemble_data
arguments: tag: D10
type_guessed: string
name: disassemble_data
arguments: tag: D13
type_guessed: string

tool: D10: %s-%s

tool: D13: [ 0 ~%d %d 0 ]

assistant: ```c
char *get_rotate_fontname(font_name)
char *font_name;
{
  char *pattern = 0, *ptr = 0;
  char *fields[14];
  char str_pixel[32], str_point[4];
  char rotate_font[256];
  char *rotate_font_ptr = 0;
  int pixel_size = 0;
  int field_num = 0, len = 0;
  if (font_name == (char *)0 || (len = strlen(font_name)) <= 0)
    return 0;
  pattern = (char *)malloc((len + 1));
  if (!pattern)
    return 0;
  strcpy(pattern, font_name);
  memset(fields, 0, sizeof(char *) * 14);
  ptr = pattern;
  while (isspace(*ptr)) {
    ptr++;
  }
  if (*ptr == '-')
    ptr++;
  for (field_num = 0; field_num < 14 && ptr && *ptr; ptr++, field_num++) {
    fields[field_num] = ptr;
    if (ptr = strchr(ptr, '-')) {
      *ptr = '\0';
    }
  }
  if (field_num < 14)
    return 0;
  for (ptr = fields[7 - 1]; ptr && *ptr; ptr++) {
    if (!isdigit(*ptr)) {
      if (pattern)
        free((pattern));
      return 0;
    }
  }
  pixel_size = atoi(fields[7 - 1]);
  sprintf(str_pixel, "[ 0 ~%d %d 0 ]", pixel_size, pixel_size);
  fields[6] = str_pixel;
  strcpy(str_point, "*");
  fields[8 - 1] = str_point;
  rotate_font[0] = '\0';
  for (field_num = 0; field_num < 14 && fields[field_num]; field_num++) {
    sprintf(rotate_font, "%s-%s", rotate_font, fields[field_num]);
  }
  if (pattern)
    free((pattern));
  rotate_font_ptr = (char *)malloc((strlen(rotate_font) + 1));
  if (!rotate_font_ptr)
    return 0;
  strcpy(rotate_font_ptr, rotate_font);
  return rotate_font_ptr;
}
```