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

```asm
<draw_string>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x40,%rsp
  mov    %rdi,-0x28(%rbp)
  mov    %rsi,-0x30(%rbp)
  mov    %edx,-0x34(%rbp)
  mov    %ecx,-0x38(%rbp)
  mov    %r8d,-0x3c(%rbp)
  mov    %r9d,-0x40(%rbp)
  mov    0x18(%rbp),%eax
  mov    %eax,%edx
  shr    $0x1f,%edx
  add    %edx,%eax
  sar    %eax
  mov    %eax,-0xc(%rbp)
  mov    0x18(%rbp),%eax
  and    $0x1,%eax
  mov    %eax,-0x8(%rbp)
  mov    -0x3c(%rbp),%eax
  and    $0x1,%eax
  test   %eax,%eax
  je     L73
  mov    -0x3c(%rbp),%eax
  and    $0x20,%eax
  test   %eax,%eax
  je     L0
  mov    $0x8,%eax
  jmp    L69
L0:
  mov    $0x9,%eax
L69:
  mov    %eax,-0x18(%rbp)
  movl   $0x4,-0x14(%rbp)
  jmp    L109
L73:
  mov    -0x3c(%rbp),%eax
  and    $0x20,%eax
  test   %eax,%eax
  je     L1
  movl   $0x5,-0x18(%rbp)
  movl   $0x0,-0x14(%rbp)
  jmp    L109
L1:
  mov    -0x3c(%rbp),%eax
  and    $0x40,%eax
  test   %eax,%eax
  je     L34
  movl   $0x8,-0x18(%rbp)
  movl   $0x1,-0x14(%rbp)
  jmp    L109
L34:
  movl   $0x7,-0x18(%rbp)
  movl   $0x0,-0x14(%rbp)
L109:
  mov    -0x14(%rbp),%eax
  add    %eax,-0x18(%rbp)
  mov    -0x30(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  mov    %eax,-0x4(%rbp)
  mov    -0x18(%rbp),%eax
  imul   -0x4(%rbp),%eax
  sub    -0x14(%rbp),%eax
  imul   -0xc(%rbp),%eax
  mov    %eax,%edx
  shr    $0x1f,%edx
  add    %edx,%eax
  sar    %eax
  neg    %eax
  mov    %eax,%edx
  mov    -0x34(%rbp),%eax
  add    %edx,%eax
  mov    %eax,-0x1c(%rbp)
  cmpl   $0x0,-0x8(%rbp)
  je     L6
  mov    -0x18(%rbp),%eax
  imul   -0x4(%rbp),%eax
  sub    -0x14(%rbp),%eax
  lea    0x3(%rax),%edx
  test   %eax,%eax
  cmovs  %edx,%eax
  sar    $0x2,%eax
  neg    %eax
  add    %eax,-0x1c(%rbp)
L6:
  movl   $0x0,-0x20(%rbp)
  jmp    L77
L33:
  mov    -0x20(%rbp),%eax
  imul   -0x18(%rbp),%eax
  mov    -0xc(%rbp),%edx
  imul   %edx,%eax
  mov    %eax,-0x10(%rbp)
  cmpl   $0x0,-0x8(%rbp)
  je     L47
  mov    -0x20(%rbp),%eax
  imul   -0x18(%rbp),%eax
  mov    %eax,%edx
  shr    $0x1f,%edx
  add    %edx,%eax
  sar    %eax
  add    %eax,-0x10(%rbp)
L47:
  mov    -0x1c(%rbp),%edx
  mov    -0x10(%rbp),%eax
  lea    (%rdx,%rax,1),%edi
  mov    -0x20(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movzbl %al,%esi
  mov    -0x40(%rbp),%r9d
  mov    -0x3c(%rbp),%r8d
  mov    -0x38(%rbp),%edx
  mov    -0x28(%rbp),%rax
  mov    0x18(%rbp),%ecx
  push   %rcx
  mov    0x10(%rbp),%ecx
  push   %rcx
  mov    %edx,%ecx
  mov    %edi,%edx
  mov    %rax,%rdi
  call   <draw_letter@plt>
  add    $0x10,%rsp
  addl   $0x1,-0x20(%rbp)
L77:
  mov    -0x20(%rbp),%eax
  cmp    -0x4(%rbp),%eax
  jl     L33
  nop
  nop
  leave
  ret
```

assistant: ```c
void draw_string(unsigned char *pixbuf, const unsigned char input_string[], const int xposn, const int yposn, const int textflags, const int image_width, const int image_height, const int si) {
  int i, string_length, string_left_hand, letter_width, letter_gap;
  int half_si = si / 2, odd_si = si & 1, x_incr;
  if (textflags & 1) {
    letter_width = textflags & 32 ? 8 : 9;
    letter_gap = 4;
  } else if (textflags & 32) {
    letter_width = 5;
    letter_gap = 0;
  } else if (textflags & 64) {
    letter_width = 7 + 1;
    letter_gap = 1;
  } else {
    letter_width = 7;
    letter_gap = 0;
  }
  letter_width += letter_gap;
  string_length = (int)strlen((const char *)(input_string));
  string_left_hand = xposn - ((letter_width * string_length - letter_gap) * half_si) / 2;
  if (odd_si) {
    string_left_hand -= (letter_width * string_length - letter_gap) / 4;
  }
  for (i = 0; i < string_length; i++) {
    x_incr = i * letter_width * half_si;
    if (odd_si) {
      x_incr += i * letter_width / 2;
    }
    draw_letter(pixbuf, input_string[i], string_left_hand + x_incr, yposn, textflags, image_width, image_height, si);
  }
}
```