// File: /workspace/github_c_makefile_star2_O3/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 0x1b7ba(%rip), %r12     # 0x58180
xorl %r13d, %r13d
testb $0x4, 0x2(%r12)
je 0x3c9ec
leaq 0xbd82(%rip), %rdi      # 0x4875a
movq %r14, %rsi
xorl %eax, %eax
callq 0x3120
movl %eax, %edi
callq 0x1707a
movl %eax, %r13d
cmpq $0x8, %r14
movq %r14, 0x20(%rsp)
movq %r15, 0x18(%rsp)
jb 0x3cb2d
shrq $0x3, %r14
movzwl %bx, %eax
movl %eax, 0x10(%rsp)
xorl %ebx, %ebx
movq 0x30(%rsp), %rdi
movl 0x10(%rsp), %esi
movq %r15, %rdx
callq 0x4707
movq %rax, %rbp
movl $0x4003333, %edi        # imm = 0x4003333
movq %r15, %rsi
movl 0x14(%rsp), %edx
leaq 0x46a8(%rip), %rcx      # 0x410dc
callq 0x55eb
movzwl (%r12), %eax
testl $0x3003, %eax           # imm = 0x3003
je 0x3ca5b
leaq 0x464b(%rip), %rdi      # 0x41097
movq 0x28(%rsp), %rsi
xorl %eax, %eax
callq 0x3120
addl %eax, %r13d
movq %rbp, %rdi
callq 0x4e8d
movq (%r12), %rax
cmpl $0x2, %ebx
je 0x3caaa
cmpl $0x1, %ebx
je 0x3ca8e
testl %ebx, %ebx
jne 0x3cac6
testl $0x3003, %eax           # imm = 0x3003
je 0x3caf7
leaq 0x114a0(%rip), %rdi     # 0x4df23
xorl %esi, %esi
leaq 0xe283(%rip), %rdx      # 0x4ad0f
jmp 0x3cadd
testl $0x3003, %eax           # imm = 0x3003
je 0x3caf7
leaq 0x11487(%rip), %rdi     # 0x4df23
movl $0x1, %esi
leaq 0x10fc4(%rip), %rdx     # 0x4da6c
jmp 0x3cadd
testl $0x3003, %eax           # imm = 0x3003
je 0x3caf7
leaq 0x1146b(%rip), %rdi     # 0x4df23
movl $0x2, %esi
leaq 0x109c3(%rip), %rdx     # 0x4d487
jmp 0x3cadd
testl $0x3003, %eax           # imm = 0x3003
je 0x3caf7
leaq 0x1144f(%rip), %rdi     # 0x4df23
movl %ebx, %esi
leaq 0xbee9(%rip), %rdx      # 0x489c6
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 0x3cb15
cvtss2sd %xmm0, %xmm0
leaq 0xbf78(%rip), %rdi      # 0x48a81
movb $0x1, %al
callq 0x3120
movl %eax, %edi
addl %r13d, %edi
callq 0x1707a
movl %eax, %r13d
incq %rbx
addq $0x4, %r15
cmpq %rbx, %r14
jne 0x3ca0d
movq 0x20(%rsp), %rbx
addq 0x18(%rsp), %rbx
movl %r13d, %edi
callq 0x17a82
movq %rbx, %rax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq