// File: /workspace/github_c_makefile_star2_O3/hfiguiere[P]exifprobe/interpret.c
// Function: print_photometric
void
print_photometric(unsigned long metric,int fileformat)
{
    int chpr = 0;

    switch(fileformat)
    {
        case FILEFMT_ORF1:
        case FILEFMT_ORF2:
            print_startvalue();
            switch(metric)
            {
                case 1: chpr += printf("CFA 16 bit"); break;
                case 2: chpr += printf("CFA 12 bit"); break;
                default: chpr += printf("undefined"); break;
            }
            print_endvalue();
            break;
        default:
            print_startvalue();
            switch(metric)
            {
                case 0: chpr += printf("MINISWHITE"); break;
                case 1: chpr += printf("MINISBLACK"); break;
                case 2: chpr += printf("RGB"); break;
                case 3: chpr += printf("Palette"); break;
                case 4: chpr += printf("Transparency Mask"); break;
                case 5: chpr += printf("Separated"); break;
                case 6: chpr += printf("YCbCr"); break;
                case 8: chpr += printf("CIELAB"); break;
                case 10: chpr += printf("ITULAB"); break;
                case 32803: chpr += printf("CFA"); break;    /* TIFFEP, DNG */
                case 32844: chpr += printf("CIE Log2(L)"); break;
                case 32845: chpr += printf("CIE Log2(L) (u',v')"); break;
                case 34892: chpr += printf("LinearRaw"); break;
                default: chpr += printf("undefined"); break;
            }
            print_endvalue();
            break;
    }
    setcharsprinted(chpr);
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
cmpl $0x5352, %esi           # imm = 0x5352
je 0x18811
cmpl $0x4f52, %esi           # imm = 0x4F52
jne 0x18855
xorl %eax, %eax
callq 0x96fd
cmpq $0x2, %rbx
leaq 0x2d9e8(%rip), %rax     # 0x4620b
leaq 0x3063f(%rip), %rcx     # 0x48e69
cmoveq %rax, %rcx
cmpq $0x1, %rbx
leaq 0x2d9c7(%rip), %rdi     # 0x46200
cmovneq %rcx, %rdi
xorl %eax, %eax
callq 0x3120
movl %eax, %ebx
xorl %eax, %eax
callq 0x971e
movl %ebx, %edi
popq %rbx
jmp 0x17a82
xorl %eax, %eax
callq 0x96fd
cmpq $0x8022, %rbx           # imm = 0x8022
jg 0x18888
cmpq $0xa, %rbx
ja 0x18952
leaq 0x2d7b6(%rip), %rax     # 0x4602c
movslq (%rax,%rbx,4), %rcx
addq %rax, %rcx
jmpq *%rcx
leaq 0x2d990(%rip), %rdi     # 0x46216
jmp 0x1883d
cmpq $0x804c, %rbx           # imm = 0x804C
jg 0x188b4
cmpq $0x8023, %rbx           # imm = 0x8023
je 0x1893a
cmpq $0x804c, %rbx           # imm = 0x804C
jne 0x18952
leaq 0x2d9b2(%rip), %rdi     # 0x46264
jmp 0x1883d
cmpq $0x804d, %rbx           # imm = 0x804D
je 0x18946
cmpq $0x884c, %rbx           # imm = 0x884C
jne 0x18952
leaq 0x2d5b4(%rip), %rdi     # 0x45e89
jmp 0x1883d
leaq 0x2d953(%rip), %rdi     # 0x46234
jmp 0x1883d
leaq 0x32811(%rip), %rdi     # 0x4b0fe
jmp 0x1883d
leaq 0x2d95d(%rip), %rdi     # 0x46256
jmp 0x1883d
leaq 0x2d941(%rip), %rdi     # 0x46246
jmp 0x1883d
leaq 0x2d91b(%rip), %rdi     # 0x4622c
jmp 0x1883d
leaq 0x2d933(%rip), %rdi     # 0x46250
jmp 0x1883d
leaq 0x2d934(%rip), %rdi     # 0x4625d
jmp 0x1883d
leaq 0x2d8ec(%rip), %rdi     # 0x46221
jmp 0x1883d
leaq 0x2d536(%rip), %rdi     # 0x45e77
jmp 0x1883d
leaq 0x2d923(%rip), %rdi     # 0x46270
jmp 0x1883d
leaq 0x30510(%rip), %rdi     # 0x48e69
jmp 0x1883d