// File: /workspace/github_c_makefile_star2_O0/hfiguiere[P]exifprobe/misc.c
// Function: print_imageformat
void
print_imageformat(struct image_summary *entry)
{
    int chpr = 0;

    if(entry)
    {
        switch(entry->imageformat & ~IMGFMT_MISMARKED)
        {
        case IMGFMT_TIFF:
            if(entry->fileformat == FILEFMT_ORF1)
            {
                chpr += printf(" ORF1 16bps");
                /* ###%%% this is the wrong place to do this          */
                entry->imagesubformat = IMGSUBFMT_CFA;
            }
            else if(entry->fileformat == FILEFMT_ORF2)
            {
                chpr += printf(" ORF2 12bps");
                entry->imagesubformat = IMGSUBFMT_CFA;
            }
            else if(entry->fileformat == FILEFMT_RW2)
            {
                chpr += printf(" RW2");
                entry->imagesubformat = IMGSUBFMT_CFA;
            }
            else
                chpr += printf(" TIFF");
            break;
        case IMGFMT_JPEG:
            if(entry->imagesubformat == IMGSUBFMT_JPEGTABLES)
                chpr += printf("JPEGTables");
            else
                chpr += printf(" JPEG");
            if(entry->imageformat & IMGFMT_MISMARKED)
                chpr += printf("*");
            break;
        case IMGFMT_JPEG2000:
            chpr += printf(" JPEG2000");
            break;
        case IMGFMT_CRW:
            chpr += printf(" CRW");
            break;
        case IMGFMT_MRW:
            chpr += printf(" MRW");
            chpr += printf(" %d/%d",entry->bps[0],entry->sample_size);
            break;
        case IMGFMT_RAF:
            chpr += printf(" RAF");
            break;
        case IMGFMT_X3F:
            chpr += printf(" X3F");
            break;
        default:
            chpr += printf(" UNKNOWN format");
            break;
        }
    }
    setcharsprinted(chpr);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movl $0x0, -0xc(%rbp)
cmpq $0x0, -0x8(%rbp)
je 0x1f202
movq -0x8(%rbp), %rax
movq 0x80(%rax), %rax
andq $-0x10000001, %rax      # imm = 0xEFFFFFFF
movq %rax, -0x18(%rbp)
subq $0x1a, %rax
je 0x1f16c
jmp 0x1efcf
movq -0x18(%rbp), %rax
subq $0x2a, %rax
je 0x1f038
jmp 0x1efdb
movq -0x18(%rbp), %rax
subq $0x4655, %rax           # imm = 0x4655
je 0x1f1c0
jmp 0x1efed
movq -0x18(%rbp), %rax
subq $0xffd8, %rax           # imm = 0xFFD8
je 0x1f0e8
jmp 0x1efff
movq -0x18(%rbp), %rax
subq $0x4d524d, %rax         # imm = 0x4D524D
je 0x1f182
jmp 0x1f011
movq -0x18(%rbp), %rax
subq $0xd0a870a, %rax        # imm = 0xD0A870A
je 0x1f153
jmp 0x1f023
movq -0x18(%rbp), %rax
subq $0x62564f46, %rax       # imm = 0x62564F46
je 0x1f1d6
jmp 0x1f1ec
movq -0x8(%rbp), %rax
cmpl $0x4f52, 0x14(%rax)     # imm = 0x4F52
jne 0x1f06a
leaq 0x48fa9(%rip), %rdi     # 0x67ff5
movb $0x0, %al
callq 0x3110
addl -0xc(%rbp), %eax
movl %eax, -0xc(%rbp)
movq -0x8(%rbp), %rax
movq $0x18023, 0x88(%rax) # imm = 0x18023
jmp 0x1f0e3
movq -0x8(%rbp), %rax
cmpl $0x5352, 0x14(%rax)     # imm = 0x5352
jne 0x1f09c
leaq 0x48f83(%rip), %rdi     # 0x68001
movb $0x0, %al
callq 0x3110
addl -0xc(%rbp), %eax
movl %eax, -0xc(%rbp)
movq -0x8(%rbp), %rax
movq $0x18023, 0x88(%rax) # imm = 0x18023
jmp 0x1f0e1
movq -0x8(%rbp), %rax
cmpl $0x55, 0x14(%rax)
jne 0x1f0cb
leaq 0x48f60(%rip), %rdi     # 0x6800d
movb $0x0, %al
callq 0x3110
addl -0xc(%rbp), %eax
movl %eax, -0xc(%rbp)
movq -0x8(%rbp), %rax
movq $0x18023, 0x88(%rax) # imm = 0x18023
jmp 0x1f0df
leaq 0x488de(%rip), %rdi     # 0x679b0
movb $0x0, %al
callq 0x3110
addl -0xc(%rbp), %eax
movl %eax, -0xc(%rbp)
jmp 0x1f0e1
jmp 0x1f0e3
jmp 0x1f200
movq -0x8(%rbp), %rax
cmpq $0x15b, 0x88(%rax) # imm = 0x15B
jne 0x1f10f
leaq 0x461cf(%rip), %rdi     # 0x652cf
movb $0x0, %al
callq 0x3110
addl -0xc(%rbp), %eax
movl %eax, -0xc(%rbp)
jmp 0x1f123
leaq 0x48f84(%rip), %rdi     # 0x6809a
movb $0x0, %al
callq 0x3110
addl -0xc(%rbp), %eax
movl %eax, -0xc(%rbp)
movq -0x8(%rbp), %rax
movq 0x80(%rax), %rax
andq $0x10000000, %rax       # imm = 0x10000000
cmpq $0x0, %rax
je 0x1f14e
leaq 0x457e3(%rip), %rdi     # 0x64924
movb $0x0, %al
callq 0x3110
addl -0xc(%rbp), %eax
movl %eax, -0xc(%rbp)
jmp 0x1f200
leaq 0x48eb8(%rip), %rdi     # 0x68012
movb $0x0, %al
callq 0x3110
addl -0xc(%rbp), %eax
movl %eax, -0xc(%rbp)
jmp 0x1f200
leaq 0x48ea9(%rip), %rdi     # 0x6801c
movb $0x0, %al
callq 0x3110
addl -0xc(%rbp), %eax
movl %eax, -0xc(%rbp)
jmp 0x1f200
leaq 0x48e98(%rip), %rdi     # 0x68021
movb $0x0, %al
callq 0x3110
addl -0xc(%rbp), %eax
movl %eax, -0xc(%rbp)
movq -0x8(%rbp), %rax
movl 0xd0(%rax), %esi
movq -0x8(%rbp), %rax
movl 0x110(%rax), %edx
leaq 0x48e75(%rip), %rdi     # 0x68026
movb $0x0, %al
callq 0x3110
addl -0xc(%rbp), %eax
movl %eax, -0xc(%rbp)
jmp 0x1f200
leaq 0x48e66(%rip), %rdi     # 0x6802d
movb $0x0, %al
callq 0x3110
addl -0xc(%rbp), %eax
movl %eax, -0xc(%rbp)
jmp 0x1f200
leaq 0x48e55(%rip), %rdi     # 0x68032
movb $0x0, %al
callq 0x3110
addl -0xc(%rbp), %eax
movl %eax, -0xc(%rbp)
jmp 0x1f200
leaq 0x48e44(%rip), %rdi     # 0x68037
movb $0x0, %al
callq 0x3110
addl -0xc(%rbp), %eax
movl %eax, -0xc(%rbp)
jmp 0x1f202
movl -0xc(%rbp), %edi
callq 0x1ff00
addq $0x20, %rsp
popq %rbp
retq