// File: /workspace/github_c_makefile_star2_O1/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 0x17598
cmpq $0x80b2, %rdi           # imm = 0x80B2
jg 0x175c3
leaq -0x807f(%rdi), %rax
cmpq $0xe, %rax
ja 0x17685
leaq 0x2dfa9(%rip), %rcx     # 0x45530
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq 0x2e4f5(%rip), %rax     # 0x45a8c
retq
cmpq $0x8002, %rdi           # imm = 0x8002
jg 0x175fb
cmpq $0x8, %rdi
ja 0x176be
leaq 0x2df5a(%rip), %rax     # 0x4550c
movslq (%rax,%rdi,4), %rcx
addq %rax, %rcx
jmpq *%rcx
leaq 0x2dd25(%rip), %rax     # 0x452e7
retq
cmpq $0x8774, %rdi           # imm = 0x8774
jle 0x17626
cmpq $0x8798, %rdi           # imm = 0x8798
jg 0x1766b
cmpq $0x8775, %rdi           # imm = 0x8775
je 0x176d6
cmpq $0x8798, %rdi           # imm = 0x8798
jne 0x176be
leaq 0x2e5c1(%rip), %rax     # 0x45bbb
retq
cmpq $0x8028, %rdi           # imm = 0x8028
jg 0x17651
cmpq $0x8003, %rdi           # imm = 0x8003
je 0x176c6
cmpq $0x8005, %rdi           # imm = 0x8005
jne 0x176be
leaq 0x2e401(%rip), %rax     # 0x45a26
retq
cmpq $0x80b3, %rdi           # imm = 0x80B3
je 0x176f6
cmpq $0x8765, %rdi           # imm = 0x8765
je 0x176ee
cmpq $0x8774, %rdi           # imm = 0x8774
jne 0x176be
leaq 0x2e51b(%rip), %rax     # 0x45b6b
retq
cmpq $0x8029, %rdi           # imm = 0x8029
je 0x176ce
cmpq $0x8063, %rdi           # imm = 0x8063
jne 0x176be
leaq 0x2e53c(%rip), %rax     # 0x45ba6
retq
cmpq $0x8799, %rdi           # imm = 0x8799
je 0x176de
cmpq $0xfde8, %rdi           # imm = 0xFDE8
jne 0x176be
leaq 0x2e55a(%rip), %rax     # 0x45bde
retq
cmpq $0x80b2, %rdi           # imm = 0x80B2
jne 0x176be
leaq 0x2e3af(%rip), %rax     # 0x45a44
retq
leaq 0x2e426(%rip), %rax     # 0x45ac3
retq
leaq 0x2e47b(%rip), %rax     # 0x45b20
retq
leaq 0x2e42f(%rip), %rax     # 0x45adc
retq
leaq 0x2e446(%rip), %rax     # 0x45afb
retq
leaq 0x2e3ee(%rip), %rax     # 0x45aab
retq
leaq 0x2e52e(%rip), %rax     # 0x45bf3
retq
leaq 0x2e38a(%rip), %rax     # 0x45a57
retq
leaq 0x2e39c(%rip), %rax     # 0x45a71
retq
leaq 0x2e4af(%rip), %rax     # 0x45b8c
retq
leaq 0x2e4ea(%rip), %rax     # 0x45bcf
retq
leaq 0x2e31c(%rip), %rax     # 0x45a09
retq
leaq 0x2e462(%rip), %rax     # 0x45b57
retq
leaq 0x2e448(%rip), %rax     # 0x45b45
retq
leaq 0x2e2d5(%rip), %rax     # 0x459da
retq
leaq 0x2e2ed(%rip), %rax     # 0x459fa
retq
leaq 0x2e30c(%rip), %rax     # 0x45a21
retq
leaq 0x2e2b0(%rip), %rax     # 0x459cd
retq
leaq 0x2e3ec(%rip), %rax     # 0x45b11
retq
leaq 0x2e2eb(%rip), %rax     # 0x45a18
retq
leaq 0x2e309(%rip), %rax     # 0x45a3e
retq