// File: /workspace/github_c_makefile_star2_O1/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 0x1c0ea(%rip), %r12     # 0x58180
xorl %r13d, %r13d
testb $0x4, 0x2(%r12)
je 0x3c0bc
leaq 0xc672(%rip), %rdi      # 0x4871a
movq %r14, %rsi
xorl %eax, %eax
callq 0x3120
movl %eax, %edi
callq 0x16b56
movl %eax, %r13d
cmpq $0x8, %r14
movq %r14, 0x20(%rsp)
movq %r15, 0x18(%rsp)
jb 0x3c1fc
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 0x46cc
movq %rax, %rbp
movl $0x4003333, %edi        # imm = 0x4003333
movq %r15, %rsi
movl 0x14(%rsp), %edx
leaq 0x4fd8(%rip), %rcx      # 0x410dc
callq 0x5605
movzwl (%r12), %eax
testl $0x3003, %eax           # imm = 0x3003
je 0x3c12b
leaq 0x4f7b(%rip), %rdi      # 0x41097
movq 0x28(%rsp), %rsi
xorl %eax, %eax
callq 0x3120
addl %eax, %r13d
movq %rbp, %rdi
callq 0x4e89
movq (%r12), %rax
cmpl $0x2, %ebx
je 0x3c17a
cmpl $0x1, %ebx
je 0x3c15e
testl %ebx, %ebx
jne 0x3c196
testl $0x3003, %eax           # imm = 0x3003
je 0x3c1c3
leaq 0x11d90(%rip), %rdi     # 0x4dee3
xorl %esi, %esi
leaq 0xeb73(%rip), %rdx      # 0x4accf
jmp 0x3c1ad
testl $0x3003, %eax           # imm = 0x3003
je 0x3c1c3
leaq 0x11d77(%rip), %rdi     # 0x4dee3
movl $0x1, %esi
leaq 0x118b4(%rip), %rdx     # 0x4da2c
jmp 0x3c1ad
testl $0x3003, %eax           # imm = 0x3003
je 0x3c1c3
leaq 0x11d5b(%rip), %rdi     # 0x4dee3
movl $0x2, %esi
leaq 0x112b3(%rip), %rdx     # 0x4d447
jmp 0x3c1ad
testl $0x3003, %eax           # imm = 0x3003
je 0x3c1c3
leaq 0x11d3f(%rip), %rdi     # 0x4dee3
movl %ebx, %esi
leaq 0xc7d9(%rip), %rdx      # 0x48986
xorl %eax, %eax
movss %xmm0, 0xc(%rsp)
callq 0x3120
movss 0xc(%rsp), %xmm0
addl %eax, %r13d
testb $0x30, (%r12)
movl %r13d, %edi
je 0x3c1e4
cvtss2sd %xmm0, %xmm0
leaq 0xc869(%rip), %rdi      # 0x48a41
movb $0x1, %al
callq 0x3120
movl %eax, %edi
addl %r13d, %edi
callq 0x16b56
movl %eax, %r13d
incq %rbx
addq $0x4, %r15
cmpq %rbx, %r14
jne 0x3c0dd
movq 0x20(%rsp), %rbx
addq 0x18(%rsp), %rbx
movl %r13d, %edi
callq 0x17530
movq %rbx, %rax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq