// File: /workspace/github_c_makefile_star2_O0/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
movq %rsp, %rbp
subq $0x60, %rsp
movw %si, %ax
movq 0x10(%rbp), %rsi
movq %rdi, -0x8(%rbp)
movw %ax, -0xa(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq %r8, -0x28(%rbp)
movl %r9d, -0x2c(%rbp)
movl $0x0, -0x54(%rbp)
leaq 0x1ba1b(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x40000, %rax          # imm = 0x40000
cmpq $0x0, %rax
je 0x5b797
movq -0x28(%rbp), %rsi
leaq 0xf53a(%rip), %rdi      # 0x6acb9
movb $0x0, %al
callq 0x3110
addl -0x54(%rbp), %eax
movl %eax, -0x54(%rbp)
movl -0x54(%rbp), %edi
callq 0x1ef50
movl %eax, -0x54(%rbp)
movq -0x20(%rbp), %rax
addq -0x28(%rbp), %rax
movq %rax, -0x48(%rbp)
movq -0x28(%rbp), %rax
shrq $0x3, %rax
movq %rax, -0x38(%rbp)
movl $0x0, -0x50(%rbp)
movslq -0x50(%rbp), %rax
cmpq -0x38(%rbp), %rax
jae 0x5ba64
movq -0x8(%rbp), %rdi
movw -0xa(%rbp), %ax
movq -0x20(%rbp), %rdx
movzwl %ax, %esi
callq 0x4610
movq %rax, -0x40(%rbp)
movq -0x20(%rbp), %rsi
movl -0x2c(%rbp), %edx
movl $0x4003333, %edi        # imm = 0x4003333
leaq 0x88ed(%rip), %rcx      # 0x640dc
callq 0x5ed0
leaq 0x1b985(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x4003333, %rax        # imm = 0x4003333
cmpq $0x0, %rax
je 0x5b83a
leaq 0x1b96f(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x3003, %rax           # imm = 0x3003
cmpq $0x0, %rax
je 0x5b838
movq -0x18(%rbp), %rsi
leaq 0x886c(%rip), %rdi      # 0x64097
movb $0x0, %al
callq 0x3110
addl -0x54(%rbp), %eax
movl %eax, -0x54(%rbp)
jmp 0x5b83a
movq -0x20(%rbp), %rax
addq $0x4, %rax
movq %rax, -0x20(%rbp)
movl -0x50(%rbp), %eax
movl %eax, -0x58(%rbp)
testl %eax, %eax
je 0x5b871
jmp 0x5b852
movl -0x58(%rbp), %eax
subl $0x1, %eax
je 0x5b8e9
jmp 0x5b860
movl -0x58(%rbp), %eax
subl $0x2, %eax
je 0x5b961
jmp 0x5b9d6
movq -0x40(%rbp), %rdi
callq 0x5100
movss %xmm0, -0x4c(%rbp)
leaq 0x1b8fa(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x3003, %rax           # imm = 0x3003
cmpq $0x0, %rax
je 0x5b8b3
movl -0x50(%rbp), %esi
leaq 0x14dc4(%rip), %rdi     # 0x70663
leaq 0x11ab5(%rip), %rdx     # 0x6d35b
movb $0x0, %al
callq 0x3110
addl -0x54(%rbp), %eax
movl %eax, -0x54(%rbp)
leaq 0x1b8c6(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x30, %rax
cmpq $0x0, %rax
je 0x5b8e4
movss -0x4c(%rbp), %xmm0
cvtss2sd %xmm0, %xmm0
leaq 0xf715(%rip), %rdi      # 0x6afec
movb $0x1, %al
callq 0x3110
addl -0x54(%rbp), %eax
movl %eax, -0x54(%rbp)
jmp 0x5ba4b
movq -0x40(%rbp), %rdi
callq 0x5100
movss %xmm0, -0x4c(%rbp)
leaq 0x1b882(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x3003, %rax           # imm = 0x3003
cmpq $0x0, %rax
je 0x5b92b
movl -0x50(%rbp), %esi
leaq 0x14d4c(%rip), %rdi     # 0x70663
leaq 0x1488e(%rip), %rdx     # 0x701ac
movb $0x0, %al
callq 0x3110
addl -0x54(%rbp), %eax
movl %eax, -0x54(%rbp)
leaq 0x1b84e(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x30, %rax
cmpq $0x0, %rax
je 0x5b95c
movss -0x4c(%rbp), %xmm0
cvtss2sd %xmm0, %xmm0
leaq 0xf69d(%rip), %rdi      # 0x6afec
movb $0x1, %al
callq 0x3110
addl -0x54(%rbp), %eax
movl %eax, -0x54(%rbp)
jmp 0x5ba4b
movq -0x40(%rbp), %rdi
callq 0x5100
movss %xmm0, -0x4c(%rbp)
leaq 0x1b80a(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x3003, %rax           # imm = 0x3003
cmpq $0x0, %rax
je 0x5b9a3
movl -0x50(%rbp), %esi
leaq 0x14cd4(%rip), %rdi     # 0x70663
leaq 0x14231(%rip), %rdx     # 0x6fbc7
movb $0x0, %al
callq 0x3110
addl -0x54(%rbp), %eax
movl %eax, -0x54(%rbp)
leaq 0x1b7d6(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x30, %rax
cmpq $0x0, %rax
je 0x5b9d4
movss -0x4c(%rbp), %xmm0
cvtss2sd %xmm0, %xmm0
leaq 0xf625(%rip), %rdi      # 0x6afec
movb $0x1, %al
callq 0x3110
addl -0x54(%rbp), %eax
movl %eax, -0x54(%rbp)
jmp 0x5ba4b
movq -0x40(%rbp), %rdi
callq 0x5100
movss %xmm0, -0x4c(%rbp)
leaq 0x1b795(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x3003, %rax           # imm = 0x3003
cmpq $0x0, %rax
je 0x5ba18
movl -0x50(%rbp), %esi
leaq 0x14c5f(%rip), %rdi     # 0x70663
leaq 0xf526(%rip), %rdx      # 0x6af31
movb $0x0, %al
callq 0x3110
addl -0x54(%rbp), %eax
movl %eax, -0x54(%rbp)
leaq 0x1b761(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x30, %rax
cmpq $0x0, %rax
je 0x5ba49
movss -0x4c(%rbp), %xmm0
cvtss2sd %xmm0, %xmm0
leaq 0xf5b0(%rip), %rdi      # 0x6afec
movb $0x1, %al
callq 0x3110
addl -0x54(%rbp), %eax
movl %eax, -0x54(%rbp)
jmp 0x5ba4b
movl -0x54(%rbp), %edi
callq 0x1ef50
movl %eax, -0x54(%rbp)
movl -0x50(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x50(%rbp)
jmp 0x5b7b6
movl -0x54(%rbp), %edi
callq 0x1ff00
movq -0x48(%rbp), %rax
addq $0x60, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)