// File: /workspace/github_c_makefile_star2_O2/hfiguiere[P]exifprobe/misc.c
// Function: tiff_compression_string
char *
tiff_compression_string(unsigned long compvalue)
{
    char *compression;

    compression = NULLSTRING;
    switch(compvalue)
    {
        /* will be 0 only if compression tag does not appear                     */
        case 0: compression = "unknown format"; break;
        case 1: compression = "uncompressed"; break;    /* TIFF6/TIFF_EP         */
        case 2: compression = "Modified Huffman RLE compressed"; break; /* TIFF6  */
        case 3: compression = "T4 fax encoded"; break;  /* TIFF6                 */
        case 4: compression = "T6 fax encoded"; break;  /* TIFF6                 */
        case 5: compression = "LZW compressed"; break;  /* TIFF6                 */
        case 6: compression = "Exif/old JPEG"; break;   /* TIFF6 pre TechNote 2  */
                                                        /* required by Exif!     */
        case 7: compression = "JPEG"; break;   /* TIFF6 current/TIFF_EP/DNG      */
        case 32773: compression = "Packbits RLE compressed"; break; /* TIFF6     */

        /* These are all from "libtiff -- tiff.h"                     */
        case 8: compression="Adobe Deflate compressed"; break;
        case 32771: compression="NeXT 2-bit RLE compressed"; break;
        case 32809: compression="ThunderScan RLE compressed"; break;
        case 32895: compression="IT8 CT compressed with padding"; break;
        case 32896: compression="IT8 Linework compressed"; break;
        case 32897: compression="IT8 Monochromecompressed"; break;
        case 32898: compression="IT8 Binary line art compressed"; break;
        case 32908: compression="Pixar companded 10bit LZW compressed"; break;
        case 32909: compression="Pixar companded 11bit ZIP compressed"; break;
        case 32946: compression="Deflate compressed"; break;
        case 32947: compression="Kodak DCS encoded"; break;
        case 34661: compression="ISO JBIG compressed"; break;
        case 34676: compression="SGI Log Luminance RLE compressed"; break;
        case 34677: compression="SGI Log 24-bit compressed"; break;

        /* Noted in images                                            */
        case 32867: compression="Kodak KDC compressed"; break;

        case 34712: compression="Jpeg2000 compressed"; break;
        case 34713: compression="NEF compressed"; break;
        case 65000: compression="Kodak DCR compressed"; break;
        default: compression = "(UNKNOWN TIFF compression)"; break;
    }
    return(compression);
}

// Assembly:
cmpq $0x8, %rdi
jbe 0x16b37
leaq -0x807f(%rdi), %rax
cmpq $0xe, %rax
jbe 0x16b4f
cmpq $0x8003, %rdi           # imm = 0x8003
je 0x16bdf
cmpq $0x8005, %rdi           # imm = 0x8005
je 0x16c07
cmpq $0x8029, %rdi           # imm = 0x8029
je 0x16bf7
cmpq $0x8063, %rdi           # imm = 0x8063
je 0x16c1f
cmpq $0x80b2, %rdi           # imm = 0x80B2
je 0x16c27
cmpq $0x80b3, %rdi           # imm = 0x80B3
je 0x16c17
cmpq $0x8765, %rdi           # imm = 0x8765
je 0x16c0f
cmpq $0x8774, %rdi           # imm = 0x8774
je 0x16bd7
cmpq $0x8775, %rdi           # imm = 0x8775
je 0x16bff
cmpq $0x8798, %rdi           # imm = 0x8798
je 0x16be7
cmpq $0x8799, %rdi           # imm = 0x8799
je 0x16bef
cmpq $0xfde8, %rdi           # imm = 0xFDE8
jne 0x16b67
leaq 0x2d0a8(%rip), %rax     # 0x43bde
retq
leaq 0x2c9ce(%rip), %rax     # 0x4350c
movslq (%rax,%rdi,4), %rcx
addq %rax, %rcx
jmpq *%rcx
leaq 0x2c799(%rip), %rax     # 0x432e7
retq
leaq 0x2c9da(%rip), %rcx     # 0x43530
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq 0x2cf26(%rip), %rax     # 0x43a8c
retq
leaq 0x2d085(%rip), %rax     # 0x43bf3
retq
leaq 0x2cf85(%rip), %rax     # 0x43afb
retq
leaq 0x2cf2d(%rip), %rax     # 0x43aab
retq
leaq 0x2cf3d(%rip), %rax     # 0x43ac3
retq
leaq 0x2cf92(%rip), %rax     # 0x43b20
retq
leaq 0x2cf46(%rip), %rax     # 0x43adc
retq
leaq 0x2ce6b(%rip), %rax     # 0x43a09
retq
leaq 0x2ce34(%rip), %rax     # 0x439da
retq
leaq 0x2ce4c(%rip), %rax     # 0x439fa
retq
leaq 0x2ce6b(%rip), %rax     # 0x43a21
retq
leaq 0x2ce0f(%rip), %rax     # 0x439cd
retq
leaq 0x2cf4b(%rip), %rax     # 0x43b11
retq
leaq 0x2ce4a(%rip), %rax     # 0x43a18
retq
leaq 0x2ce68(%rip), %rax     # 0x43a3e
retq
leaq 0x2cf8d(%rip), %rax     # 0x43b6b
retq
leaq 0x2ce71(%rip), %rax     # 0x43a57
retq
leaq 0x2cfcd(%rip), %rax     # 0x43bbb
retq
leaq 0x2cfd9(%rip), %rax     # 0x43bcf
retq
leaq 0x2ce73(%rip), %rax     # 0x43a71
retq
leaq 0x2cf86(%rip), %rax     # 0x43b8c
retq
leaq 0x2ce18(%rip), %rax     # 0x43a26
retq
leaq 0x2cf41(%rip), %rax     # 0x43b57
retq
leaq 0x2cf27(%rip), %rax     # 0x43b45
retq
leaq 0x2cf80(%rip), %rax     # 0x43ba6
retq
leaq 0x2ce16(%rip), %rax     # 0x43a44
retq