user: Demonstrate the C code that generates the assembly output below:

```asm
<tls1_prf>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x110,%rsp
  mov    %rdi,-0xe8(%rbp)
  mov    %esi,-0xec(%rbp)
  mov    %rdx,-0xf8(%rbp)
  mov    %rcx,-0x100(%rbp)
  mov    %r8d,-0xf0(%rbp)
  mov    %r9,-0x108(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  mov    -0xf8(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  lea    0x14(%rax),%edx
  mov    -0xf0(%rbp),%eax
  add    %edx,%eax
  cmp    $0x80,%eax
  jbe    L92
  mov    $0xffffe800,%eax
  jmp    L131
L92:
  mov    -0xec(%rbp),%eax
  add    $0x1,%eax
  mov    %eax,%edx
  shr    $0x1f,%edx
  add    %edx,%eax
  sar    %eax
  mov    %eax,-0xcc(%rbp)
  mov    -0xe8(%rbp),%rax
  mov    %rax,-0xc0(%rbp)
  mov    -0xec(%rbp),%eax
  cltq
  mov    -0xcc(%rbp),%edx
  movslq %edx,%rdx
  sub    %rdx,%rax
  mov    %rax,%rcx
  mov    -0xe8(%rbp),%rax
  add    %rcx,%rax
  mov    %rax,-0xb8(%rbp)
  mov    -0xf8(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  mov    %eax,-0xc8(%rbp)
  lea    -0x90(%rbp),%rax
  add    $0x14,%rax
  mov    -0xc8(%rbp),%edx
  mov    -0xf8(%rbp),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <memcpy@plt>
  mov    -0xc8(%rbp),%eax
  cltq
  lea    0x14(%rax),%rdx
  lea    -0x90(%rbp),%rax
  lea    (%rax,%rdx,1),%rcx
  mov    -0xf0(%rbp),%edx
  mov    -0x100(%rbp),%rax
  mov    %rax,%rsi
  mov    %rcx,%rdi
  mov    $0x0,%eax
  call   <memcpy@plt>
  mov    -0xf0(%rbp),%eax
  add    %eax,-0xc8(%rbp)
  lea    -0x90(%rbp),%rdx
  add    $0x4,%rdx
  lea    -0x90(%rbp),%rax
  add    $0x14,%rax
  mov    -0xc8(%rbp),%ecx
  mov    -0xcc(%rbp),%esi
  mov    -0xc0(%rbp),%rdi
  mov    %rdx,%r8
  mov    %rax,%rdx
  call   <md5_hmac@plt>
  movl   $0x0,-0xd4(%rbp)
  jmp    L67
L55:
  mov    -0xc8(%rbp),%eax
  lea    0x10(%rax),%edx
  lea    -0x90(%rbp),%rax
  add    $0x4,%rax
  lea    -0xb0(%rbp),%rcx
  mov    -0xcc(%rbp),%esi
  mov    -0xc0(%rbp),%rdi
  mov    %rcx,%r8
  mov    %edx,%ecx
  mov    %rax,%rdx
  call   <md5_hmac@plt>
  lea    -0x90(%rbp),%rdx
  add    $0x4,%rdx
  lea    -0x90(%rbp),%rax
  add    $0x4,%rax
  mov    -0xcc(%rbp),%esi
  mov    -0xc0(%rbp),%rdi
  mov    %rdx,%r8
  mov    $0x10,%ecx
  mov    %rax,%rdx
  call   <md5_hmac@plt>
  mov    -0xd4(%rbp),%eax
  add    $0xf,%eax
  cmp    %eax,0x10(%rbp)
  jg     L51
  mov    0x10(%rbp),%eax
  cltd
  shr    $0x1c,%edx
  add    %edx,%eax
  and    $0xf,%eax
  sub    %edx,%eax
  jmp    L7
L51:
  mov    $0x10,%eax
L7:
  mov    %eax,-0xc4(%rbp)
  movl   $0x0,-0xd0(%rbp)
  jmp    L27
L90:
  mov    -0xd4(%rbp),%edx
  mov    -0xd0(%rbp),%eax
  add    %edx,%eax
  movslq %eax,%rdx
  mov    -0x108(%rbp),%rax
  add    %rax,%rdx
  mov    -0xd0(%rbp),%eax
  cltq
  movzbl -0xb0(%rbp,%rax,1),%eax
  mov    %al,(%rdx)
  addl   $0x1,-0xd0(%rbp)
L27:
  mov    -0xd0(%rbp),%eax
  cmp    -0xc4(%rbp),%eax
  jl     L90
  addl   $0x10,-0xd4(%rbp)
L67:
  mov    -0xd4(%rbp),%eax
  cmp    0x10(%rbp),%eax
  jl     L55
  lea    -0x90(%rbp),%rax
  add    $0x14,%rax
  lea    -0x90(%rbp),%rcx
  mov    -0xc8(%rbp),%edx
  mov    -0xcc(%rbp),%esi
  mov    -0xb8(%rbp),%rdi
  mov    %rcx,%r8
  mov    %edx,%ecx
  mov    %rax,%rdx
  call   <sha1_hmac@plt>
  movl   $0x0,-0xd4(%rbp)
  jmp    L9
L135:
  mov    -0xc8(%rbp),%eax
  lea    0x14(%rax),%ecx
  lea    -0xb0(%rbp),%rdi
  lea    -0x90(%rbp),%rdx
  mov    -0xcc(%rbp),%esi
  mov    -0xb8(%rbp),%rax
  mov    %rdi,%r8
  mov    %rax,%rdi
  call   <sha1_hmac@plt>
  lea    -0x90(%rbp),%rcx
  lea    -0x90(%rbp),%rdx
  mov    -0xcc(%rbp),%esi
  mov    -0xb8(%rbp),%rax
  mov    %rcx,%r8
  mov    $0x14,%ecx
  mov    %rax,%rdi
  call   <sha1_hmac@plt>
  mov    -0xd4(%rbp),%eax
  add    $0x13,%eax
  cmp    %eax,0x10(%rbp)
  jg     L11
  mov    0x10(%rbp),%ecx
  movslq %ecx,%rax
  imul   $0x66666667,%rax,%rax
  shr    $0x20,%rax
  sar    $0x3,%eax
  mov    %ecx,%esi
  sar    $0x1f,%esi
  sub    %esi,%eax
  mov    %eax,%edx
  mov    %edx,%eax
  shl    $0x2,%eax
  add    %edx,%eax
  shl    $0x2,%eax
  sub    %eax,%ecx
  mov    %ecx,%edx
  jmp    L22
L11:
  mov    $0x14,%edx
L22:
  mov    %edx,-0xc4(%rbp)
  movl   $0x0,-0xd0(%rbp)
  jmp    L35
L143:
  mov    -0xd4(%rbp),%edx
  mov    -0xd0(%rbp),%eax
  add    %edx,%eax
  movslq %eax,%rdx
  mov    -0x108(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%ecx
  mov    -0xd0(%rbp),%eax
  cltq
  movzbl -0xb0(%rbp,%rax,1),%edx
  mov    -0xd4(%rbp),%esi
  mov    -0xd0(%rbp),%eax
  add    %esi,%eax
  movslq %eax,%rsi
  mov    -0x108(%rbp),%rax
  add    %rsi,%rax
  xor    %ecx,%edx
  mov    %dl,(%rax)
  addl   $0x1,-0xd0(%rbp)
L35:
  mov    -0xd0(%rbp),%eax
  cmp    -0xc4(%rbp),%eax
  jl     L143
  addl   $0x14,-0xd4(%rbp)
L9:
  mov    -0xd4(%rbp),%eax
  cmp    0x10(%rbp),%eax
  jl     L135
  lea    -0x90(%rbp),%rax
  mov    $0x80,%edx
  mov    $0x0,%esi
  mov    %rax,%rdi
  call   <memset@plt>
  lea    -0xb0(%rbp),%rax
  mov    $0x14,%edx
  mov    $0x0,%esi
  mov    %rax,%rdi
  call   <memset@plt>
  mov    $0x0,%eax
L131:
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L133
  call   <__stack_chk_fail@plt>
L133:
  leave
  ret
```

assistant: ```c
int tls1_prf(unsigned char *secret, int slen, char *label, unsigned char *random, int rlen, unsigned char *dstbuf, int dlen) {
  int nb, hs;
  int i, j, k;
  unsigned char *S1, *S2;
  unsigned char tmp[128];
  unsigned char h_i[20];
  if (sizeof(tmp) < 20 + strlen(label) + rlen)
    return (-0x1800);
  hs = (slen + 1) / 2;
  S1 = secret;
  S2 = secret + slen - hs;
  nb = strlen(label);
  memcpy(tmp + 20, label, nb);
  memcpy(tmp + 20 + nb, random, rlen);
  nb += rlen;
  md5_hmac(S1, hs, tmp + 20, nb, 4 + tmp);
  for (i = 0; i < dlen; i += 16) {
    md5_hmac(S1, hs, 4 + tmp, 16 + nb, h_i);
    md5_hmac(S1, hs, 4 + tmp, 16, 4 + tmp);
    k = (i + 16 > dlen) ? dlen % 16 : 16;
    for (j = 0; j < k; j++)
      dstbuf[i + j] = h_i[j];
  }
  sha1_hmac(S2, hs, tmp + 20, nb, tmp);
  for (i = 0; i < dlen; i += 20) {
    sha1_hmac(S2, hs, tmp, 20 + nb, h_i);
    sha1_hmac(S2, hs, tmp, 20, tmp);
    k = (i + 20 > dlen) ? dlen % 20 : 20;
    for (j = 0; j < k; j++)
      dstbuf[i + j] = (unsigned char)(dstbuf[i + j] ^ h_i[j]);
  }
  memset(tmp, 0, sizeof(tmp));
  memset(h_i, 0, sizeof(h_i));
  return (0);
}
```