// File: /workspace/github_c_makefile_star2_O2/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, %r15
movl %edx, %ebp
movq %rsi, %r12
movq %rdi, %r14
movzwl (%rsi), %eax
xorl %ebx, %ebx
leal -0x9201(%rax), %ecx
cmpl $0x9, %ecx
ja 0x178da
leaq 0x2c7ad(%rip), %rax     # 0x44014
movslq (%rax,%rcx,4), %rcx
addq %rax, %rcx
jmpq *%rcx
leaq 0x30c98(%rip), %rdi     # 0x4850f
xorl %eax, %eax
callq 0x3120
movl %eax, %ebx
addq 0x10(%r12), %r15
movzwl %bp, %ebp
movq %r14, %rdi
movl %ebp, %esi
movq %r15, %rdx
callq 0x42ba
movq %rax, %r15
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movq %r14, %rdi
movl %ebp, %esi
callq 0x42ba
cvtsi2sd %r15, %xmm0
cvtsi2sd %rax, %xmm1
xorpd 0x2c8d7(%rip), %xmm0    # 0x44190
divsd %xmm1, %xmm0
callq 0x3040
movsd %xmm0, (%rsp)
xorl %eax, %eax
callq 0x8f81
leaq 0x2ce16(%rip), %rdi     # 0x446eb
jmp 0x17a62
cmpl $0x829d, %eax           # imm = 0x829D
je 0x1794e
cmpl $0x829a, %eax           # imm = 0x829A
je 0x17aa5
cmpl $0x828e, %eax           # imm = 0x828E
jne 0x17a90
xorl %ebx, %ebx
movl $0x0, %ebp
testq %r14, %r14
je 0x17a77
addq 0x10(%r12), %r15
xorl %ebx, %ebx
xorl %eax, %eax
callq 0x8f81
xorl %ebp, %ebp
cmpq %rbx, 0x8(%r12)
jbe 0x17ab9
leaq (%r15,%rbx), %rsi
movq %r14, %rdi
callq 0x48de
movl %eax, %r13d
testq %rbx, %rbx
je 0x17940
pushq $0x2c
popq %rdi
callq 0x3060
incl %ebp
movzbl %r13b, %edi
callq 0x8f48
incq %rbx
jmp 0x17917
leaq 0x30bba(%rip), %rdi     # 0x4850f
xorl %eax, %eax
callq 0x3120
movl %eax, %ebx
addq 0x10(%r12), %r15
movzwl %bp, %ebp
movq %r14, %rdi
movl %ebp, %esi
movq %r15, %rdx
callq 0x42ba
movq %rax, %r15
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movq %r14, %rdi
movl %ebp, %esi
callq 0x42ba
movq %r15, %xmm1
movq 0x27b4e(%rip), %xmm2    # 0x3f4e0
punpckldq %xmm2, %xmm1    # xmm1 = xmm1[0],xmm2[0],xmm1[1],xmm2[1]
movapd 0x27b52(%rip), %xmm3    # 0x3f4f0
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 0x2c7cd(%rip), %xmm0    # 0x441a0
callq 0x3040
movsd %xmm0, (%rsp)
xorl %eax, %eax
callq 0x8f81
leaq 0x2ccfa(%rip), %rdi     # 0x446e5
jmp 0x17a62
leaq 0x34cc1(%rip), %rdi     # 0x4c6b5
jmp 0x17a87
leaq 0x2c7a8(%rip), %rdi     # 0x441a8
jmp 0x17a87
leaq 0x30b03(%rip), %rdi     # 0x4850f
xorl %eax, %eax
callq 0x3120
movl %eax, %ebx
addq 0x10(%r12), %r15
movzwl %bp, %ebp
movq %r14, %rdi
movl %ebp, %esi
movq %r15, %rdx
callq 0x42ba
movq %rax, %r15
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movq %r14, %rdi
movl %ebp, %esi
callq 0x42ba
cvtsi2sd %r15, %xmm0
cvtsi2sd %rax, %xmm1
divsd %xmm1, %xmm0
callq 0x3040
movsd %xmm0, (%rsp)
xorl %eax, %eax
callq 0x8f81
leaq 0x2cc90(%rip), %rdi     # 0x446f2
movsd (%rsp), %xmm0
movb $0x1, %al
callq 0x3120
movl %eax, %ebp
xorl %eax, %eax
callq 0x8fa0
movl %ebp, %edi
callq 0x16a4f
jmp 0x17a90
leaq 0x30a88(%rip), %rdi     # 0x4850f
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 0x16a4f
leaq 0x2cc41(%rip), %rdi     # 0x446ed
xorl %ebx, %ebx
xorl %eax, %eax
callq 0x3120
movl %eax, %edi
jmp 0x17a79
xorl %eax, %eax
callq 0x8fa0
xorl %ebx, %ebx
jmp 0x17a77