// File: /workspace/github_c_makefile_star2_O3/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 0x18a0b
addl $0xffff6dff, %eax       # imm = 0xFFFF6DFF
cmpl $0x9, %eax
ja 0x18b69
leaq 0x2d6bf(%rip), %rcx     # 0x46058
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq 0x31bb6(%rip), %rdi     # 0x4a55f
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 0x4707
movq %rax, %r15
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movq %r14, %rdi
movl %ebp, %esi
callq 0x4707
cvtsi2sd %r15, %xmm0
cvtsi2sd %rax, %xmm1
xorpd 0x2d7f6(%rip), %xmm0    # 0x461e0
divsd %xmm1, %xmm0
callq 0x3040
movsd %xmm0, (%rsp)
xorl %eax, %eax
callq 0x96fd
leaq 0x2dd35(%rip), %rdi     # 0x4673b
jmp 0x18b32
cmpl $0x828e, %eax           # imm = 0x828E
je 0x18b7e
cmpl $0x829a, %eax           # imm = 0x829A
je 0x18be5
cmpl $0x829d, %eax           # imm = 0x829D
jne 0x18b69
leaq 0x31b2c(%rip), %rdi     # 0x4a55f
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 0x4707
movq %rax, %r15
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movq %r14, %rdi
movl %ebp, %esi
callq 0x4707
movq %r15, %xmm1
movq 0x28a71(%rip), %xmm2    # 0x414e0
punpckldq %xmm2, %xmm1    # xmm1 = xmm1[0],xmm2[0],xmm1[1],xmm2[1]
movapd 0x28a75(%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 0x2d740(%rip), %xmm0    # 0x461f0
callq 0x3040
movsd %xmm0, (%rsp)
xorl %eax, %eax
callq 0x96fd
leaq 0x2dc6d(%rip), %rdi     # 0x46735
jmp 0x18b32
leaq 0x35c34(%rip), %rdi     # 0x4e705
jmp 0x18b60
leaq 0x31a82(%rip), %rdi     # 0x4a55f
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 0x4707
movq %rax, %r15
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movq %r14, %rdi
movl %ebp, %esi
callq 0x4707
cvtsi2sd %r15, %xmm0
cvtsi2sd %rax, %xmm1
divsd %xmm1, %xmm0
callq 0x3040
movsd %xmm0, (%rsp)
xorl %eax, %eax
callq 0x96fd
leaq 0x2dc10(%rip), %rdi     # 0x46742
movsd (%rsp), %xmm0
movb $0x1, %al
callq 0x3120
movl %eax, %ebp
xorl %eax, %eax
callq 0x971e
movl %ebp, %edi
callq 0x17a82
jmp 0x18b69
leaq 0x2d6a1(%rip), %rdi     # 0x461f8
jmp 0x18b60
leaq 0x319ff(%rip), %rdi     # 0x4a55f
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 0x17a82
xorl %ebx, %ebx
movl $0x0, %ebp
testq %r14, %r14
je 0x18b47
movq 0x10(%r15), %r13
xorl %ebp, %ebp
xorl %eax, %eax
callq 0x96fd
cmpq $0x0, 0x8(%r15)
je 0x18bd7
addq %r12, %r13
xorl %ebx, %ebx
xorl %ebp, %ebp
leaq (%rbx,%r13), %rsi
movq %r14, %rdi
callq 0x4d48
movl %eax, %r12d
testq %rbx, %rbx
je 0x18bc5
movl $0x2c, %edi
callq 0x3060
incl %ebp
movzbl %r12b, %edi
callq 0x96c0
incq %rbx
cmpq %rbx, 0x8(%r15)
ja 0x18ba5
xorl %eax, %eax
callq 0x971e
xorl %ebx, %ebx
jmp 0x18b47
leaq 0x2db51(%rip), %rdi     # 0x4673d
xorl %ebx, %ebx
xorl %eax, %eax
callq 0x3120
movl %eax, %edi
jmp 0x18b49