user: Please show me the C implementation that matches the assembly code listed below:

```asm
<x09_Tag_DescriptorParser>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x20,%rsp
  mov    %edi,-0x14(%rbp)
  mov    %rsi,-0x20(%rbp)
  movl   $0x0,-0x4(%rbp)
  cmpq   $0x0,-0x20(%rbp)
  jne    L48
  mov    $0xffffffff,%eax
  jmp    L3
L48:
  mov    -0x20(%rbp),%rax
  movzbl (%rax),%eax
  movzbl %al,%edx
  mov    -0x14(%rbp),%eax
  mov    %edx,%esi
  mov    %eax,%edi
  call   <Parser_DisplayTagInfo@plt>
  mov    -0x20(%rbp),%rax
  add    $0x1,%rax
  movzbl (%rax),%eax
  movzbl %al,%edx
  mov    -0x14(%rbp),%eax
  lea    D1(%rip),%rcx
  mov    %rcx,%rsi
  mov    %eax,%edi
  mov    $0x0,%eax
  call   <Parser_TsPacketLog@plt>
  mov    -0x20(%rbp),%rax
  add    $0x2,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  shl    $0x8,%eax
  mov    %eax,%edx
  mov    -0x20(%rbp),%rax
  add    $0x3,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  or     %eax,%edx
  mov    -0x14(%rbp),%eax
  lea    D45(%rip),%rcx
  mov    %rcx,%rsi
  mov    %eax,%edi
  mov    $0x0,%eax
  call   <Parser_TsPacketLog@plt>
  mov    -0x20(%rbp),%rax
  add    $0x4,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  shl    $0x8,%eax
  and    $0x1f00,%eax
  mov    %eax,%edx
  mov    -0x20(%rbp),%rax
  add    $0x5,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  or     %eax,%edx
  mov    -0x14(%rbp),%eax
  lea    D40(%rip),%rcx
  mov    %rcx,%rsi
  mov    %eax,%edi
  mov    $0x0,%eax
  call   <Parser_TsPacketLog@plt>
  mov    -0x20(%rbp),%rax
  add    $0x1,%rax
  movzbl (%rax),%eax
  cmp    $0x4,%al
  jbe    L49
  mov    -0x14(%rbp),%eax
  lea    D67(%rip),%rdx
  mov    %rdx,%rsi
  mov    %eax,%edi
  mov    $0x0,%eax
  call   <Parser_TsPacketLog@plt>
  movl   $0x0,-0x4(%rbp)
  jmp    L25
L38:
  mov    -0x4(%rbp),%eax
  add    $0x6,%eax
  mov    %eax,%edx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movzbl %al,%edx
  mov    -0x14(%rbp),%eax
  lea    D15(%rip),%rcx
  mov    %rcx,%rsi
  mov    %eax,%edi
  mov    $0x0,%eax
  call   <Parser_TsPacketLog@plt>
  addl   $0x1,-0x4(%rbp)
L25:
  mov    -0x20(%rbp),%rax
  add    $0x1,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  sub    $0x4,%eax
  cmp    %eax,-0x4(%rbp)
  jb     L38
  mov    -0x14(%rbp),%eax
  lea    D28(%rip),%rdx
  mov    %rdx,%rsi
  mov    %eax,%edi
  mov    $0x0,%eax
  call   <Parser_TsPacketLog@plt>
L49:
  mov    -0x14(%rbp),%eax
  lea    D35(%rip),%rdx
  mov    %rdx,%rsi
  mov    %eax,%edi
  mov    $0x0,%eax
  call   <Parser_TsPacketLog@plt>
  mov    -0x20(%rbp),%rax
  add    $0x1,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
L3:
  leave
  ret
```

tool_calls: name: unpack_data
arguments: label: D1
type_guessed: string
name: unpack_data
arguments: label: D45
type_guessed: string
name: unpack_data
arguments: label: D40
type_guessed: string
name: unpack_data
arguments: label: D67
type_guessed: string
name: unpack_data
arguments: label: D15
type_guessed: string
name: unpack_data
arguments: label: D28
type_guessed: string
name: unpack_data
arguments: label: D35
type_guessed: string

tool: D1: Descriptor_length = 0x%x


tool: D45: Ca_system_id = 0x%x


tool: D40: Ca_pid = 0x%x


tool: D67: Descriptor_data:

tool: D15:  0x%x

tool: D28: 


tool: D35: ******END******


assistant: ```c
int x09_Tag_DescriptorParser(unsigned int type, unsigned char *buff) {
  unsigned int i = 0;
  if (NULL == buff) {
    return -1;
  }
  Parser_DisplayTagInfo(type, buff[0]);
  Parser_TsPacketLog(type, "Descriptor_length = 0x%x\n", buff[1]);
  Parser_TsPacketLog(type, "Ca_system_id = 0x%x\n", ((buff[2] & 0xFF) << 8) | (buff[3] & 0xFF));
  Parser_TsPacketLog(type, "Ca_pid = 0x%x\n", ((buff[4] & 0x1F) << 8) | (buff[5] & 0xFF));
  if (buff[1] > 4) {
    Parser_TsPacketLog(type, "Descriptor_data:");
    for (i = 0; i < buff[1] - 4; i++) {
      Parser_TsPacketLog(type, " 0x%x", buff[6 + i]);
    }
    Parser_TsPacketLog(type, "\n");
  }
  Parser_TsPacketLog(type, "******END******\n");
  return buff[1];
}
```