user: Converte this assembly snippet into its equivalent C code:

```asm
<getSectionName>:
  endbr64
  lea    D118(%rip),%rax
  cmp    $0x100,%rdi
  je     L6
  lea    D163(%rip),%rax
  cmp    $0x101,%rdi
  je     L6
  lea    D79(%rip),%rax
  cmp    $0x102,%rdi
  je     L6
  lea    D6(%rip),%rax
  cmp    $0x200,%rdi
  je     L6
  lea    D105(%rip),%rax
  cmp    $0x201,%rdi
  je     L6
  lea    D116(%rip),%rax
  cmp    $0x202,%rdi
  je     L6
  lea    -0x300(%rdi),%rdx
  lea    D97(%rip),%rax
  cmp    $0x1,%rdx
  jbe    L6
  lea    -0x400(%rdi),%rdx
  lea    D36(%rip),%rax
  cmp    $0x1,%rdx
  jbe    L6
  lea    D117(%rip),%rax
  cmp    $0x500,%rdi
  je     L6
  lea    D23(%rip),%rax
  cmp    $0x600,%rdi
  je     L6
  lea    D123(%rip),%rax
  cmp    $0x601,%rdi
  je     L6
  lea    -0x700(%rdi),%rdx
  lea    D141(%rip),%rax
  test   $0xfffffffffffffdff,%rdx
  je     L6
  lea    D171(%rip),%rax
  cmp    $0xb05,%rdi
  je     L6
  lea    D95(%rip),%rax
  cmp    $0xb06,%rdi
  je     L6
  lea    D128(%rip),%rax
  cmp    $0xb04,%rdi
  je     L6
  lea    D151(%rip),%rax
  cmp    $0xb02,%rdi
  je     L6
  cmp    $0xa00,%rdi
  lea    D12(%rip),%rax
  lea    D170(%rip),%rdx
  cmove  %rdx,%rax
L6:
  ret
```

tool_calls: name: unpack_data
arguments: label: D118
type_infered: string
name: unpack_data
arguments: label: D163
type_infered: string
name: unpack_data
arguments: label: D79
type_infered: string
name: unpack_data
arguments: label: D6
type_infered: string
name: unpack_data
arguments: label: D105
type_infered: string
name: unpack_data
arguments: label: D116
type_infered: string
name: unpack_data
arguments: label: D97
type_infered: string
name: unpack_data
arguments: label: D36
type_infered: string
name: unpack_data
arguments: label: D117
type_infered: string
name: unpack_data
arguments: label: D23
type_infered: string
name: unpack_data
arguments: label: D123
type_infered: string
name: unpack_data
arguments: label: D141
type_infered: string
name: unpack_data
arguments: label: D171
type_infered: string
name: unpack_data
arguments: label: D95
type_infered: string
name: unpack_data
arguments: label: D128
type_infered: string
name: unpack_data
arguments: label: D151
type_infered: string
name: unpack_data
arguments: label: D12
type_infered: string
name: unpack_data
arguments: label: D170
type_infered: string

tool: D118: IPL

tool: D163: G3IPL

tool: D79: G4IPL

tool: D6: SPL

tool: D105: G3SPL

tool: D116: G4SPL

tool: D97: GSM

tool: D36: OS

tool: D117: DIAG

tool: D23: MainSplash

tool: D123: SubSplash

tool: D141: ExtROM

tool: D171: Recovery

tool: D95: UserData

tool: D128: LinuxBoot

tool: D151: LinuxSystem

tool: D12: unknown

tool: D170: MCPLD

assistant: ```c
const char *getSectionName(unsigned long section) {
  if (section == 0x100)
    return "IPL";
  if (section == 0x101)
    return "G3IPL";
  if (section == 0x102)
    return "G4IPL";
  if (section == 0x200)
    return "SPL";
  if (section == 0x201)
    return "G3SPL";
  if (section == 0x202)
    return "G4SPL";
  if (section == 0x300 || section == 0x301)
    return "GSM";
  if (section == 0x400 || section == 0x401)
    return "OS";
  if (section == 0x500)
    return "DIAG";
  if (section == 0x600)
    return "MainSplash";
  if (section == 0x601)
    return "SubSplash";
  if (section == 0x700 || section == 0x900)
    return "ExtROM";
  if (section == 0xB05)
    return "Recovery";
  if (section == 0xB06)
    return "UserData";
  if (section == 0xB04)
    return "LinuxBoot";
  if (section == 0xB02)
    return "LinuxSystem";
  if (section == 0xA00)
    return "MCPLD";
  return "unknown";
}
```