user: 请将这段汇编代码片段转换成等效的C代码：

```asm
<tlsext_cb>:
  endbr64
  mov    %edx,%eax
  add    $0xffffff80,%edx
  push   %r13
  mov    %rcx,%r13
  push   %r12
  mov    %r8d,%r12d
  push   %rbp
  mov    %r9,%rbp
  cmp    $0x13,%edx
  ja     L158
  lea    D178(%rip),%rcx
  movslq (%rcx,%rdx,4),%rdx
  add    %rcx,%rdx
  notrack jmp *%rdx
  nopl   0x0(%rax)
  lea    D171(%rip),%r10
L198:
  test   %esi,%esi
  lea    D194(%rip),%rcx
  mov    %r12d,%r9d
  mov    %rbp,%rdi
  lea    D99(%rip),%rdx
  mov    %eax,%r8d
  lea    D144(%rip),%rsi
  cmove  %rcx,%rdx
  mov    %r10,%rcx
  call   <BIO_printf@plt>
  mov    %rbp,%rdi
  mov    %r12d,%edx
  mov    %r13,%rsi
  call   <BIO_dump@plt>
  mov    %rbp,%rdi
  pop    %rbp
  pop    %r12
  pop    %r13
  jmp    1090 <BIO_flush@plt>
  cs nopw 0x0(%rax,%rax,1)
  lea    D55(%rip),%r10
  jmp    L198
  nopl   0x0(%rax)
  lea    D116(%rip),%r10
  jmp    L198
  nopl   0x0(%rax)
  lea    D200(%rip),%r10
  jmp    L198
  nopl   0x0(%rax)
  lea    D155(%rip),%r10
  jmp    L198
  nopl   0x0(%rax)
  lea    D117(%rip),%r10
  jmp    L198
  nopl   0x0(%rax)
  lea    D230(%rip),%r10
  jmp    L198
  nopl   0x0(%rax)
  lea    D38(%rip),%r10
  jmp    L198
  nopl   0x0(%rax)
  lea    D89(%rip),%r10
  jmp    L198
  nopl   0x0(%rax)
  lea    D247(%rip),%r10
  jmp    L198
  nopl   0x0(%rax)
  lea    D87(%rip),%r10
  jmp    L198
  nopl   0x0(%rax)
  lea    D159(%rip),%r10
  jmp    L198
  nopl   0x0(%rax)
  lea    D205(%rip),%r10
  jmp    L198
  nopl   0x0(%rax)
  lea    D13(%rip),%r10
  jmp    L198
  nopl   0x0(%rax)
  lea    D114(%rip),%r10
  jmp    L198
  nopl   0x0(%rax)
  lea    D39(%rip),%r10
  jmp    L198
  nopl   0x0(%rax)
  lea    D107(%rip),%r10
  jmp    L198
  nopl   0x0(%rax)
  lea    D42(%rip),%r10
  jmp    L198
  nopl   0x0(%rax)
  lea    D41(%rip),%r10
  jmp    L198
  nopl   0x0(%rax)
  lea    D127(%rip),%r10
  jmp    L198
L158:
  lea    D134(%rip),%r10
  jmp    L198
```

tool_calls: name: retrieve_data
arguments: data_tag: D171
type_guessed: string
name: retrieve_data
arguments: data_tag: D194
type_guessed: string
name: retrieve_data
arguments: data_tag: D99
type_guessed: string
name: retrieve_data
arguments: data_tag: D144
type_guessed: string
name: retrieve_data
arguments: data_tag: D55
type_guessed: string
name: retrieve_data
arguments: data_tag: D116
type_guessed: string
name: retrieve_data
arguments: data_tag: D200
type_guessed: string
name: retrieve_data
arguments: data_tag: D155
type_guessed: string
name: retrieve_data
arguments: data_tag: D117
type_guessed: string
name: retrieve_data
arguments: data_tag: D230
type_guessed: string
name: retrieve_data
arguments: data_tag: D38
type_guessed: string
name: retrieve_data
arguments: data_tag: D89
type_guessed: string
name: retrieve_data
arguments: data_tag: D247
type_guessed: string
name: retrieve_data
arguments: data_tag: D87
type_guessed: string
name: retrieve_data
arguments: data_tag: D159
type_guessed: string
name: retrieve_data
arguments: data_tag: D205
type_guessed: string
name: retrieve_data
arguments: data_tag: D13
type_guessed: string
name: retrieve_data
arguments: data_tag: D114
type_guessed: string
name: retrieve_data
arguments: data_tag: D39
type_guessed: string
name: retrieve_data
arguments: data_tag: D107
type_guessed: string
name: retrieve_data
arguments: data_tag: D42
type_guessed: string
name: retrieve_data
arguments: data_tag: D41
type_guessed: string
name: retrieve_data
arguments: data_tag: D127
type_guessed: string
name: retrieve_data
arguments: data_tag: D134
type_guessed: string

tool: D171: max fragment length

tool: D194: client

tool: D99: server

tool: D144: TLS %s extension "%s" (id=%d), len=%d


tool: D55: server name

tool: D116: server authz

tool: D200: TLS padding

tool: D155: renegotiation info

tool: D117: truncated HMAC

tool: D230: trusted CA keys

tool: D38: use SRTP

tool: D89: status request

tool: D247: EC point formats

tool: D87: elliptic curves

tool: D159: heartbeat

tool: D205: user mapping

tool: D13: application layer protocol negotiation

tool: D114: cert type

tool: D39: client authz

tool: D107: client certificate URL

tool: D42: session ticket

tool: D41: signature algorithms

tool: D127: SRP

tool: D134: unknown

assistant: ```c
void tlsext_cb(SSL *s, int client_server, int type, unsigned char *data, int len, void *arg) {
  BIO *bio = arg;
  char *extname;
  switch (type) {
  case TLSEXT_TYPE_server_name:
    extname = "server name";
    break;
  case TLSEXT_TYPE_max_fragment_length:
    extname = "max fragment length";
    break;
  case TLSEXT_TYPE_client_certificate_url:
    extname = "client certificate URL";
    break;
  case TLSEXT_TYPE_trusted_ca_keys:
    extname = "trusted CA keys";
    break;
  case TLSEXT_TYPE_truncated_hmac:
    extname = "truncated HMAC";
    break;
  case TLSEXT_TYPE_status_request:
    extname = "status request";
    break;
  case TLSEXT_TYPE_user_mapping:
    extname = "user mapping";
    break;
  case TLSEXT_TYPE_client_authz:
    extname = "client authz";
    break;
  case TLSEXT_TYPE_server_authz:
    extname = "server authz";
    break;
  case TLSEXT_TYPE_cert_type:
    extname = "cert type";
    break;
  case TLSEXT_TYPE_elliptic_curves:
    extname = "elliptic curves";
    break;
  case TLSEXT_TYPE_ec_point_formats:
    extname = "EC point formats";
    break;
  case TLSEXT_TYPE_srp:
    extname = "SRP";
    break;
  case TLSEXT_TYPE_signature_algorithms:
    extname = "signature algorithms";
    break;
  case TLSEXT_TYPE_use_srtp:
    extname = "use SRTP";
    break;
  case TLSEXT_TYPE_heartbeat:
    extname = "heartbeat";
    break;
  case TLSEXT_TYPE_session_ticket:
    extname = "session ticket";
    break;
  case TLSEXT_TYPE_renegotiate:
    extname = "renegotiation info";
    break;
  case TLSEXT_TYPE_application_layer_protocol_negotiation:
    extname = "application layer protocol negotiation";
    break;
  case TLSEXT_TYPE_padding:
    extname = "TLS padding";
    break;
  default:
    extname = "unknown";
    break;
  }
  BIO_printf(bio, "TLS %s extension \"%s\" (id=%d), len=%d\n", client_server ? "server" : "client", extname, type, len);
  BIO_dump(bio, (char *)data, len);
  (void)BIO_flush(bio);
}
```