user: 请将以下的汇编代码转换成C语言代码:

```asm
<print_varbind>:
  endbr64
  push   %r14
  mov    $0xffffffcd,%eax
  push   %r13
  mov    %rdi,%r13
  push   %r12
  push   %rbp
  lea    0x4(%rdi),%rbp
  push   %rbx
  sub    $0x10,%rsp
  movzbl 0x4(%rdi),%edx
  movzbl 0x3(%rdi),%r12d
  lea    D2(%rip),%rdi
  mul    %dl
  shr    $0xd,%ax
  lea    (%rax,%rax,4),%ecx
  movzbl %al,%esi
  xor    %eax,%eax
  shl    $0x3,%ecx
  sub    %ecx,%edx
  movzbl %dl,%edx
  call   <printf@plt>
  cmp    $0x1,%r12b
  jbe    L38
  movzbl %r12b,%eax
  lea    0x5(%r13),%rbx
  xor    %esi,%esi
  sub    $0x2,%eax
  lea    0x6(%r13,%rax,1),%r14
  lea    D45(%rip),%r13
  cs nopw 0x0(%rax,%rax,1)
L51:
  movzbl (%rbx),%eax
  shl    $0x7,%esi
  mov    %eax,%edx
  and    $0x7f,%edx
  add    %edx,%esi
  test   %al,%al
  js     L10
  mov    %r13,%rdi
  xor    %eax,%eax
  call   <printf@plt>
  xor    %esi,%esi
L10:
  add    $0x1,%rbx
  cmp    %r14,%rbx
  jne    L51
L38:
  add    %r12,%rbp
  mov    $0x9,%edi
  call   <putchar@plt>
  cmpb   $0x4,0x0(%rbp)
  movzbl 0x1(%rbp),%esi
  lea    0x2(%rbp),%rbx
  je     L4
  test   %esi,%esi
  je     L78
  lea    -0x1(%rsi),%edx
  mov    %rbx,%rax
  xor    %esi,%esi
  lea    0x3(%rbp,%rdx,1),%rcx
  nopw   0x0(%rax,%rax,1)
L43:
  movzbl (%rax),%edx
  shl    $0x7,%esi
  add    $0x1,%rax
  and    $0x7f,%edx
  add    %edx,%esi
  cmp    %rax,%rcx
  jne    L43
L78:
  add    $0x10,%rsp
  lea    D17(%rip),%rdi
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  jmp    1070 <printf@plt>
  cs nopw 0x0(%rax,%rax,1)
L4:
  lea    D26(%rip),%rdi
  xor    %eax,%eax
  mov    %esi,0xc(%rsp)
  call   <printf@plt>
  mov    0xc(%rsp),%esi
  test   %esi,%esi
  je     L30
  lea    -0x1(%rsi),%eax
  lea    0x3(%rbp,%rax,1),%r12
  lea    D27(%rip),%rbp
  nopl   0x0(%rax)
L57:
  movzbl (%rbx),%esi
  mov    %rbp,%rdi
  xor    %eax,%eax
  add    $0x1,%rbx
  call   <printf@plt>
  cmp    %rbx,%r12
  jne    L57
L30:
  add    $0x10,%rsp
  mov    $0xa,%edi
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  jmp    1060 <putchar@plt>
```

tool_calls: name: parse_data
arguments: data_tag: D2
data_type: string
name: parse_data
arguments: data_tag: D45
data_type: string
name: parse_data
arguments: data_tag: D17
data_type: string
name: parse_data
arguments: data_tag: D26
data_type: string
name: parse_data
arguments: data_tag: D27
data_type: string

tool: D2: %d.%d

tool: D45: .%d

tool: D17: %d


tool: D26: 0x

tool: D27: %02X

assistant: ```c
void print_varbind(unsigned char *varbind, int vblen) {
  unsigned char *p = varbind;
  int i;
  int tag, len, val;
  p += 2;
  vblen -= 2;
  tag = p[0];
  len = p[1];
  p += 2;
  vblen -= 2;
  printf("%d.%d", *p / 40, *p % 40);
  val = 0;
  for (i = 1; i < len; i++) {
    val = (val * 128) + (p[i] & 127);
    if ((p[i] & 0x80) == 0) {
      printf(".%d", val);
      val = 0;
    }
  }
  printf("\t");
  p += len;
  tag = p[0];
  len = p[1];
  p += 2;
  vblen -= 2;
  if (tag == 4) {
    printf("0x");
    for (i = 0; i < len; i++) {
      printf("%02X", p[i]);
    }
    printf("\n");
  } else {
    val = 0;
    for (i = 0; i < len; i++) {
      val = (val * 128) + (p[i] & 127);
    }
    printf("%d\n", val);
  }
}
```