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

```asm
<Parser_SectionBAT>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x18,%rsp
  test   %rdi,%rdi
  je     L143
  movzbl (%rdi),%eax
  mov    %rdi,%rbx
  cmp    $0x4a,%al
  jne    L186
  movzbl 0x1(%rdi),%eax
  movzbl 0x2(%rdi),%edx
  lea    D41(%rip),%rsi
  mov    $0x20,%edi
  shl    $0x8,%eax
  and    $0xf00,%ax
  or     %edx,%eax
  mov    %eax,%ebp
  xor    %eax,%eax
  call   <Parser_TsPacketLog@plt>
  movzbl (%rbx),%edx
  mov    $0x20,%edi
  xor    %eax,%eax
  lea    D75(%rip),%rsi
  call   <Parser_TsPacketLog@plt>
  movzbl 0x1(%rbx),%edx
  mov    $0x20,%edi
  xor    %eax,%eax
  lea    D79(%rip),%rsi
  shr    $0x7,%dl
  movzbl %dl,%edx
  call   <Parser_TsPacketLog@plt>
  movswl %bp,%edx
  mov    $0x20,%edi
  xor    %eax,%eax
  lea    D66(%rip),%rsi
  call   <Parser_TsPacketLog@plt>
  movzwl 0x3(%rbx),%edx
  mov    $0x20,%edi
  xor    %eax,%eax
  lea    D102(%rip),%rsi
  rol    $0x8,%dx
  movzwl %dx,%edx
  call   <Parser_TsPacketLog@plt>
  movzbl 0x5(%rbx),%edx
  mov    $0x20,%edi
  xor    %eax,%eax
  lea    D19(%rip),%rsi
  sar    %edx
  and    $0x1f,%edx
  call   <Parser_TsPacketLog@plt>
  movzbl 0x5(%rbx),%edx
  mov    $0x20,%edi
  xor    %eax,%eax
  lea    D172(%rip),%rsi
  and    $0x1,%edx
  call   <Parser_TsPacketLog@plt>
  movzbl 0x6(%rbx),%edx
  mov    $0x20,%edi
  xor    %eax,%eax
  lea    D32(%rip),%rsi
  call   <Parser_TsPacketLog@plt>
  movzbl 0x7(%rbx),%edx
  mov    $0x20,%edi
  xor    %eax,%eax
  lea    D36(%rip),%rsi
  call   <Parser_TsPacketLog@plt>
  movzbl 0x8(%rbx),%edx
  movzbl 0x9(%rbx),%eax
  lea    D127(%rip),%rsi
  mov    $0x20,%edi
  shl    $0x8,%edx
  and    $0xf00,%edx
  or     %eax,%edx
  xor    %eax,%eax
  call   <Parser_TsPacketLog@plt>
  movswq %bp,%rax
  mov    $0x20,%edi
  lea    D98(%rip),%rsi
  movzbl (%rbx,%rax,1),%edx
  movzbl 0x2(%rbx,%rax,1),%ecx
  shl    $0x10,%edx
  or     %ecx,%edx
  movzbl -0x1(%rbx,%rax,1),%ecx
  movzbl 0x1(%rbx,%rax,1),%eax
  shl    $0x18,%ecx
  shl    $0x8,%eax
  or     %ecx,%edx
  or     %eax,%edx
  xor    %eax,%eax
  call   <Parser_TsPacketLog@plt>
  movzbl 0x8(%rbx),%eax
  movzbl 0x9(%rbx),%edx
  shl    $0x8,%eax
  and    $0xf00,%ax
  or     %edx,%eax
  movswl %ax,%ebp
  test   %ax,%ax
  je     L173
  mov    $0xa,%r14d
  xor    %r13d,%r13d
  jmp    L49
  nopl   0x0(%rax)
L15:
  cmp    $0x47,%al
  je     L164
  call   <x00_Tag_DescriptorParser@plt>
L78:
  add    $0x2,%eax
  add    %eax,%r13d
  add    %eax,%r14d
  cmp    %ebp,%r13d
  jae    L84
L49:
  mov    %r14d,%esi
  mov    $0x20,%edi
  add    %rbx,%rsi
  movzbl (%rsi),%eax
  cmp    $0x4a,%al
  je     L97
  cmp    $0x5f,%al
  jne    L15
  call   <x5F_Tag_DescriptorParser@plt>
  add    $0x2,%eax
  add    %eax,%r13d
  add    %eax,%r14d
  cmp    %ebp,%r13d
  jb     L49
L84:
  mov    %r14d,%edx
  lea    0x1(%r14),%eax
  add    $0x2,%r14d
L169:
  movzbl (%rbx,%rdx,1),%ebp
  movzbl (%rbx,%rax,1),%eax
  mov    $0x20,%edi
  xor    %r13d,%r13d
  lea    D175(%rip),%rsi
  shl    $0x8,%ebp
  and    $0xf00,%bp
  or     %eax,%ebp
  movswl %bp,%eax
  mov    %eax,0xc(%rsp)
  mov    %eax,%edx
  xor    %eax,%eax
  call   <Parser_TsPacketLog@plt>
  test   %bp,%bp
  je     L105
  nopl   (%rax)
L195:
  mov    %r14d,%eax
  lea    D69(%rip),%rsi
  mov    $0x20,%edi
  movzbl (%rbx,%rax,1),%edx
  lea    0x1(%r14),%eax
  movzbl (%rbx,%rax,1),%eax
  shl    $0x8,%edx
  or     %eax,%edx
  xor    %eax,%eax
  call   <Parser_TsPacketLog@plt>
  lea    0x2(%r14),%eax
  mov    $0x20,%edi
  lea    D89(%rip),%rsi
  movzbl (%rbx,%rax,1),%edx
  lea    0x3(%r14),%eax
  movzbl (%rbx,%rax,1),%eax
  shl    $0x8,%edx
  or     %eax,%edx
  xor    %eax,%eax
  call   <Parser_TsPacketLog@plt>
  lea    0x4(%r14),%eax
  mov    $0x20,%edi
  lea    D1(%rip),%rsi
  movzbl (%rbx,%rax,1),%ebp
  lea    0x5(%r14),%eax
  add    $0x6,%r14d
  movzbl (%rbx,%rax,1),%eax
  shl    $0x8,%ebp
  and    $0xf00,%bp
  or     %eax,%ebp
  xor    %eax,%eax
  movswl %bp,%r12d
  mov    %r12d,%edx
  call   <Parser_TsPacketLog@plt>
  test   %bp,%bp
  je     L66
  xor    %r15d,%r15d
  jmp    L91
  nopl   0x0(%rax)
L5:
  call   <x00_Tag_DescriptorParser@plt>
  add    $0x2,%eax
  add    %eax,%r15d
  add    %eax,%r14d
  cmp    %r12d,%r15d
  jae    L66
L91:
  mov    %r14d,%esi
  mov    $0x20,%edi
  add    %rbx,%rsi
  cmpb   $0x41,(%rsi)
  jne    L5
  call   <x41_Tag_DescriptorParser@plt>
  add    $0x2,%eax
  add    %eax,%r15d
  add    %eax,%r14d
  cmp    %r12d,%r15d
  jb     L91
L66:
  add    $0x6,%ebp
  movzwl %bp,%ebp
  add    %ebp,%r13d
  cmp    0xc(%rsp),%r13d
  jb     L195
L105:
  lea    D133(%rip),%rsi
  mov    $0x20,%edi
  xor    %eax,%eax
  call   <Parser_TsPacketLog@plt>
  xor    %eax,%eax
L148:
  add    $0x18,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  xchg   %ax,%ax
L97:
  call   <x4A_Tag_DescriptorParser@plt>
  jmp    L78
  nopw   0x0(%rax,%rax,1)
L164:
  call   <x47_Tag_DescriptorParser@plt>
  jmp    L78
L173:
  mov    $0xc,%r14d
  mov    $0xb,%eax
  mov    $0xa,%edx
  jmp    L169
L186:
  movzbl %al,%edx
  lea    D71(%rip),%rsi
  mov    $0x20,%edi
  xor    %eax,%eax
  call   <Parser_TsPacketLog@plt>
  mov    $0xffffffff,%eax
  jmp    L148
L143:
  lea    D164(%rip),%rsi
  mov    $0x20,%edi
  xor    %eax,%eax
  call   <Parser_TsPacketLog@plt>
  mov    $0xffffffff,%eax
  jmp    L148
```

tool_calls: name: unpack_data
arguments: data_tag: D41
datatype: string
name: unpack_data
arguments: data_tag: D75
datatype: string
name: unpack_data
arguments: data_tag: D79
datatype: string
name: unpack_data
arguments: data_tag: D66
datatype: string
name: unpack_data
arguments: data_tag: D102
datatype: string
name: unpack_data
arguments: data_tag: D19
datatype: string
name: unpack_data
arguments: data_tag: D172
datatype: string
name: unpack_data
arguments: data_tag: D32
datatype: string
name: unpack_data
arguments: data_tag: D36
datatype: string
name: unpack_data
arguments: data_tag: D127
datatype: string
name: unpack_data
arguments: data_tag: D98
datatype: string
name: unpack_data
arguments: data_tag: D175
datatype: string
name: unpack_data
arguments: data_tag: D69
datatype: string
name: unpack_data
arguments: data_tag: D89
datatype: string
name: unpack_data
arguments: data_tag: D1
datatype: string
name: unpack_data
arguments: data_tag: D133
datatype: string
name: unpack_data
arguments: data_tag: D71
datatype: string
name: unpack_data
arguments: data_tag: D164
datatype: string

tool: D41: ****************BAT Info****************


tool: D75: BAT table id = 0x%x


tool: D79: BAT section_syntax_indicator = 0x%x


tool: D66: BAT section_length = 0x%x


tool: D102: BAT bouquet_id = 0x%x


tool: D19: BAT version_number = 0x%x


tool: D172: BAT current_next_indicator = 0x%x


tool: D32: BAT section_number = 0x%x


tool: D36: BAT last_section_number = 0x%x


tool: D127: BAT bouquet_descriptors_length = 0x%x


tool: D98: BAT crc = 0x%08x


tool: D175: BAT transport_stream_loop_length = 0x%x


tool: D69: BAT transport_stream_id = 0x%x


tool: D89: BAT original_network_id = 0x%x


tool: D1: BAT transport_descriptors_length = 0x%x


tool: D133: ****************************************


tool: D71: BAT table id is error : %x


tool: D164: BAT error: section is NULL !


assistant: ```c
int Parser_SectionBAT(unsigned char *section) {
  unsigned short section_len = 0;
  unsigned short descriptor_loop_len = 0;
  unsigned short transport_stream_loop_len = 0;
  unsigned short transport_stream_offset = 0;
  unsigned int i = 0, j = 0;
  unsigned int data_offset = 0;
  int descriptor_offset = 0;
  int ret = -1;
  if (NULL == section) {
    Parser_TsPacketLog((0x00000020), "BAT error: section is NULL !\n");
    return -1;
  }
  if (0x4A != section[0]) {
    Parser_TsPacketLog((0x00000020), "BAT table id is error : %x\n", section[0]);
    return -1;
  }
  section_len = ((section[1] & 0x0F) << 8) | (section[2] & 0xFF);
  Parser_TsPacketLog((0x00000020), "****************BAT Info****************\n");
  Parser_TsPacketLog((0x00000020), "BAT table id = 0x%x\n", section[0]);
  Parser_TsPacketLog((0x00000020), "BAT section_syntax_indicator = 0x%x\n", (section[1] & 0x80) >> 7);
  Parser_TsPacketLog((0x00000020), "BAT section_length = 0x%x\n", section_len);
  Parser_TsPacketLog((0x00000020), "BAT bouquet_id = 0x%x\n", ((section[3] & 0xFF) << 8) | (section[4] & 0xFF));
  Parser_TsPacketLog((0x00000020), "BAT version_number = 0x%x\n", (section[5] & 0x3E) >> 1);
  Parser_TsPacketLog((0x00000020), "BAT current_next_indicator = 0x%x\n", section[5] & 0x01);
  Parser_TsPacketLog((0x00000020), "BAT section_number = 0x%x\n", section[6]);
  Parser_TsPacketLog((0x00000020), "BAT last_section_number = 0x%x\n", section[7]);
  Parser_TsPacketLog((0x00000020), "BAT bouquet_descriptors_length = 0x%x\n", ((section[8] & 0x0F) << 8) | (section[9] & 0xFF));
  Parser_TsPacketLog((0x00000020), "BAT 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));
  descriptor_loop_len = ((section[8] & 0x0F) << 8) | (section[9] & 0xFF);
  data_offset += 10;
  for (i = 0; i < descriptor_loop_len; i += descriptor_offset) {
    switch (section[data_offset]) {
    case 0x47:
      descriptor_offset = x47_Tag_DescriptorParser((0x00000020), section + data_offset);
      break;
    case 0x4A:
      descriptor_offset = x4A_Tag_DescriptorParser((0x00000020), section + data_offset);
      break;
    case 0x5F:
      descriptor_offset = x5F_Tag_DescriptorParser((0x00000020), section + data_offset);
      break;
    default:
      descriptor_offset = x00_Tag_DescriptorParser((0x00000020), section + data_offset);
      break;
    }
    descriptor_offset += 2;
    data_offset += descriptor_offset;
  }
  transport_stream_loop_len = ((section[data_offset] & 0x0F) << 8) | (section[data_offset + 1] & 0xFF);
  Parser_TsPacketLog((0x00000020), "BAT transport_stream_loop_length = 0x%x\n", transport_stream_loop_len);
  data_offset += 2;
  descriptor_offset = 0;
  for (i = 0; i < transport_stream_loop_len; i += transport_stream_offset) {
    Parser_TsPacketLog((0x00000020), "BAT transport_stream_id = 0x%x\n", ((section[data_offset] & 0xFF) << 8) | (section[data_offset + 1] & 0xFF));
    Parser_TsPacketLog((0x00000020), "BAT original_network_id = 0x%x\n", ((section[data_offset + 2] & 0xFF) << 8) | (section[data_offset + 3] & 0xFF));
    descriptor_loop_len = ((section[data_offset + 4] & 0x0F) << 8) | (section[data_offset + 5] & 0xFF);
    Parser_TsPacketLog((0x00000020), "BAT transport_descriptors_length = 0x%x\n", descriptor_loop_len);
    data_offset += 6;
    for (j = 0; j < descriptor_loop_len; j += descriptor_offset) {
      switch (section[data_offset]) {
      case 0x41:
        descriptor_offset = x41_Tag_DescriptorParser((0x00000020), section + data_offset);
        break;
      default:
        descriptor_offset = x00_Tag_DescriptorParser((0x00000020), section + data_offset);
        break;
      }
      descriptor_offset += 2;
      data_offset += descriptor_offset;
    }
    transport_stream_offset = descriptor_loop_len;
    transport_stream_offset += 6;
  }
  Parser_TsPacketLog((0x00000020), "****************************************\n");
  ret = 0;
  return ret;
}
```