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

```asm
<x4D_Tag_DescriptorParser>:
  endbr64
  test   %rsi,%rsi
  je     L4
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  mov    %edi,%ebp
  mov    %rsi,%rbx
  movzbl (%rsi),%esi
  call   <Parser_DisplayTagInfo@plt>
  movzbl 0x1(%rbx),%edx
  lea    D96(%rip),%rsi
  mov    %ebp,%edi
  mov    $0x0,%eax
  call   <Parser_TsPacketLog@plt>
  movzbl 0x4(%rbx),%r9d
  movzbl 0x3(%rbx),%r8d
  movzbl 0x2(%rbx),%ecx
  mov    %ecx,%edx
  shl    $0x10,%edx
  mov    %r8d,%eax
  shl    $0x8,%eax
  or     %eax,%edx
  or     %r9d,%edx
  lea    D61(%rip),%rsi
  mov    %ebp,%edi
  mov    $0x0,%eax
  call   <Parser_TsPacketLog@plt>
  movzbl 0x5(%rbx),%edx
  lea    D45(%rip),%rsi
  mov    %ebp,%edi
  mov    $0x0,%eax
  call   <Parser_TsPacketLog@plt>
  lea    0x6(%rbx),%r13
  mov    $0x0,%r12d
  cmpb   $0x0,0x5(%rbx)
  jne    L58
L29:
  mov    %r12d,%r12d
  movzbl 0x6(%rbx,%r12,1),%r14d
  movzbl %r14b,%edx
  lea    D65(%rip),%rsi
  mov    %ebp,%edi
  mov    $0x0,%eax
  call   <Parser_TsPacketLog@plt>
  test   %r14b,%r14b
  jne    L34
L36:
  lea    D56(%rip),%rsi
  mov    %ebp,%edi
  mov    $0x0,%eax
  call   <Parser_TsPacketLog@plt>
  movzbl 0x1(%rbx),%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
L58:
  lea    D103(%rip),%rsi
  mov    %ebp,%edi
  mov    $0x0,%eax
  call   <Parser_TsPacketLog@plt>
  cmpb   $0x0,0x5(%rbx)
  je     L50
  lea    D14(%rip),%r14
L83:
  mov    %r12d,%eax
  movzbl 0x0(%r13,%rax,1),%edx
  mov    %r14,%rsi
  mov    %ebp,%edi
  mov    $0x0,%eax
  call   <Parser_TsPacketLog@plt>
  add    $0x1,%r12d
  movzbl 0x5(%rbx),%eax
  cmp    %r12d,%eax
  ja     L83
L57:
  lea    D35(%rip),%rsi
  mov    %ebp,%edi
  mov    $0x0,%eax
  call   <Parser_TsPacketLog@plt>
  jmp    L29
L50:
  mov    $0x0,%r12d
  jmp    L57
L34:
  lea    D66(%rip),%rsi
  mov    %ebp,%edi
  mov    $0x0,%eax
  call   <Parser_TsPacketLog@plt>
  lea    0x7(%rbx,%r12,1),%r13
  lea    0x8(%rbx,%r12,1),%r12
  movzbl %r14b,%r14d
  lea    -0x1(%r14),%eax
  add    %rax,%r12
  lea    D14(%rip),%r14
L20:
  movzbl 0x0(%r13),%edx
  mov    %r14,%rsi
  mov    %ebp,%edi
  mov    $0x0,%eax
  call   <Parser_TsPacketLog@plt>
  add    $0x1,%r13
  cmp    %r12,%r13
  jne    L20
  lea    D35(%rip),%rsi
  mov    %ebp,%edi
  mov    $0x0,%eax
  call   <Parser_TsPacketLog@plt>
  jmp    L36
L4:
  mov    $0xffffffff,%eax
  ret
```

tool_calls: name: disassemble_data
arguments: label: D96
type_infered: string
name: disassemble_data
arguments: label: D61
type_infered: string
name: disassemble_data
arguments: label: D45
type_infered: string
name: disassemble_data
arguments: label: D65
type_infered: string
name: disassemble_data
arguments: label: D56
type_infered: string
name: disassemble_data
arguments: label: D103
type_infered: string
name: disassemble_data
arguments: label: D14
type_infered: string
name: disassemble_data
arguments: label: D35
type_infered: string
name: disassemble_data
arguments: label: D66
type_infered: string

tool: D96: Descriptor_length = 0x%x


tool: D61: ISO_639_language_code = 0x%x : %c%c%c


tool: D45: event_name_length = 0x%x


tool: D65: text_length = 0x%x


tool: D56: ******END******


tool: D103: event_name: 

tool: D14: %c

tool: D35: 


tool: D66: text: 

assistant: ```c
int x4D_Tag_DescriptorParser(unsigned int type, unsigned char *buff) {
  unsigned int i = 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]);
  Parser_TsPacketLog(type, "ISO_639_language_code = 0x%x : %c%c%c\n", ((buff[2] & 0xFF) << 16) | ((buff[3] & 0xFF) << 8) | (buff[4] & 0xFF), buff[2], buff[3], buff[4]);
  Parser_TsPacketLog(type, "event_name_length = 0x%x\n", buff[5]);
  data = buff;
  data += 6;
  if (0 != buff[5]) {
    Parser_TsPacketLog(type, "event_name: ");
    for (i = 0; i < buff[5]; i++) {
      Parser_TsPacketLog(type, "%c", data[i]);
    }
    Parser_TsPacketLog(type, "\n");
  }
  tmplen = data[i];
  data += i;
  data += 1;
  Parser_TsPacketLog(type, "text_length = 0x%x\n", tmplen);
  if (0 != tmplen) {
    Parser_TsPacketLog(type, "text: ");
    for (i = 0; i < tmplen; i++) {
      Parser_TsPacketLog(type, "%c", data[i]);
    }
    Parser_TsPacketLog(type, "\n");
  }
  Parser_TsPacketLog(type, "******END******\n");
  return buff[1];
}
```