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

```asm
<decode_oid>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x8,%rsp
  mov    %rdi,%r14
  mov    %rsi,%rbp
  mov    $0x1,%esi
  mov    $0x64,%edi
  call   <calloc@plt>
  mov    %rax,%r15
  mov    $0x1,%esi
  mov    $0x6,%edi
  call   <calloc@plt>
  mov    %rax,%r13
  mov    0x0(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,0x0(%rbp)
  mov    %edx,%edx
  movzbl (%r14,%rdx,1),%ebx
  add    $0x2,%eax
  mov    %eax,0x0(%rbp)
  mov    %eax,%eax
  cmpb   $0x2b,(%r14,%rax,1)
  je     L17
L13:
  sub    $0x1,%bl
  je     L30
  mov    $0x0,%r12d
  jmp    L59
L17:
  lea    D12(%rip),%rsi
  mov    %r15,%rdi
  call   <strcat@plt>
  jmp    L13
L10:
  and    $0x7f,%edx
  or     %r12d,%edx
  shl    $0x7,%edx
  mov    %edx,%r12d
L76:
  sub    $0x1,%bl
  je     L30
L59:
  mov    0x0(%rbp),%eax
  add    $0x1,%eax
  mov    %eax,0x0(%rbp)
  mov    %eax,%eax
  movzbl (%r14,%rax,1),%edx
  test   %dl,%dl
  js     L10
  movzbl %dl,%edx
  test   %r12d,%r12d
  je     L15
  or     %r12d,%edx
  lea    D13(%rip),%rsi
  mov    %r13,%rdi
  call   <sprintf@plt>
  mov    %r13,%rsi
  mov    %r15,%rdi
  call   <strcat@plt>
  mov    $0x0,%r12d
  jmp    L76
L15:
  lea    D13(%rip),%rsi
  mov    %r13,%rdi
  call   <sprintf@plt>
  mov    %r13,%rsi
  mov    %r15,%rdi
  call   <strcat@plt>
  jmp    L76
L30:
  mov    %r15,%rdi
  call   <strlen@plt>
  lea    0x1(%rax),%esi
  mov    $0x1,%edi
  call   <calloc@plt>
  mov    %rax,%rbx
  mov    %r15,%rsi
  mov    %rax,%rdi
  call   <strcpy@plt>
  addl   $0x1,0x0(%rbp)
  mov    %r15,%rdi
  call   <free@plt>
  mov    %r13,%rdi
  call   <free@plt>
  mov    %rbx,%rax
  add    $0x8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

tool_calls: name: parse_data
arguments: tag: D12
datatype: string
name: parse_data
arguments: tag: D13
datatype: string

tool: D12: 1.3

tool: D13: .%d

assistant: ```c
unsigned char *decode_oid(unsigned char *array, unsigned int *pointer) {
  unsigned char *string = NULL;
  unsigned char *buffer = (unsigned char *)calloc(100, sizeof(unsigned char));
  unsigned char *number = (unsigned char *)calloc(6, sizeof(unsigned char));
  unsigned int oid_node, oid_node_long = 0;
  *pointer = *pointer + 1;
  unsigned char length = array[*pointer];
  *pointer = *pointer + 1;
  if (array[*pointer] == 0x2b) {
    strcat((char *)buffer, "1.3");
  }
  length--;
  while (length) {
    *pointer = *pointer + 1;
    oid_node = array[*pointer];
    if (oid_node & 0x80) {
      oid_node_long |= oid_node & 0x7f;
      oid_node_long = oid_node_long << 7;
    } else {
      if (oid_node_long) {
        oid_node_long |= oid_node;
        sprintf((char *)number, ".%d", oid_node_long);
        strcat((char *)buffer, (char *)number);
        oid_node_long = 0;
      } else {
        sprintf((char *)number, ".%d", oid_node);
        strcat((char *)buffer, (char *)number);
      }
    }
    length--;
  }
  string = (unsigned char *)calloc(1, strlen((char *)buffer) + 1);
  strcpy((char *)string, (char *)buffer);
  *pointer = *pointer + 1;
  free(buffer);
  free(number);
  return string;
}
```