// File: /workspace/github_c_makefile_star2_O1/videolan[P]bitstream/examples/./bitstream/mpeg/psi/pmt.h
// Function: pmt_get_streamtype_txt
static inline const char *pmt_get_streamtype_txt(uint8_t i_stream_type) {
    /* ISO/IEC 13818-1 | Table 2-36 - Stream type assignments */
    if (i_stream_type == 0)
        return "Reserved";
    switch (i_stream_type) {
        case 0x01: return "11172-2 video (MPEG-1)";
        case 0x02: return "13818-2 video (MPEG-2)";
        case 0x03: return "11172-3 audio (MPEG-1)";
        case 0x04: return "13818-3 audio (MPEG-2)";
        case 0x05: return "13818-1 private sections";
        case 0x06: return "13818-1 PES private data";
        case 0x07: return "13522 MHEG";
        case 0x08: return "H.222.0/13818-1 Annex A - DSM CC";
        case 0x09: return "H.222.1";
        case 0x0A: return "13818-6 type A";
        case 0x0B: return "13818-6 type B";
        case 0x0C: return "13818-6 type C";
        case 0x0D: return "13818-6 type D";
        case 0x0E: return "H.222.0/13818-1 auxiliary";
        case 0x0F: return "13818-7 Audio with ADTS transport syntax";
        case 0x10: return "14496-2 Visual (MPEG-4 part 2 video)";
        case 0x11: return "14496-3 Audio with LATM transport syntax (14496-3/AMD 1)";
        case 0x12: return "14496-1 SL-packetized or FlexMux stream in PES packets";
        case 0x13: return "14496-1 SL-packetized or FlexMux stream in 14496 sections";
        case 0x14: return "ISO/IEC 13818-6 Synchronized Download Protocol";
        case 0x15: return "Metadata in PES packets";
        case 0x16: return "Metadata in metadata_sections";
        case 0x17: return "Metadata in 13818-6 Data Carousel";
        case 0x18: return "Metadata in 13818-6 Object Carousel";
        case 0x19: return "Metadata in 13818-6 Synchronized Download Protocol";
        case 0x1A: return "13818-11 MPEG-2 IPMP stream";
        case 0x1B: return "H.264/14496-10 video (MPEG-4/AVC)";
        case 0x24: return "H.265 video (MPEG-H/HEVC)";
        case 0x42: return "AVS Video";
        case 0x7F: return "IPMP stream";
        case 0x81: return "ATSC A/52";
        case 0x86: return "SCTE 35 Splice Information Table";
        case 0x87: return "ATSC A/52e";
        default  : return "Unknown";
    }
}

// Assembly:
cmpl $0x42, %edi
ja 0x118e9
movl %edi, %eax
leaq 0xafc(%rip), %rcx       # 0x123d4
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq 0x1837(%rip), %rax      # 0x1311f
retq
addl $-0x7f, %edi
cmpl $0x8, %edi
ja 0x11a0d
leaq 0xbe4(%rip), %rax       # 0x124e0
movslq (%rax,%rdi,4), %rcx
addq %rax, %rcx
jmpq *%rcx
leaq 0x829e(%rip), %rax      # 0x19baa
retq
leaq 0x8253(%rip), %rax      # 0x19b67
retq
leaq 0x81a0(%rip), %rax      # 0x19abc
retq
leaq 0x81c7(%rip), %rax      # 0x19aeb
retq
leaq 0x81d7(%rip), %rax      # 0x19b03
retq
leaq 0x8117(%rip), %rax      # 0x19a4b
retq
leaq 0x829c(%rip), %rax      # 0x19bd8
retq
leaq 0x81dd(%rip), %rax      # 0x19b21
retq
leaq 0x80a1(%rip), %rax      # 0x199ed
retq
leaq 0x829e(%rip), %rax      # 0x19bf2
retq
leaq 0x804e(%rip), %rax      # 0x199aa
retq
leaq 0x8236(%rip), %rax      # 0x19b9a
retq
leaq 0x7f6e(%rip), %rax      # 0x198da
retq
leaq 0x7f7d(%rip), %rax      # 0x198f1
retq
leaq 0x7fa5(%rip), %rax      # 0x19921
retq
leaq 0x7f3f(%rip), %rax      # 0x198c3
retq
leaq 0x7f7c(%rip), %rax      # 0x19908
retq
leaq 0x7f18(%rip), %rax      # 0x198ac
retq
leaq 0x80e6(%rip), %rax      # 0x19a82
retq
leaq 0x7fc2(%rip), %rax      # 0x19966
retq
leaq 0x8197(%rip), %rax      # 0x19b43
retq
leaq 0x805e(%rip), %rax      # 0x19a12
retq
leaq 0x7fc1(%rip), %rax      # 0x1997d
retq
leaq 0x7f76(%rip), %rax      # 0x1993a
retq
leaq 0x7f79(%rip), %rax      # 0x19945
retq
leaq 0x7fb8(%rip), %rax      # 0x1998c
retq
leaq 0x7fbf(%rip), %rax      # 0x1999b
retq
leaq 0x7f8a(%rip), %rax      # 0x1996e
retq
leaq 0x7fd8(%rip), %rax      # 0x199c4
retq
leaq 0x81c2(%rip), %rax      # 0x19bb6
retq
leaq 0x8200(%rip), %rax      # 0x19bfc
retq
leaq 0x8223(%rip), %rax      # 0x19c27
retq
leaq 0x81fa(%rip), %rax      # 0x19c06
retq
leaq 0x3d14(%rip), %rax      # 0x15728
retq