// File: /workspace/github_c_makefile_star2_O1/hfiguiere[P]exifprobe/interpret.c
// Function: interpret_offset_value
void
interpret_offset_value(FILE *inptr,struct ifd_entry *entry_ptr,unsigned short byteorder,
                                                           unsigned long fileoffset_base)
{
    unsigned long offset;
    int chpr = 0;

    switch(entry_ptr->tag)
    {
        case TIFFEPTAG_CFAPattern:
            print_offset_epcfapattern(inptr,entry_ptr,fileoffset_base);
            break;
        case EXIFTAG_ExposureTime:
            setcharsprinted(printf(" sec"));
            break;
        case EXIFTAG_ShutterSpeedValue:
            chpr += printf(" APEX"); 
            offset = entry_ptr->value + fileoffset_base;
            print_shutterspeed(inptr,byteorder,offset);
            break;
        case EXIFTAG_ApertureValue:
        case EXIFTAG_MaxApertureValue:
        case EXIFTAG_FNumber:
            chpr += printf(" APEX");
            offset = entry_ptr->value + fileoffset_base;
            print_aperture(inptr,byteorder,offset);
            break;
        case EXIFTAG_BrightnessValue:
            chpr += printf(" APEX");
            offset = entry_ptr->value + fileoffset_base;
            print_brightness(inptr,byteorder,offset);
            break;
        case EXIFTAG_FocalLength:
            chpr += printf(" mm");
            break;
        case EXIFTAG_SubjectDistance:
            chpr += printf(" meters");
            break;
        case EXIFTAG_ExposureBiasValue:
            chpr += printf(" APEX");
            break;
    }
    setcharsprinted(chpr);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %r12
movl %edx, %ebp
movq %rsi, %r15
movq %rdi, %r14
movzwl (%rsi), %eax
xorl %ebx, %ebx
cmpl $0x9200, %eax           # imm = 0x9200
jle 0x184b4
addl $0xffff6dff, %eax       # imm = 0xFFFF6DFF
cmpl $0x9, %eax
ja 0x18612
leaq 0x2dbd2(%rip), %rcx     # 0x46014
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq 0x320cd(%rip), %rdi     # 0x4a51f
xorl %eax, %eax
callq 0x3120
movl %eax, %ebx
addq 0x10(%r15), %r12
movzwl %bp, %ebp
movq %r14, %rdi
movl %ebp, %esi
movq %r12, %rdx
callq 0x46cc
movq %rax, %r15
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movq %r14, %rdi
movl %ebp, %esi
callq 0x46cc
cvtsi2sd %r15, %xmm0
cvtsi2sd %rax, %xmm1
xorpd 0x2dd0d(%rip), %xmm0    # 0x461a0
divsd %xmm1, %xmm0
callq 0x3040
movsd %xmm0, (%rsp)
xorl %eax, %eax
callq 0x95d2
leaq 0x2e24c(%rip), %rdi     # 0x466fb
jmp 0x185db
cmpl $0x828e, %eax           # imm = 0x828E
je 0x18627
cmpl $0x829a, %eax           # imm = 0x829A
je 0x1868e
cmpl $0x829d, %eax           # imm = 0x829D
jne 0x18612
leaq 0x32043(%rip), %rdi     # 0x4a51f
xorl %eax, %eax
callq 0x3120
movl %eax, %ebx
addq 0x10(%r15), %r12
movzwl %bp, %ebp
movq %r14, %rdi
movl %ebp, %esi
movq %r12, %rdx
callq 0x46cc
movq %rax, %r15
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movq %r14, %rdi
movl %ebp, %esi
callq 0x46cc
movq %r15, %xmm1
movq 0x28fc8(%rip), %xmm2    # 0x414e0
punpckldq %xmm2, %xmm1    # xmm1 = xmm1[0],xmm2[0],xmm1[1],xmm2[1]
movapd 0x28fcc(%rip), %xmm3    # 0x414f0
subpd %xmm3, %xmm1
movapd %xmm1, %xmm0
unpckhpd %xmm1, %xmm0            # xmm0 = xmm0[1],xmm1[1]
addsd %xmm1, %xmm0
movq %rax, %xmm1
punpckldq %xmm2, %xmm1    # xmm1 = xmm1[0],xmm2[0],xmm1[1],xmm2[1]
subpd %xmm3, %xmm1
movapd %xmm1, %xmm2
unpckhpd %xmm1, %xmm2            # xmm2 = xmm2[1],xmm1[1]
addsd %xmm1, %xmm2
divsd %xmm2, %xmm0
mulsd 0x2dc57(%rip), %xmm0    # 0x461b0
callq 0x3040
movsd %xmm0, (%rsp)
xorl %eax, %eax
callq 0x95d2
leaq 0x2e184(%rip), %rdi     # 0x466f5
jmp 0x185db
leaq 0x3614b(%rip), %rdi     # 0x4e6c5
jmp 0x18609
leaq 0x31f99(%rip), %rdi     # 0x4a51f
xorl %eax, %eax
callq 0x3120
movl %eax, %ebx
addq 0x10(%r15), %r12
movzwl %bp, %ebp
movq %r14, %rdi
movl %ebp, %esi
movq %r12, %rdx
callq 0x46cc
movq %rax, %r15
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movq %r14, %rdi
movl %ebp, %esi
callq 0x46cc
cvtsi2sd %r15, %xmm0
cvtsi2sd %rax, %xmm1
divsd %xmm1, %xmm0
callq 0x3040
movsd %xmm0, (%rsp)
xorl %eax, %eax
callq 0x95d2
leaq 0x2e127(%rip), %rdi     # 0x46702
movsd (%rsp), %xmm0
movb $0x1, %al
callq 0x3120
movl %eax, %ebp
xorl %eax, %eax
callq 0x95f3
movl %ebp, %edi
callq 0x17530
jmp 0x18612
leaq 0x2dbb8(%rip), %rdi     # 0x461b8
jmp 0x18609
leaq 0x31f16(%rip), %rdi     # 0x4a51f
xorl %eax, %eax
callq 0x3120
movl %eax, %ebx
movl %ebx, %edi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x17530
xorl %ebx, %ebx
movl $0x0, %ebp
testq %r14, %r14
je 0x185f0
movq 0x10(%r15), %r13
xorl %ebp, %ebp
xorl %eax, %eax
callq 0x95d2
cmpq $0x0, 0x8(%r15)
je 0x18680
addq %r12, %r13
xorl %ebx, %ebx
xorl %ebp, %ebp
leaq (%rbx,%r13), %rsi
movq %r14, %rdi
callq 0x4d44
movl %eax, %r12d
testq %rbx, %rbx
je 0x1866e
movl $0x2c, %edi
callq 0x3060
incl %ebp
movzbl %r12b, %edi
callq 0x9595
incq %rbx
cmpq %rbx, 0x8(%r15)
ja 0x1864e
xorl %eax, %eax
callq 0x95f3
xorl %ebx, %ebx
jmp 0x185f0
leaq 0x2e068(%rip), %rdi     # 0x466fd
xorl %ebx, %ebx
xorl %eax, %eax
callq 0x3120
movl %eax, %edi
jmp 0x185f2
nopl (%rax)