// File: /workspace/github_c_makefile_star2_O3/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 $0x807e, %rdi           # imm = 0x807E
jle 0x17aea
cmpq $0x80b2, %rdi           # imm = 0x80B2
jg 0x17b15
leaq -0x807f(%rdi), %rax
cmpq $0xe, %rax
ja 0x17bd7
leaq 0x2da9b(%rip), %rcx     # 0x45574
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq 0x2dfe7(%rip), %rax     # 0x45ad0
retq
cmpq $0x8002, %rdi           # imm = 0x8002
jg 0x17b4d
cmpq $0x8, %rdi
ja 0x17c10
leaq 0x2da4c(%rip), %rax     # 0x45550
movslq (%rax,%rdi,4), %rcx
addq %rax, %rcx
jmpq *%rcx
leaq 0x2d817(%rip), %rax     # 0x4532b
retq
cmpq $0x8774, %rdi           # imm = 0x8774
jle 0x17b78
cmpq $0x8798, %rdi           # imm = 0x8798
jg 0x17bbd
cmpq $0x8775, %rdi           # imm = 0x8775
je 0x17c28
cmpq $0x8798, %rdi           # imm = 0x8798
jne 0x17c10
leaq 0x2e0b3(%rip), %rax     # 0x45bff
retq
cmpq $0x8028, %rdi           # imm = 0x8028
jg 0x17ba3
cmpq $0x8003, %rdi           # imm = 0x8003
je 0x17c18
cmpq $0x8005, %rdi           # imm = 0x8005
jne 0x17c10
leaq 0x2def3(%rip), %rax     # 0x45a6a
retq
cmpq $0x80b3, %rdi           # imm = 0x80B3
je 0x17c48
cmpq $0x8765, %rdi           # imm = 0x8765
je 0x17c40
cmpq $0x8774, %rdi           # imm = 0x8774
jne 0x17c10
leaq 0x2e00d(%rip), %rax     # 0x45baf
retq
cmpq $0x8029, %rdi           # imm = 0x8029
je 0x17c20
cmpq $0x8063, %rdi           # imm = 0x8063
jne 0x17c10
leaq 0x2e02e(%rip), %rax     # 0x45bea
retq
cmpq $0x8799, %rdi           # imm = 0x8799
je 0x17c30
cmpq $0xfde8, %rdi           # imm = 0xFDE8
jne 0x17c10
leaq 0x2e04c(%rip), %rax     # 0x45c22
retq
cmpq $0x80b2, %rdi           # imm = 0x80B2
jne 0x17c10
leaq 0x2dea1(%rip), %rax     # 0x45a88
retq
leaq 0x2df18(%rip), %rax     # 0x45b07
retq
leaq 0x2df6d(%rip), %rax     # 0x45b64
retq
leaq 0x2df21(%rip), %rax     # 0x45b20
retq
leaq 0x2df38(%rip), %rax     # 0x45b3f
retq
leaq 0x2dee0(%rip), %rax     # 0x45aef
retq
leaq 0x2e020(%rip), %rax     # 0x45c37
retq
leaq 0x2de7c(%rip), %rax     # 0x45a9b
retq
leaq 0x2de8e(%rip), %rax     # 0x45ab5
retq
leaq 0x2dfa1(%rip), %rax     # 0x45bd0
retq
leaq 0x2dfdc(%rip), %rax     # 0x45c13
retq
leaq 0x2de0e(%rip), %rax     # 0x45a4d
retq
leaq 0x2df54(%rip), %rax     # 0x45b9b
retq
leaq 0x2df3a(%rip), %rax     # 0x45b89
retq
leaq 0x2ddc7(%rip), %rax     # 0x45a1e
retq
leaq 0x2dddf(%rip), %rax     # 0x45a3e
retq
leaq 0x2ddfe(%rip), %rax     # 0x45a65
retq
leaq 0x2dda2(%rip), %rax     # 0x45a11
retq
leaq 0x2dede(%rip), %rax     # 0x45b55
retq
leaq 0x2dddd(%rip), %rax     # 0x45a5c
retq
leaq 0x2ddfb(%rip), %rax     # 0x45a82
retq