// File: /workspace/github_c_makefile_star2_O2/hfiguiere[P]exifprobe/maker_canon.c
// Function: canon_exposureinfo
unsigned long
canon_exposureinfo(FILE *inptr,unsigned short byteorder,char *tagprefix,
                            unsigned long offset,unsigned long dirlength,int indent,
                            struct image_summary *summary_entry)
{
    unsigned long count,value;
    unsigned long end_offset;
    float fvalue;
    int i;
    int chpr = 0;

    if(PRINT_SECTION)
    {
        chpr += printf(" length %lu",dirlength);
        chpr = newline(chpr);
    }

    /* NOTE that exposureinfo is not treated as a directory; there is */
    /* no 2-byte count at the beginning.                              */

    end_offset = offset + dirlength;
    count = (dirlength / sizeof(unsigned long));

    for(i = 0; i < count; ++i)
    {
        value = read_ulong(inptr,byteorder,offset);
        print_tag_address(ENTRY,offset,indent,"@");
        if((PRINT_ENTRY))
        {
            if((PRINT_TAGINFO))
                chpr += printf("%s",tagprefix);
        }
        offset += 4;
        switch(i)
        {
            case 0:
                fvalue = to_float(value);
                if((PRINT_TAGINFO))
                    chpr += printf(".%02d_%-22.22s",i,"ExposureCompensation");
                if((PRINT_VALUE))
                    chpr += printf(" = %f",fvalue);
                break;
            case 1:
                fvalue = to_float(value);
                if((PRINT_TAGINFO))
                    chpr += printf(".%02d_%-22.22s",i,"Tv");
                if((PRINT_VALUE))
                    chpr += printf(" = %f",fvalue);
                break;
            case 2:
                fvalue = to_float(value);
                if((PRINT_TAGINFO))
                    chpr += printf(".%02d_%-22.22s",i,"Av");
                if((PRINT_VALUE))
                    chpr += printf(" = %f",fvalue);
                break;
            default:
                fvalue = to_float(value);
                if((PRINT_TAGINFO))
                    chpr += printf(".%02d_%-22.22s",i,"Undefined");
                if((PRINT_VALUE))
                    chpr += printf(" = %f",fvalue);
                break;
        }
        chpr = newline(chpr);
    }
    setcharsprinted(chpr);
    return(end_offset);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movl %r9d, 0x14(%rsp)
movq %r8, %r14
movq %rcx, %r15
movq %rdx, 0x28(%rsp)
movl %esi, %ebx
movq %rdi, 0x30(%rsp)
leaq 0x1c6de(%rip), %r12     # 0x57180
xorl %r13d, %r13d
testb $0x4, 0x2(%r12)
je 0x3aac8
leaq 0xbc56(%rip), %rdi      # 0x4670a
movq %r14, %rsi
xorl %eax, %eax
callq 0x3120
movl %eax, %edi
callq 0x160f7
movl %eax, %r13d
movq %r14, 0x20(%rsp)
shrq $0x3, %r14
movzwl %bx, %eax
movl %eax, 0x10(%rsp)
xorl %ebx, %ebx
movq %r15, 0x18(%rsp)
cmpq %rbx, %r14
je 0x3abfb
movq 0x30(%rsp), %rdi
movl 0x10(%rsp), %esi
movq %r15, %rdx
callq 0x42ba
movq %rax, %rbp
movl $0x4003333, %edi        # imm = 0x4003333
movq %r15, %rsi
movl 0x14(%rsp), %edx
leaq 0x45cd(%rip), %rcx      # 0x3f0dc
callq 0x5100
movzwl (%r12), %eax
testw $0x3003, %ax            # imm = 0x3003
je 0x3ab35
leaq 0x4571(%rip), %rdi      # 0x3f097
movq 0x28(%rsp), %rsi
xorl %eax, %eax
callq 0x3120
addl %eax, %r13d
movq %rbp, %rdi
callq 0x4a1f
movq (%r12), %rax
cmpl $0x2, %ebx
je 0x3ab80
cmpl $0x1, %ebx
je 0x3ab67
testl %ebx, %ebx
jne 0x3ab99
testw $0x3003, %ax            # imm = 0x3003
je 0x3abc9
leaq 0x11377(%rip), %rdi     # 0x4bed3
xorl %esi, %esi
leaq 0xe15a(%rip), %rdx      # 0x48cbf
jmp 0x3abaf
testw $0x3003, %ax            # imm = 0x3003
je 0x3abc9
leaq 0x1135f(%rip), %rdi     # 0x4bed3
pushq $0x1
popq %rsi
leaq 0x10e9e(%rip), %rdx     # 0x4ba1c
jmp 0x3abaf
testw $0x3003, %ax            # imm = 0x3003
je 0x3abc9
leaq 0x11346(%rip), %rdi     # 0x4bed3
pushq $0x2
popq %rsi
leaq 0x108a0(%rip), %rdx     # 0x4b437
jmp 0x3abaf
testw $0x3003, %ax            # imm = 0x3003
je 0x3abc9
leaq 0x1132d(%rip), %rdi     # 0x4bed3
movl %ebx, %esi
leaq 0xbdc7(%rip), %rdx      # 0x46976
xorl %eax, %eax
movss %xmm0, 0xc(%rsp)
callq 0x3120
movss 0xc(%rsp), %xmm0
addl %eax, %r13d
movq (%r12), %rax
movl %r13d, %edi
testb $0x30, %al
je 0x3abe7
cvtss2sd %xmm0, %xmm0
leaq 0xbe56(%rip), %rdi      # 0x46a31
movb $0x1, %al
callq 0x3120
movl %eax, %edi
addl %r13d, %edi
callq 0x160f7
movl %eax, %r13d
incq %rbx
addq $0x4, %r15
jmp 0x3aadf
movq 0x20(%rsp), %rbx
addq 0x18(%rsp), %rbx
movl %r13d, %edi
callq 0x16a4f
movq %rbx, %rax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq