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

```asm
<get_rotate_fontname>:
  endbr64
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x1b8,%rsp
  mov    %rdi,%rbx
  mov    %fs:0x28,%rax
  mov    %rax,0x1a8(%rsp)
  xor    %eax,%eax
  test   %rdi,%rdi
  je     L85
  call   <strlen@plt>
  mov    $0x0,%ebp
  test   %eax,%eax
  jle    L183
  add    $0x1,%eax
  movslq %eax,%rdi
  call   <malloc@plt>
  mov    %rax,%rbp
  test   %rax,%rax
  je     L183
  mov    %rbx,%rsi
  mov    %rax,%rdi
  call   <strcpy@plt>
  mov    %rsp,%rdx
  mov    $0xe,%ecx
  mov    $0x0,%eax
  mov    %rdx,%rdi
  rep stos %rax,%es:(%rdi)
  mov    %rbp,%rbx
  jmp    L23
L144:
  add    $0x1,%rbx
L23:
  movzbl (%rbx),%r12d
  movsbl %r12b,%edi
  call   <isspace@plt>
  test   %eax,%eax
  jne    L144
  cmp    $0x2d,%r12b
  sete   %al
  movzbl %al,%eax
  add    %rax,%rbx
  mov    $0x0,%r12d
  jmp    L81
L44:
  movb   $0x0,(%rax)
L8:
  lea    0x1(%rax),%rbx
  add    $0x1,%r12
  cmp    $0xe,%r12
  je     L111
L81:
  cmpb   $0x0,(%rbx)
  je     L35
  mov    %rbx,(%rsp,%r12,8)
  mov    $0x2d,%esi
  mov    %rbx,%rdi
  call   <strchr@plt>
  test   %rax,%rax
  jne    L44
  jmp    L8
L35:
  cmp    $0xd,%r12d
  jle    L209
L111:
  mov    0x30(%rsp),%rdi
  mov    %rdi,%rdx
  test   %rdi,%rdi
  je     L208
L213:
  movzbl (%rdx),%eax
  test   %al,%al
  je     L208
  movsbl %al,%eax
  sub    $0x30,%eax
  cmp    $0x9,%eax
  ja     L128
  add    $0x1,%rdx
  jmp    L213
L128:
  mov    %rbp,%rdi
  call   <free@plt>
  mov    $0x0,%ebp
  jmp    L183
L208:
  mov    $0x0,%eax
  call   <atoi@plt>
  mov    %eax,%edx
  lea    0x80(%rsp),%rbx
  mov    %eax,%ecx
  lea    D19(%rip),%rsi
  mov    %rbx,%rdi
  mov    $0x0,%eax
  call   <sprintf@plt>
  mov    %rbx,0x30(%rsp)
  lea    0x7c(%rsp),%rax
  movw   $0x2a,0x7c(%rsp)
  mov    %rax,0x38(%rsp)
  movb   $0x0,0xa0(%rsp)
  mov    %rsp,%rbx
  lea    0x70(%rsp),%r13
  lea    D18(%rip),%r12
L26:
  mov    (%rbx),%rcx
  test   %rcx,%rcx
  je     L162
  lea    0xa0(%rsp),%rdi
  mov    %rdi,%rdx
  mov    %r12,%rsi
  mov    $0x0,%eax
  call   <sprintf@plt>
  add    $0x8,%rbx
  cmp    %rbx,%r13
  jne    L26
L162:
  mov    %rbp,%rdi
  call   <free@plt>
  lea    0xa0(%rsp),%rdi
  call   <strlen@plt>
  lea    0x1(%rax),%rdi
  call   <malloc@plt>
  mov    %rax,%rbp
  test   %rax,%rax
  je     L183
  lea    0xa0(%rsp),%rsi
  mov    %rax,%rdi
  call   <strcpy@plt>
L183:
  mov    0x1a8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L175
  mov    %rbp,%rax
  add    $0x1b8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
L85:
  mov    %rdi,%rbp
  jmp    L183
L209:
  mov    $0x0,%ebp
  jmp    L183
L175:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: read_data
arguments: label: D19
datatype: string
name: read_data
arguments: label: D18
datatype: string

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

tool: D18: %s-%s

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;
}
```