user: 请从给定的汇编指令推导出C源代码：

```asm
<x6E_Tag_DescriptorParser>:
  endbr64
  test   %rsi,%rsi
  je     L23
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x8,%rsp
  mov    %edi,%r12d
  mov    %rsi,%rbp
  movzbl (%rsi),%esi
  call   <Parser_DisplayTagInfo@plt>
  movzbl 0x1(%rbp),%edx
  lea    D77(%rip),%rsi
  mov    %r12d,%edi
  mov    $0x0,%eax
  call   <Parser_TsPacketLog@plt>
  movzbl 0x2(%rbp),%edx
  shl    $0x8,%edx
  movzbl 0x3(%rbp),%eax
  or     %eax,%edx
  lea    D75(%rip),%rsi
  mov    %r12d,%edi
  mov    $0x0,%eax
  call   <Parser_TsPacketLog@plt>
  lea    D16(%rip),%r14
  lea    D62(%rip),%r13
  lea    D46(%rip),%r15
L21:
  cmpb   $0x2,0x1(%rbp)
  jbe    L2
  movzbl 0x4(%rbp),%edx
  and    $0xf0,%edx
  mov    %r14,%rsi
  mov    %r12d,%edi
  mov    $0x0,%eax
  call   <Parser_TsPacketLog@plt>
  movzbl 0x4(%rbp),%edx
  mov    %edx,%ebx
  and    $0x7,%ebx
  and    $0x7,%edx
  mov    %r13,%rsi
  mov    %r12d,%edi
  mov    $0x0,%eax
  call   <Parser_TsPacketLog@plt>
  sub    $0x1,%ebx
  cmp    $0x2,%bl
  ja     L21
  movzbl 0x5(%rbp),%edx
  shl    $0x8,%edx
  movzbl 0x6(%rbp),%eax
  or     %eax,%edx
  mov    %r15,%rsi
  mov    %r12d,%edi
  mov    $0x0,%eax
  call   <Parser_TsPacketLog@plt>
  movzbl 0x7(%rbp),%edx
  shl    $0x8,%edx
  movzbl 0x8(%rbp),%eax
  or     %eax,%edx
  lea    D58(%rip),%rsi
  mov    %r12d,%edi
  mov    $0x0,%eax
  call   <Parser_TsPacketLog@plt>
  movzbl 0x9(%rbp),%edx
  shl    $0x8,%edx
  movzbl 0xa(%rbp),%eax
  or     %eax,%edx
  lea    D10(%rip),%rsi
  mov    %r12d,%edi
  mov    $0x0,%eax
  call   <Parser_TsPacketLog@plt>
  movzbl 0xb(%rbp),%edx
  lea    D25(%rip),%rsi
  mov    %r12d,%edi
  mov    $0x0,%eax
  call   <Parser_TsPacketLog@plt>
  jmp    L21
L2:
  lea    D21(%rip),%rsi
  mov    %r12d,%edi
  mov    $0x0,%eax
  call   <Parser_TsPacketLog@plt>
  movzbl 0x1(%rbp),%eax
  add    $0x8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L23:
  mov    $0xffffffff,%eax
  ret
```

tool_calls: name: extract_symbolic_data
arguments: label: D77
data_type: string
name: extract_symbolic_data
arguments: label: D75
data_type: string
name: extract_symbolic_data
arguments: label: D16
data_type: string
name: extract_symbolic_data
arguments: label: D62
data_type: string
name: extract_symbolic_data
arguments: label: D46
data_type: string
name: extract_symbolic_data
arguments: label: D58
data_type: string
name: extract_symbolic_data
arguments: label: D10
data_type: string
name: extract_symbolic_data
arguments: label: D25
data_type: string
name: extract_symbolic_data
arguments: label: D21
data_type: string

tool: D77: Descriptor_length = 0x%x


tool: D75: announcement_support_indicator = 0x%x


tool: D16: announcement_type = 0x%x


tool: D62: reference_type = 0x%x


tool: D46: original_network_id = 0x%x


tool: D58: transport_stream_id = 0x%x


tool: D10: service_id = 0x%x


tool: D25: component_tag = 0x%x


tool: D21: ******END******


assistant: ```c
int x6E_Tag_DescriptorParser(unsigned int type, unsigned char *buff) {
  unsigned int i = 0;
  unsigned char reference_type = 0;
  unsigned char offset = 0;
  if (NULL == buff) {
    return -1;
  }
  Parser_DisplayTagInfo(type, buff[0]);
  Parser_TsPacketLog(type, "Descriptor_length = 0x%x\n", buff[1]);
  Parser_TsPacketLog(type, "announcement_support_indicator = 0x%x\n", ((buff[2] & 0xFF) << 8) | (buff[3] & 0xFF));
  for (i = 2; i < buff[1]; i += offset) {
    Parser_TsPacketLog(type, "announcement_type = 0x%x\n", buff[4] & 0xF0);
    reference_type = buff[4] & 0x07;
    Parser_TsPacketLog(type, "reference_type = 0x%x\n", reference_type);
    if ((0x01 == reference_type) || (0x02 == reference_type) || (0x03 == reference_type)) {
      Parser_TsPacketLog(type, "original_network_id = 0x%x\n", ((buff[5] & 0xFF) << 8) | (buff[6] & 0xFF));
      Parser_TsPacketLog(type, "transport_stream_id = 0x%x\n", ((buff[7] & 0xFF) << 8) | (buff[8] & 0xFF));
      Parser_TsPacketLog(type, "service_id = 0x%x\n", ((buff[9] & 0xFF) << 8) | (buff[10] & 0xFF));
      Parser_TsPacketLog(type, "component_tag = 0x%x\n", buff[11]);
    } else {
    }
  }
  Parser_TsPacketLog(type, "******END******\n");
  return buff[1];
}
```