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

```asm
<x45_Tag_DescriptorParser>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x28,%rsp
  mov    %rsi,0x18(%rsp)
  test   %rsi,%rsi
  je     L73
  mov    %rsi,%rbx
  movzbl (%rsi),%esi
  mov    %edi,%r15d
  lea    D8(%rip),%r13
  lea    0x2(%rbx),%rbp
  lea    D22(%rip),%r12
  call   <Parser_DisplayTagInfo@plt>
  movzbl 0x1(%rbx),%edx
  xor    %eax,%eax
  mov    %r15d,%edi
  lea    D16(%rip),%rsi
  call   <Parser_TsPacketLog@plt>
  cmpb   $0x0,0x1(%rbx)
  movl   $0x0,0x10(%rsp)
  je     L24
  mov    %rbp,%rbx
  jmp    L12
  nopl   0x0(%rax)
L84:
  movzbl 0x2(%rbx),%edx
  lea    D64(%rip),%rsi
  mov    %r15d,%edi
  xor    %eax,%eax
  call   <Parser_TsPacketLog@plt>
L8:
  mov    0x18(%rsp),%rax
  addl   $0x1,0x10(%rsp)
  mov    0x8(%rsp),%rbx
  mov    0x10(%rsp),%ecx
  movzbl 0x1(%rax),%eax
  add    %r14,%rbx
  cmp    %ecx,%eax
  jbe    L24
L12:
  movzbl (%rbx),%edx
  lea    D54(%rip),%rsi
  mov    %r15d,%edi
  xor    %eax,%eax
  call   <Parser_TsPacketLog@plt>
  movzbl 0x1(%rbx),%edx
  xor    %eax,%eax
  mov    %r15d,%edi
  lea    D24(%rip),%rsi
  mov    %edx,0x14(%rsp)
  mov    %rdx,%r14
  call   <Parser_TsPacketLog@plt>
  movzbl (%rbx),%eax
  lea    0x2(%rbx),%rcx
  mov    0x14(%rsp),%edx
  mov    %rcx,0x8(%rsp)
  lea    -0x1(%rax),%ecx
  cmp    $0x1,%cl
  jbe    L64
  sub    $0x4,%eax
  cmp    $0x3,%al
  ja     L84
L64:
  test   %edx,%edx
  je     L8
  lea    -0x1(%rdx),%eax
  mov    0x8(%rsp),%rbp
  lea    0x3(%rbx,%rax,1),%rbx
  nopl   0x0(%rax,%rax,1)
L16:
  movzbl 0x0(%rbp),%edx
  mov    %r13,%rsi
  mov    %r15d,%edi
  xor    %eax,%eax
  add    $0x1,%rbp
  sar    $0x5,%edx
  and    $0x2,%edx
  call   <Parser_TsPacketLog@plt>
  movzbl -0x1(%rbp),%edx
  mov    %r12,%rsi
  mov    %r15d,%edi
  xor    %eax,%eax
  and    $0x1f,%edx
  call   <Parser_TsPacketLog@plt>
  cmp    %rbp,%rbx
  jne    L16
  jmp    L8
  nopl   0x0(%rax)
L24:
  lea    D21(%rip),%rsi
  mov    %r15d,%edi
  xor    %eax,%eax
  call   <Parser_TsPacketLog@plt>
  mov    0x18(%rsp),%rax
  movzbl 0x1(%rax),%eax
L76:
  add    $0x28,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L73:
  mov    $0xffffffff,%eax
  jmp    L76
```

tool_calls: name: read_data
arguments: label: D8
data_type: string
name: read_data
arguments: label: D22
data_type: string
name: read_data
arguments: label: D16
data_type: string
name: read_data
arguments: label: D64
data_type: string
name: read_data
arguments: label: D54
data_type: string
name: read_data
arguments: label: D24
data_type: string
name: read_data
arguments: label: D21
data_type: string

tool: D8: field_parity = 0x%x


tool: D22: line_offset = 0x%x


tool: D16: Descriptor_length = 0x%x


tool: D64: reserved = 0x%x ...


tool: D54: data_service_id = 0x%x


tool: D24: data_service_descriptor_length = 0x%x


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


assistant: ```c
int x45_Tag_DescriptorParser(unsigned int type, unsigned char *buff) {
  unsigned int i = 0, j = 0;
  unsigned char tmplen = 0;
  unsigned char *data = NULL;
  if (NULL == buff) {
    return -1;
  }
  Parser_DisplayTagInfo(type, buff[0]);
  Parser_TsPacketLog(type, "Descriptor_length = 0x%x\n", buff[1]);
  data = buff;
  data += 2;
  for (i = 0; i < buff[1]; i++) {
    Parser_TsPacketLog(type, "data_service_id = 0x%x\n", data[0]);
    tmplen = data[1];
    Parser_TsPacketLog(type, "data_service_descriptor_length = 0x%x\n", tmplen);
    if ((data[0] == 0x01) || (data[0] == 0x02) || (data[0] == 0x04) || (data[0] == 0x05) || (data[0] == 0x06) || (data[0] == 0x07)) {
      data += 2;
      for (j = 0; j < tmplen; j++) {
        Parser_TsPacketLog(type, "field_parity = 0x%x\n", (data[j] & 0x40) >> 5);
        Parser_TsPacketLog(type, "line_offset = 0x%x\n", data[j] & 0x1F);
      }
    } else {
      data += 2;
      Parser_TsPacketLog(type, "reserved = 0x%x ...\n", data[0]);
    }
    data += tmplen;
  }
  Parser_TsPacketLog(type, "******END******\n");
  return buff[1];
}
```