// File: /workspace/github_c_makefile_star2_O1/hfiguiere[P]exifprobe/maker_minolta.c
// Function: minolta1_interpret_value
void
minolta1_interpret_value(struct ifd_entry *entry_ptr,int model)
{
    int chpr = 0;

    if(entry_ptr && (PRINT_VALUE))
    {
        switch(entry_ptr->tag)
        {
            case 0x0101:    /* ColorMode                                  */
                print_startvalue();
                switch(entry_ptr->value)
                {
                    case 0: chpr += printf("Natural"); break;
                    case 1: chpr += printf("Black/White*"); break;
                    case 2: chpr += printf("Vivid"); break;
                    case 3: chpr += printf("Solarize"); break;
                    case 4: chpr += printf("Adobe RGB"); break;
                    case 9: chpr += printf("unknown"); break;
                    case 132: chpr += printf("Adobe RGB Embedded Profile"); break;
                    default: printred("undefined"); break;
                }
                print_endvalue();
                break;
            case 0x0102:    /* CameraSettings ImageQuality, 7, 7Hi, F300  */
minolta_7Hi_botch:
                print_startvalue();
                switch(entry_ptr->value)
                {
                    /* ###%%% jpeg quality/compression? check this        */
                    case 0: chpr += printf("Raw"); break;
                    case 1: chpr += printf("Uncompressed"); break; /* superfine, raw? tiff? */
                    case 2: chpr += printf("Fine(1/2)"); break;
                    case 3: chpr += printf("Normal(1/3)"); break;   /* ###%%% */
                    case 4: chpr += printf("Economy(1/4)"); break;  /* ###%%% */
                    case 5: chpr += printf("ExtraFine(1/1)"); break;
                    default: printred("undefined"); break;
                }
                print_endvalue();
                break;
            case 0x0103:    /* CameraSettings ImageSize*, 7Hi, F300       */
                /* The 7Hi appears to get this wrong, printing the same   */
                /* value for this as for 0x0102; the F300 seems to do it  */
                /* right. The ImageSize entry in "Camera Settings"        */
                /* appears correct in both cases. For the 7Hi, it would   */
                /* be wrong to report this as image size, so just don't   */
                /* do it.                                                 */
                if(model == MINOLTA_DIMAGE7Hi)
                    goto minolta_7Hi_botch;

                print_startvalue();
                switch(entry_ptr->value)
                {
                    case 1: chpr += printf("1600x1200"); break;
                    case 2: chpr += printf("unknown"); break;   /* 1280x960? */
                    case 3: chpr += printf("640x480"); break;
                    case 4: chpr += printf("unknown"); break;
                    case 5: chpr += printf("2560x1920"); break;
                    case 6: chpr += printf("2272x1704"); break; 
                    case 7: chpr += printf("2048x1536"); break;
                    case 13: chpr += printf("3264x2448"); break;
                    default: printred("undefined"); break;
                }
                print_endvalue();
                break;
            case 0x0201:    /* Quality, X, F100                           */
                print_startvalue();
                    /* ###%%% jpeg quality/compression? check this, same as 0x0102?       */
                switch(entry_ptr->value)
                {
                    case 0: chpr += printf("Raw*"); break;
                    case 1: chpr += printf("Economy(1/8)"); break;
                    case 2: chpr += printf("Normal(1/4)"); break; 
                    case 3: chpr += printf("Fine(1/2)"); break;
                    case 4: chpr += printf("Uncompressed"); break;
                    default: printred("undefined"); break;
                }
                print_endvalue();
                break;
            case 0x0202:    /* Macro */
                print_startvalue();
                switch(entry_ptr->value)
                {
                    case 0: chpr += printf("Normal"); break;
                    case 1: chpr += printf("Macro"); break;
                    case 2: chpr += printf("View"); break;
                    default: printred("undefined"); break;
                }
                print_endvalue();
                break;
            default:
                break;
        }
    }
    setcharsprinted(chpr);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
xorl %ebx, %ebx
testq %rdi, %rdi
je 0x32161
leaq 0x26267(%rip), %rax     # 0x58180
testb $0x30, (%rax)
je 0x32161
movq %rdi, %r14
movzwl (%rdi), %eax
cmpl $0x102, %eax            # imm = 0x102
jle 0x31f80
cmpl $0x103, %eax            # imm = 0x103
je 0x31f93
cmpl $0x201, %eax            # imm = 0x201
je 0x31fcf
cmpl $0x202, %eax            # imm = 0x202
jne 0x32161
xorl %eax, %eax
callq 0x95d2
movq 0x10(%r14), %rax
cmpq $0x2, %rax
je 0x32096
cmpq $0x1, %rax
je 0x3208a
testq %rax, %rax
jne 0x320d7
leaq 0x1943e(%rip), %rdi     # 0x4b3b9
jmp 0x32151
cmpl $0x101, %eax            # imm = 0x101
je 0x31ffe
cmpl $0x102, %eax            # imm = 0x102
je 0x31f9c
jmp 0x32161
cmpl $0x3, %esi
jne 0x3202f
xorl %ebx, %ebx
xorl %eax, %eax
callq 0x95d2
movq 0x10(%r14), %rax
cmpq $0x5, %rax
ja 0x32061
leaq 0x1985e(%rip), %rcx     # 0x4b818
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq 0x10846(%rip), %rdi     # 0x42810
jmp 0x32151
xorl %ebx, %ebx
xorl %eax, %eax
callq 0x95d2
movq 0x10(%r14), %rax
cmpq $0x4, %rax
ja 0x32061
leaq 0x197e7(%rip), %rcx     # 0x4b7d0
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq 0x19de4(%rip), %rdi     # 0x4bddd
jmp 0x32151
xorl %eax, %eax
callq 0x95d2
movq 0x10(%r14), %rax
cmpq $0x9, %rax
ja 0x320c6
leaq 0x19816(%rip), %rcx     # 0x4b830
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq 0x19d17(%rip), %rdi     # 0x4bd41
jmp 0x32151
xorl %ebx, %ebx
xorl %eax, %eax
callq 0x95d2
movq 0x10(%r14), %rax
decq %rax
cmpq $0xc, %rax
ja 0x32061
leaq 0x19798(%rip), %rcx     # 0x4b7e4
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq 0x13908(%rip), %rdi     # 0x45964
jmp 0x32151
leaq 0x16dc1(%rip), %rdi     # 0x48e29
callq 0x5c33
jmp 0x3215a
leaq 0x19d14(%rip), %rdi     # 0x4bd8d
jmp 0x32151
leaq 0x19cfb(%rip), %rdi     # 0x4bd80
jmp 0x32151
leaq 0x14646(%rip), %rdi     # 0x466d7
jmp 0x32151
leaq 0x18af5(%rip), %rdi     # 0x4ab92
jmp 0x32151
leaq 0x19cfa(%rip), %rdi     # 0x4bda3
jmp 0x32151
leaq 0x19ce2(%rip), %rdi     # 0x4bd97
jmp 0x32151
leaq 0x19cef(%rip), %rdi     # 0x4bdb0
jmp 0x32151
cmpq $0x84, %rax
jne 0x320d7
leaq 0x19c90(%rip), %rdi     # 0x4bd65
jmp 0x32151
leaq 0x16d4b(%rip), %rdi     # 0x48e29
callq 0x5c33
xorl %ebx, %ebx
jmp 0x3215a
leaq 0x19d01(%rip), %rdi     # 0x4bdef
jmp 0x32151
leaq 0x19ceb(%rip), %rdi     # 0x4bde2
jmp 0x32151
leaq 0x19c56(%rip), %rdi     # 0x4bd56
jmp 0x32151
leaq 0x19c53(%rip), %rdi     # 0x4bd5c
jmp 0x32151
leaq 0x19c37(%rip), %rdi     # 0x4bd49
jmp 0x32151
leaq 0x18f9d(%rip), %rdi     # 0x4b0b8
jmp 0x32151
leaq 0x19ca5(%rip), %rdi     # 0x4bdc9
jmp 0x32151
leaq 0x19640(%rip), %rdi     # 0x4b76d
jmp 0x32151
leaq 0x19c9d(%rip), %rdi     # 0x4bdd3
jmp 0x32151
leaq 0x182b7(%rip), %rdi     # 0x4a3f6
jmp 0x32151
leaq 0x1961d(%rip), %rdi     # 0x4b765
jmp 0x32151
leaq 0x19c6e(%rip), %rdi     # 0x4bdbf
xorl %eax, %eax
callq 0x3120
movl %eax, %ebx
xorl %eax, %eax
callq 0x95f3
movl %ebx, %edi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x17530