user: What would the C source look like for the assembly code provided here:

```asm
<get_rotate_fontname>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x1f0,%rsp
  mov    %rdi,-0x1e8(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movq   $0x0,-0x1c0(%rbp)
  movq   $0x0,-0x1c8(%rbp)
  movq   $0x0,-0x1b8(%rbp)
  movl   $0x0,-0x1d0(%rbp)
  movl   $0x0,-0x1d4(%rbp)
  movl   $0x0,-0x1cc(%rbp)
  cmpq   $0x0,-0x1e8(%rbp)
  je     L215
  mov    -0x1e8(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  mov    %eax,-0x1cc(%rbp)
  cmpl   $0x0,-0x1cc(%rbp)
  jg     L257
L215:
  mov    $0x0,%eax
  jmp    L94
L257:
  mov    -0x1cc(%rbp),%eax
  add    $0x1,%eax
  cltq
  mov    %rax,%rdi
  call   <malloc@plt>
  mov    %rax,-0x1c0(%rbp)
  cmpq   $0x0,-0x1c0(%rbp)
  jne    L12
  mov    $0x0,%eax
  jmp    L94
L12:
  mov    -0x1e8(%rbp),%rdx
  mov    -0x1c0(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcpy@plt>
  lea    -0x1b0(%rbp),%rax
  mov    $0x70,%edx
  mov    $0x0,%esi
  mov    %rax,%rdi
  call   <memset@plt>
  mov    -0x1c0(%rbp),%rax
  mov    %rax,-0x1c8(%rbp)
  jmp    L265
L61:
  addq   $0x1,-0x1c8(%rbp)
L265:
  mov    -0x1c8(%rbp),%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <isspace@plt>
  test   %eax,%eax
  jne    L61
  mov    -0x1c8(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x2d,%al
  jne    L241
  addq   $0x1,-0x1c8(%rbp)
L241:
  movl   $0x0,-0x1d4(%rbp)
  jmp    L269
L195:
  mov    -0x1d4(%rbp),%eax
  cltq
  mov    -0x1c8(%rbp),%rdx
  mov    %rdx,-0x1b0(%rbp,%rax,8)
  mov    -0x1c8(%rbp),%rax
  mov    $0x2d,%esi
  mov    %rax,%rdi
  call   <strchr@plt>
  mov    %rax,-0x1c8(%rbp)
  cmpq   $0x0,-0x1c8(%rbp)
  je     L32
  mov    -0x1c8(%rbp),%rax
  movb   $0x0,(%rax)
L32:
  addq   $0x1,-0x1c8(%rbp)
  addl   $0x1,-0x1d4(%rbp)
L269:
  cmpl   $0xd,-0x1d4(%rbp)
  jg     L73
  cmpq   $0x0,-0x1c8(%rbp)
  je     L73
  mov    -0x1c8(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  jne    L195
L73:
  cmpl   $0xd,-0x1d4(%rbp)
  jg     L229
  mov    $0x0,%eax
  jmp    L94
L229:
  mov    -0x180(%rbp),%rax
  mov    %rax,-0x1c8(%rbp)
  jmp    L277
L167:
  mov    -0x1c8(%rbp),%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  sub    $0x30,%eax
  cmp    $0x9,%eax
  jbe    L186
  cmpq   $0x0,-0x1c0(%rbp)
  je     L234
  mov    -0x1c0(%rbp),%rax
  mov    %rax,%rdi
  call   <free@plt>
L234:
  mov    $0x0,%eax
  jmp    L94
L186:
  addq   $0x1,-0x1c8(%rbp)
L277:
  cmpq   $0x0,-0x1c8(%rbp)
  je     L271
  mov    -0x1c8(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  jne    L167
L271:
  mov    -0x180(%rbp),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <atoi@plt>
  mov    %eax,-0x1d0(%rbp)
  mov    -0x1d0(%rbp),%ecx
  mov    -0x1d0(%rbp),%edx
  lea    -0x130(%rbp),%rax
  lea    D11(%rip),%rsi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <sprintf@plt>
  lea    -0x130(%rbp),%rax
  mov    %rax,-0x180(%rbp)
  lea    -0x134(%rbp),%rax
  movw   $0x2a,(%rax)
  lea    -0x134(%rbp),%rax
  mov    %rax,-0x178(%rbp)
  movb   $0x0,-0x110(%rbp)
  movl   $0x0,-0x1d4(%rbp)
  jmp    L34
L275:
  mov    -0x1d4(%rbp),%eax
  cltq
  mov    -0x1b0(%rbp,%rax,8),%rcx
  lea    -0x110(%rbp),%rdx
  lea    -0x110(%rbp),%rax
  lea    D7(%rip),%rsi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <sprintf@plt>
  addl   $0x1,-0x1d4(%rbp)
L34:
  cmpl   $0xd,-0x1d4(%rbp)
  jg     L242
  mov    -0x1d4(%rbp),%eax
  cltq
  mov    -0x1b0(%rbp,%rax,8),%rax
  test   %rax,%rax
  jne    L275
L242:
  cmpq   $0x0,-0x1c0(%rbp)
  je     L93
  mov    -0x1c0(%rbp),%rax
  mov    %rax,%rdi
  call   <free@plt>
L93:
  lea    -0x110(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  add    $0x1,%rax
  mov    %rax,%rdi
  call   <malloc@plt>
  mov    %rax,-0x1b8(%rbp)
  cmpq   $0x0,-0x1b8(%rbp)
  jne    L178
  mov    $0x0,%eax
  jmp    L94
L178:
  lea    -0x110(%rbp),%rdx
  mov    -0x1b8(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcpy@plt>
  mov    -0x1b8(%rbp),%rax
L94:
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L29
  call   <__stack_chk_fail@plt>
L29:
  leave
  ret
```

tool_calls: name: read_data
arguments: data_tag: D11
type_guessed: string
name: read_data
arguments: data_tag: D7
type_guessed: string

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

tool: D7: %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;
}
```