user: 提供的汇编代码用C语言表示会是什么样子:

```asm
<Parser_SectionSDT>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x18,%rsp
  test   %rdi,%rdi
  je     L119
  mov    %rdi,%r15
  movzbl (%rdi),%eax
  mov    %eax,%edx
  and    $0xfffffffb,%edx
  cmp    $0x42,%dl
  jne    L120
  movzbl 0x1(%rdi),%ebx
  shl    $0x8,%ebx
  and    $0xf00,%bx
  movzbl 0x2(%rdi),%eax
  or     %eax,%ebx
  lea    D196(%rip),%rsi
  mov    $0x40,%edi
  mov    $0x0,%eax
  call   <Parser_TsPacketLog@plt>
  movzbl (%r15),%edx
  lea    D204(%rip),%rsi
  mov    $0x40,%edi
  mov    $0x0,%eax
  call   <Parser_TsPacketLog@plt>
  movzbl 0x1(%r15),%edx
  shr    $0x7,%dl
  movzbl %dl,%edx
  lea    D239(%rip),%rsi
  mov    $0x40,%edi
  mov    $0x0,%eax
  call   <Parser_TsPacketLog@plt>
  movzwl %bx,%edx
  lea    D174(%rip),%rsi
  mov    $0x40,%edi
  mov    $0x0,%eax
  call   <Parser_TsPacketLog@plt>
  movzbl 0x3(%r15),%edx
  shl    $0x8,%edx
  movzbl 0x4(%r15),%eax
  or     %eax,%edx
  lea    D122(%rip),%rsi
  mov    $0x40,%edi
  mov    $0x0,%eax
  call   <Parser_TsPacketLog@plt>
  movzbl 0x5(%r15),%edx
  sar    %edx
  and    $0x1f,%edx
  lea    D210(%rip),%rsi
  mov    $0x40,%edi
  mov    $0x0,%eax
  call   <Parser_TsPacketLog@plt>
  movzbl 0x5(%r15),%edx
  and    $0x1,%edx
  lea    D92(%rip),%rsi
  mov    $0x40,%edi
  mov    $0x0,%eax
  call   <Parser_TsPacketLog@plt>
  movzbl 0x6(%r15),%edx
  lea    D238(%rip),%rsi
  mov    $0x40,%edi
  mov    $0x0,%eax
  call   <Parser_TsPacketLog@plt>
  movzbl 0x7(%r15),%edx
  lea    D96(%rip),%rsi
  mov    $0x40,%edi
  mov    $0x0,%eax
  call   <Parser_TsPacketLog@plt>
  movzbl 0x8(%r15),%edx
  shl    $0x8,%edx
  movzbl 0x9(%r15),%eax
  or     %eax,%edx
  lea    D44(%rip),%rsi
  mov    $0x40,%edi
  mov    $0x0,%eax
  call   <Parser_TsPacketLog@plt>
  movzwl %bx,%eax
  movzbl (%r15,%rax,1),%edx
  shl    $0x10,%edx
  movzbl 0x2(%r15,%rax,1),%ecx
  or     %ecx,%edx
  movzbl -0x1(%r15,%rax,1),%ecx
  shl    $0x18,%ecx
  or     %ecx,%edx
  movzbl 0x1(%r15,%rax,1),%eax
  shl    $0x8,%eax
  or     %eax,%edx
  lea    D57(%rip),%rsi
  mov    $0x40,%edi
  mov    $0x0,%eax
  call   <Parser_TsPacketLog@plt>
  sub    $0xc,%ebx
  movzwl %bx,%eax
  mov    %eax,0xc(%rsp)
  test   %eax,%eax
  je     L81
  mov    $0xb,%ebp
  movl   $0x0,0x4(%rsp)
  jmp    L80
L119:
  lea    D176(%rip),%rsi
  mov    $0x40,%edi
  mov    $0x0,%eax
  call   <Parser_TsPacketLog@plt>
  mov    $0xffffffff,%eax
  jmp    L92
L120:
  movzbl %al,%edx
  lea    D234(%rip),%rsi
  mov    $0x40,%edi
  mov    $0x0,%eax
  call   <Parser_TsPacketLog@plt>
  mov    $0xffffffff,%eax
  jmp    L92
L116:
  mov    $0x40,%edi
  call   <x48_Tag_DescriptorParser@plt>
  mov    %eax,%ebx
L53:
  add    $0x2,%ebx
  movzwl %bx,%ebx
  add    %ebx,%ebp
  lea    D14(%rip),%rsi
  mov    $0x40,%edi
  mov    $0x0,%eax
  call   <Parser_TsPacketLog@plt>
  add    %ebx,%r12d
  cmp    %r13d,%r12d
  jae    L74
L8:
  mov    %r14,%rsi
  mov    $0x40,%edi
  mov    $0x0,%eax
  call   <Parser_TsPacketLog@plt>
  mov    %ebp,%esi
  add    %r15,%rsi
  movzbl (%rsi),%eax
  cmp    $0x48,%al
  je     L116
  cmp    $0x5d,%al
  je     L10
  mov    $0x40,%edi
  call   <x00_Tag_DescriptorParser@plt>
  mov    %eax,%ebx
  jmp    L53
L10:
  mov    $0x40,%edi
  call   <x5D_Tag_DescriptorParser@plt>
  mov    %eax,%ebx
  jmp    L53
L74:
  lea    D14(%rip),%rsi
  mov    $0x40,%edi
  mov    $0x0,%eax
  call   <Parser_TsPacketLog@plt>
  movzwl 0xa(%rsp),%eax
  add    $0x5,%eax
  movzwl %ax,%eax
  add    %eax,0x4(%rsp)
  mov    0x4(%rsp),%ecx
  cmp    0xc(%rsp),%ecx
  jae    L81
L80:
  lea    D161(%rip),%rsi
  mov    $0x40,%edi
  mov    $0x0,%eax
  call   <Parser_TsPacketLog@plt>
  lea    0x3(%rbp),%ebx
  add    %r15,%rbx
  movzbl (%rbx),%eax
  shl    $0x8,%eax
  and    $0xf00,%ax
  lea    0x4(%rbp),%edx
  movzbl (%r15,%rdx,1),%edx
  or     %edx,%eax
  mov    %eax,%r14d
  mov    %ax,0xa(%rsp)
  mov    %ebp,%eax
  movzbl (%r15,%rax,1),%edx
  shl    $0x8,%edx
  lea    0x1(%rbp),%eax
  movzbl (%r15,%rax,1),%eax
  or     %eax,%edx
  lea    D78(%rip),%rsi
  mov    $0x40,%edi
  mov    $0x0,%eax
  call   <Parser_TsPacketLog@plt>
  lea    0x2(%rbp),%r12d
  add    %r15,%r12
  movzbl (%r12),%edx
  sar    %edx
  and    $0x1,%edx
  lea    D10(%rip),%rsi
  mov    $0x40,%edi
  mov    $0x0,%eax
  call   <Parser_TsPacketLog@plt>
  movzbl (%r12),%edx
  and    $0x1,%edx
  lea    D113(%rip),%rsi
  mov    $0x40,%edi
  mov    $0x0,%eax
  call   <Parser_TsPacketLog@plt>
  movzbl (%rbx),%edx
  shr    $0x5,%dl
  movzbl %dl,%edx
  lea    D21(%rip),%rsi
  mov    $0x40,%edi
  mov    $0x0,%eax
  call   <Parser_TsPacketLog@plt>
  movzbl (%rbx),%edx
  sar    $0x4,%edx
  and    $0x1,%edx
  lea    D116(%rip),%rsi
  mov    $0x40,%edi
  mov    $0x0,%eax
  call   <Parser_TsPacketLog@plt>
  movzwl %r14w,%r13d
  mov    %r13d,%edx
  lea    D25(%rip),%rsi
  mov    $0x40,%edi
  mov    $0x0,%eax
  call   <Parser_TsPacketLog@plt>
  add    $0x5,%ebp
  test   %r13d,%r13d
  je     L74
  mov    $0x0,%r12d
  lea    D9(%rip),%r14
  jmp    L8
L81:
  lea    D14(%rip),%rsi
  mov    $0x40,%edi
  mov    $0x0,%eax
  call   <Parser_TsPacketLog@plt>
  mov    $0x0,%eax
L92:
  add    $0x18,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

tool_calls: name: unpack_data
arguments: label: D196
datatype: string
name: unpack_data
arguments: label: D204
datatype: string
name: unpack_data
arguments: label: D239
datatype: string
name: unpack_data
arguments: label: D174
datatype: string
name: unpack_data
arguments: label: D122
datatype: string
name: unpack_data
arguments: label: D210
datatype: string
name: unpack_data
arguments: label: D92
datatype: string
name: unpack_data
arguments: label: D238
datatype: string
name: unpack_data
arguments: label: D96
datatype: string
name: unpack_data
arguments: label: D44
datatype: string
name: unpack_data
arguments: label: D57
datatype: string
name: unpack_data
arguments: label: D176
datatype: string
name: unpack_data
arguments: label: D234
datatype: string
name: unpack_data
arguments: label: D14
datatype: string
name: unpack_data
arguments: label: D161
datatype: string
name: unpack_data
arguments: label: D78
datatype: string
name: unpack_data
arguments: label: D10
datatype: string
name: unpack_data
arguments: label: D113
datatype: string
name: unpack_data
arguments: label: D21
datatype: string
name: unpack_data
arguments: label: D116
datatype: string
name: unpack_data
arguments: label: D25
datatype: string
name: unpack_data
arguments: label: D9
datatype: string

tool: D196: ****************SDT Info****************


tool: D204: SDT table id = 0x%x


tool: D239: SDT section_syntax_indicator = 0x%x


tool: D174: SDT section_length = 0x%x


tool: D122: SDT transport_stream_id = 0x%x


tool: D210: SDT version_number = 0x%x


tool: D92: SDT current_next_indicator = 0x%x


tool: D238: SDT section_number = 0x%x


tool: D96: SDT last_section_number = 0x%x


tool: D44: SDT original_network_id = 0x%x


tool: D57: SDT crc = 0x%08x


tool: D176: SDT error: section is NULL !


tool: D234: SDT table id is error : %x


tool: D14: ****************************************


tool: D161: ****************SDT Service Info****************


tool: D78: SDT service_id = 0x%x


tool: D10: SDT EIT_schedule_flag = 0x%x


tool: D113: SDT EIT_present_following_flag = 0x%x


tool: D21: SDT running_status = 0x%x


tool: D116: SDT free_CA_mode = 0x%x


tool: D25: SDT descriptors_loop_length = 0x%x


tool: D9: ****************SDT Service Descriptor Info****************


assistant: ```c
int Parser_SectionSDT(unsigned char *section) {
  unsigned short descriptor_offset = 0;
  unsigned short service_offset = 0;
  unsigned short section_len = 0;
  unsigned short descriptor_loop_len = 0;
  unsigned short service_loop_len = 0;
  unsigned int i = 0, j = 0;
  unsigned int data_offset = 0;
  int ret = -1;
  if (NULL == section) {
    Parser_TsPacketLog((0x00000040), "SDT error: section is NULL !\n");
    return -1;
  }
  if ((0x42 != section[0]) && (0x46 != section[0])) {
    Parser_TsPacketLog((0x00000040), "SDT table id is error : %x\n", section[0]);
    return -1;
  }
  section_len = ((section[1] & 0x0F) << 8) | (section[2] & 0xFF);
  Parser_TsPacketLog((0x00000040), "****************SDT Info****************\n");
  Parser_TsPacketLog((0x00000040), "SDT table id = 0x%x\n", section[0]);
  Parser_TsPacketLog((0x00000040), "SDT section_syntax_indicator = 0x%x\n", (section[1] & 0x80) >> 7);
  Parser_TsPacketLog((0x00000040), "SDT section_length = 0x%x\n", section_len);
  Parser_TsPacketLog((0x00000040), "SDT transport_stream_id = 0x%x\n", ((section[3] & 0xFF) << 8) | (section[4] & 0xFF));
  Parser_TsPacketLog((0x00000040), "SDT version_number = 0x%x\n", (section[5] & 0x3E) >> 1);
  Parser_TsPacketLog((0x00000040), "SDT current_next_indicator = 0x%x\n", section[5] & 0x01);
  Parser_TsPacketLog((0x00000040), "SDT section_number = 0x%x\n", section[6]);
  Parser_TsPacketLog((0x00000040), "SDT last_section_number = 0x%x\n", section[7]);
  Parser_TsPacketLog((0x00000040), "SDT original_network_id = 0x%x\n", ((section[8] & 0xFF) << 8) | (section[9] & 0xFF));
  Parser_TsPacketLog((0x00000040), "SDT crc = 0x%08x\n", (section[section_len - 1] << 24) | ((section[section_len] & 0xFF) << 16) | ((section[section_len + 1] & 0xFF) << 8) | (section[section_len + 2] & 0xFF));
  data_offset += 11;
  service_loop_len = section_len - 12;
  for (i = 0; i < service_loop_len; i += service_offset) {
    Parser_TsPacketLog((0x00000040), "****************SDT Service Info****************\n");
    descriptor_loop_len = ((section[data_offset + 3] & 0x0F) << 8) | (section[data_offset + 4] & 0xFF);
    Parser_TsPacketLog((0x00000040), "SDT service_id = 0x%x\n", ((section[data_offset] & 0xFF) << 8) | (section[data_offset + 1] & 0xFF));
    Parser_TsPacketLog((0x00000040), "SDT EIT_schedule_flag = 0x%x\n", (section[data_offset + 2] & 0x02) >> 1);
    Parser_TsPacketLog((0x00000040), "SDT EIT_present_following_flag = 0x%x\n", (section[data_offset + 2] & 0x01));
    Parser_TsPacketLog((0x00000040), "SDT running_status = 0x%x\n", (section[data_offset + 3] & 0xE0) >> 5);
    Parser_TsPacketLog((0x00000040), "SDT free_CA_mode = 0x%x\n", (section[data_offset + 3] & 0x10) >> 4);
    Parser_TsPacketLog((0x00000040), "SDT descriptors_loop_length = 0x%x\n", descriptor_loop_len);
    data_offset += 5;
    for (j = 0; j < descriptor_loop_len; j += descriptor_offset) {
      Parser_TsPacketLog((0x00000040), "****************SDT Service Descriptor Info****************\n");
      switch (section[data_offset]) {
      case 0x48:
        descriptor_offset = x48_Tag_DescriptorParser((0x00000040), section + data_offset);
        break;
      case 0x5D:
        descriptor_offset = x5D_Tag_DescriptorParser((0x00000040), section + data_offset);
        break;
      default:
        descriptor_offset = x00_Tag_DescriptorParser((0x00000040), section + data_offset);
        break;
      }
      descriptor_offset += 2;
      data_offset += descriptor_offset;
      Parser_TsPacketLog((0x00000040), "****************************************\n");
    }
    service_offset = descriptor_loop_len + 5;
    Parser_TsPacketLog((0x00000040), "****************************************\n");
  }
  Parser_TsPacketLog((0x00000040), "****************************************\n");
  ret = 0;
  return ret;
}
```