user: 提供的汇编代码用C语言表示会是什么样子：

```asm
<paint_rval_text>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x40,%rsp
  mov    %rdi,-0x28(%rbp)
  mov    %esi,-0x2c(%rbp)
  mov    %edx,-0x30(%rbp)
  mov    %ecx,-0x34(%rbp)
  mov    %r8d,-0x38(%rbp)
  movl   $0x0,-0x10(%rbp)
  movl   $0x0,-0xc(%rbp)
  mov    -0x2c(%rbp),%eax
  and    $0x8,%eax
  test   %eax,%eax
  je     L93
  movl   $0x1,-0xc(%rbp)
L93:
  movl   $0x0,-0x18(%rbp)
  mov    -0x2c(%rbp),%eax
  and    $0x1,%eax
  test   %eax,%eax
  je     L12
  movl   $0x1,-0x10(%rbp)
  movl   $0x1,-0x18(%rbp)
  addl   $0xb,-0x38(%rbp)
  jmp    L78
L12:
  addl   $0xb,-0x38(%rbp)
L78:
  mov    -0x2c(%rbp),%eax
  and    $0x30,%eax
  test   %eax,%eax
  jne    L14
  mov    -0xc(%rbp),%r8d
  mov    -0x10(%rbp),%edi
  mov    -0x30(%rbp),%ecx
  mov    -0x28(%rbp),%rdx
  mov    -0x38(%rbp),%esi
  mov    -0x34(%rbp),%eax
  sub    $0x8,%rsp
  push   $0x0
  mov    %r8d,%r9d
  mov    %edi,%r8d
  mov    %eax,%edi
  mov    $0x0,%eax
  call   <omshell_terminaldrawimagestring@plt>
  add    $0x10,%rsp
  cmpl   $0x0,-0x18(%rbp)
  je     L106
  mov    -0x34(%rbp),%eax
  lea    0x1(%rax),%edi
  mov    -0xc(%rbp),%r8d
  mov    -0x10(%rbp),%esi
  mov    -0x30(%rbp),%ecx
  mov    -0x28(%rbp),%rdx
  mov    -0x38(%rbp),%eax
  sub    $0x8,%rsp
  push   $0x0
  mov    %r8d,%r9d
  mov    %esi,%r8d
  mov    %eax,%esi
  mov    $0x0,%eax
  call   <omshell_terminaldrawimagestring@plt>
  add    $0x10,%rsp
  jmp    L106
L14:
  mov    -0x30(%rbp),%eax
  mov    %eax,%edi
  mov    $0x0,%eax
  call   <cmalloc@plt>
  cltq
  mov    %rax,-0x8(%rbp)
  mov    -0x2c(%rbp),%eax
  and    $0x30,%eax
  cmp    $0x10,%eax
  jne    L96
  movl   $0x0,-0x14(%rbp)
  jmp    L158
L102:
  mov    -0x14(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x23,%al
  je     L9
  mov    -0x14(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  jmp    L130
L9:
  mov    $0x1e,%eax
L130:
  mov    -0x14(%rbp),%edx
  movslq %edx,%rcx
  mov    -0x8(%rbp),%rdx
  add    %rcx,%rdx
  mov    %al,(%rdx)
  addl   $0x1,-0x14(%rbp)
L158:
  mov    -0x14(%rbp),%eax
  cmp    -0x30(%rbp),%eax
  jl     L102
  jmp    L134
L96:
  mov    -0x2c(%rbp),%eax
  and    $0x30,%eax
  cmp    $0x20,%eax
  jne    L134
  movl   $0x0,-0x14(%rbp)
  jmp    L72
L54:
  mov    -0x14(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x5f,%al
  jbe    L154
  mov    -0x14(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x7e,%al
  ja     L154
  mov    -0x14(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  and    $0x1f,%eax
  mov    %eax,%edx
  mov    -0x14(%rbp),%eax
  movslq %eax,%rcx
  mov    -0x8(%rbp),%rax
  add    %rcx,%rax
  add    $0x1,%edx
  mov    %dl,(%rax)
  jmp    L97
L154:
  mov    -0x14(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  mov    -0x14(%rbp),%edx
  movslq %edx,%rcx
  mov    -0x8(%rbp),%rdx
  add    %rcx,%rdx
  movzbl (%rax),%eax
  mov    %al,(%rdx)
L97:
  addl   $0x1,-0x14(%rbp)
L72:
  mov    -0x14(%rbp),%eax
  cmp    -0x30(%rbp),%eax
  jl     L54
L134:
  mov    -0xc(%rbp),%r8d
  mov    -0x10(%rbp),%edi
  mov    -0x30(%rbp),%ecx
  mov    -0x28(%rbp),%rdx
  mov    -0x38(%rbp),%esi
  mov    -0x34(%rbp),%eax
  sub    $0x8,%rsp
  push   $0x1
  mov    %r8d,%r9d
  mov    %edi,%r8d
  mov    %eax,%edi
  mov    $0x0,%eax
  call   <omshell_terminaldrawimagestring@plt>
  add    $0x10,%rsp
  cmpl   $0x0,-0x18(%rbp)
  je     L52
  mov    -0x34(%rbp),%eax
  lea    0x1(%rax),%edi
  mov    -0xc(%rbp),%r8d
  mov    -0x10(%rbp),%esi
  mov    -0x30(%rbp),%ecx
  mov    -0x28(%rbp),%rdx
  mov    -0x38(%rbp),%eax
  sub    $0x8,%rsp
  push   $0x1
  mov    %r8d,%r9d
  mov    %esi,%r8d
  mov    %eax,%esi
  mov    $0x0,%eax
  call   <omshell_terminaldrawimagestring@plt>
  add    $0x10,%rsp
L52:
  mov    -0x8(%rbp),%rax
  mov    %rax,%rdi
  call   <free@plt>
L106:
  addl   $0x1,-0x38(%rbp)
  nop
  leave
  ret
```

assistant: ```c
void paint_rval_text(str, rval, len, x, y) unsigned char *str;
int rval;
int len, x, y;
{
  unsigned char *buf;
  int overstrike;
  int i;
  int b = 0, inverso = 0;
  if (rval & 0x08) {
    inverso = 1;
  }
  overstrike = 0;
  if (rval & 0x01) {
    b = 1;
    if (0) {
      y += 11;
    } else {
      overstrike = 1;
      y += 11;
    }
  } else
    y += 11;
  if ((rval & 0x30) == 0x00) {
    omshell_terminaldrawimagestring(x, y, str, len, b, inverso, 0);
    if (overstrike) {
      omshell_terminaldrawimagestring(x + 1, y, str, len, b, inverso, 0);
    }
  } else {
    buf = (unsigned char *)cmalloc(len);
    if ((rval & 0x30) == 0x10) {
      for (i = 0; i < len; i++)
        buf[i] = (str[i] == '#') ? 036 : str[i];
    } else if ((rval & 0x30) == 0x20) {
      for (i = 0; i < len; i++)
        if (str[i] >= 0140 && str[i] <= 0176)
          buf[i] = (str[i] & 037) + 1;
        else
          buf[i] = str[i];
    }
    omshell_terminaldrawimagestring(x, y, str, len, b, inverso, 1);
    if (overstrike)
      omshell_terminaldrawimagestring(x + 1, y, str, len, b, inverso, 1);
    free((void *)buf);
  }
  y++;
  if (rval & 0x02) {
  }
  if (rval & 0x08) {
  }
  if (rval & 0x01) {
  }
}
```