// File: /workspace/github_c_makefile_star2_O1/hfiguiere[P]exifprobe/maker_nikon.c
// Function: nikon2_interpret_offset_makervalue
void
nikon2_interpret_offset_makervalue(FILE *inptr,unsigned short byteorder,
                    struct ifd_entry *entry_ptr,unsigned long fileoffset_base,
                    char *parent_name,char *nameoftag,int indent)
{
    unsigned long offset;
    int chpr = 0;
    char *fullnameoftag = CNULL;
    int entrywidth;
    double minfl,maxfl,minmaxap,maxmaxap;
    unsigned long num,denom;

    if(entry_ptr && (PRINT_VALUE))
    {
        fullnameoftag = splice(parent_name,".",nameoftag);
        offset = entry_ptr->value + fileoffset_base;
        switch(entry_ptr->tag)
        {
            case 0x0084:
                /* Assume no read errors here, since it's been    */
                /* read once before; if there are, we'll hear     */
                /* about it (but do nothing).                     */
                num = read_ulong(inptr,byteorder,offset);
                denom = read_ulong(inptr,byteorder,HERE);
                if(num == 0UL)
                    minfl = 0.0;
                else 
                    minfl = (double)((double)num/(double)denom);
                num = read_ulong(inptr,byteorder,HERE);
                denom = read_ulong(inptr,byteorder,HERE);
                if(num == 0UL)
                    maxfl = 0.0;
                else 
                    maxfl = (double)((double)num/(double)denom);
                num = read_ulong(inptr,byteorder,HERE);
                denom = read_ulong(inptr,byteorder,HERE);
                if(num == 0UL)
                    minmaxap = 0.0;
                else 
                    minmaxap = (double)((double)num/(double)denom);
                num = read_ulong(inptr,byteorder,HERE);
                denom = read_ulong(inptr,byteorder,HERE);
                if(num == 0UL)
                    maxmaxap = 0.0;
                else 
                    maxmaxap = (double)((double)num/(double)denom);

                if((PRINT_SECTION))
                {
                    chpr = printf(" = {");
                    chpr = newline(chpr);
                    indent += MEDIUMINDENT + MAKERTAGWIDTH + 3;
                    print_tag_address(ENTRY,offset,indent,"@");
                }
                else
                {
                    chpr = newline(chpr);
                    print_tag_address(ENTRY,offset,indent,"@");
                }

                if(PRINT_ENTRY)
                {
                    entrywidth = sizeof("MaxApertureAtMinFocalLength");
                    if((PRINT_TAGINFO))
                    {
                        if((PRINT_LONGNAMES))
                            chpr += printf("%s.",fullnameoftag);
                        chpr += printf("%-*.*s",entrywidth,entrywidth,"MinFocalLength"); 
                    }
                    if((PRINT_VALUE))
                    {
                        print_startvalue();
                        printf("%.0f mm",minfl);
                        print_endvalue();
                        chpr = newline(chpr);
                    }
                    print_tag_address(ENTRY,offset + 8,indent,"@");
                    if((PRINT_TAGINFO))
                    {
                        if((PRINT_LONGNAMES))
                            chpr += printf("%s.",fullnameoftag);
                        chpr += printf("%-*.*s",entrywidth,entrywidth,"MaxFocalLength"); 
                    }
                    if((PRINT_VALUE))
                    {
                        print_startvalue();
                        chpr += printf("%.0f mm",maxfl);
                        print_endvalue();
                        chpr = newline(chpr);
                    }
                    print_tag_address(ENTRY,offset + 16,indent,"@");
                    if((PRINT_TAGINFO))
                    {
                        if((PRINT_LONGNAMES))
                            chpr += printf("%s.",fullnameoftag);
                        chpr += printf("%-*.*s",entrywidth,entrywidth,
                                                "MaxApertureAtMinFocalLength"); 
                    }
                    if((PRINT_VALUE))
                    {
                        /* ###%%% APEX? */
                        chpr += printf(" = %3.2f APEX",minmaxap);
                        minmaxap = pow(2.0,minmaxap/2.0);
                        print_startvalue();
                        chpr += printf("f%.1f",minmaxap);
                        print_endvalue();
                        chpr = newline(chpr);
                    }
                    print_tag_address(ENTRY,offset + 24,indent,"@");
                    if((PRINT_TAGINFO))
                    {
                        if((PRINT_LONGNAMES))
                            chpr += printf("%s.",fullnameoftag);
                        chpr += printf("%-*.*s",entrywidth,entrywidth,
                                                "MaxApertureAtMaxFocalLength"); 
                    }
                    if((PRINT_VALUE))
                    {
                        /* ###%%% APEX? */
                        chpr += printf(" = %3.2f APEX",maxmaxap);
                        maxmaxap = pow(2.0,maxmaxap/2.0);
                        print_startvalue();
                        chpr += printf("f%.1f",maxmaxap);
                        print_endvalue();
                        if(PRINT_SECTION)
                        {
                            chpr = newline(chpr);
                            print_tag_address(ENTRY,offset + 31,0,"@");
                            putindent(indent - MEDIUMINDENT);
                            chpr = printf("}");
                        }
                    }
                }
                break;
            default:
                break;
        }
        free(fullnameoftag);
        fullnameoftag = NULL;
    }
    setcharsprinted(chpr);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
xorl %r15d, %r15d
testq %rdx, %rdx
je 0x2cf64
leaq 0x2b78c(%rip), %rax     # 0x58180
testb $0x30, (%rax)
je 0x2cf64
movq %rcx, %r14
movq %rdx, %rbx
movl %esi, %r13d
movq %rdi, %r12
movq %rax, %rbp
movl 0x90(%rsp), %eax
movl %eax, 0x8(%rsp)
leaq 0x14f79(%rip), %rsi     # 0x41997
movq %r8, %rdi
movq %r9, %rdx
callq 0x17a47
xorl %r15d, %r15d
cmpw $0x84, (%rbx)
jne 0x2cf5c
movq %rax, (%rsp)
addq 0x10(%rbx), %r14
movzwl %r13w, %r15d
movq %r12, %rdi
movl %r15d, %esi
movq %r14, %rdx
callq 0x46cc
movq %rax, %rbx
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movq %r12, %rdi
movl %r15d, %esi
callq 0x46cc
xorpd %xmm0, %xmm0
movapd %xmm0, 0x20(%rsp)
xorpd %xmm2, %xmm2
testq %rbx, %rbx
je 0x2cabd
movq %rbx, %xmm0
movq 0x14a5c(%rip), %xmm3    # 0x414e0
punpckldq %xmm3, %xmm0    # xmm0 = xmm0[0],xmm3[0],xmm0[1],xmm3[1]
movapd 0x14a60(%rip), %xmm1    # 0x414f0
subpd %xmm1, %xmm0
movapd %xmm0, %xmm2
unpckhpd %xmm0, %xmm2            # xmm2 = xmm2[1],xmm0[1]
addsd %xmm0, %xmm2
movq %rax, %xmm0
punpckldq %xmm3, %xmm0    # xmm0 = xmm0[0],xmm3[0],xmm0[1],xmm3[1]
subpd %xmm1, %xmm0
movapd %xmm0, %xmm1
unpckhpd %xmm0, %xmm1            # xmm1 = xmm1[1],xmm0[1]
addsd %xmm0, %xmm1
divsd %xmm1, %xmm2
movapd %xmm2, 0x30(%rsp)
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movq %r12, %rdi
movl %r15d, %esi
callq 0x46cc
movq %rax, %rbx
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movq %r12, %rdi
movl %r15d, %esi
callq 0x46cc
xorpd %xmm2, %xmm2
testq %rbx, %rbx
je 0x2cb35
movq %rbx, %xmm0
movq 0x149e4(%rip), %xmm3    # 0x414e0
punpckldq %xmm3, %xmm0    # xmm0 = xmm0[0],xmm3[0],xmm0[1],xmm3[1]
movapd 0x149e8(%rip), %xmm1    # 0x414f0
subpd %xmm1, %xmm0
movapd %xmm0, %xmm2
unpckhpd %xmm0, %xmm2            # xmm2 = xmm2[1],xmm0[1]
addsd %xmm0, %xmm2
movq %rax, %xmm0
punpckldq %xmm3, %xmm0    # xmm0 = xmm0[0],xmm3[0],xmm0[1],xmm3[1]
subpd %xmm1, %xmm0
movapd %xmm0, %xmm1
unpckhpd %xmm0, %xmm1            # xmm1 = xmm1[1],xmm0[1]
addsd %xmm0, %xmm1
divsd %xmm1, %xmm2
movapd %xmm2, 0x40(%rsp)
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movq %r12, %rdi
movl %r15d, %esi
callq 0x46cc
movq %rax, %rbx
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movq %r12, %rdi
movl %r15d, %esi
callq 0x46cc
xorpd %xmm0, %xmm0
movapd %xmm0, 0x10(%rsp)
testq %rbx, %rbx
je 0x2cbb9
movq %rbx, %xmm0
movq 0x14966(%rip), %xmm3    # 0x414e0
punpckldq %xmm3, %xmm0    # xmm0 = xmm0[0],xmm3[0],xmm0[1],xmm3[1]
movapd 0x1496a(%rip), %xmm1    # 0x414f0
subpd %xmm1, %xmm0
movapd %xmm0, %xmm2
unpckhpd %xmm0, %xmm2            # xmm2 = xmm2[1],xmm0[1]
addsd %xmm0, %xmm2
movq %rax, %xmm0
punpckldq %xmm3, %xmm0    # xmm0 = xmm0[0],xmm3[0],xmm0[1],xmm3[1]
subpd %xmm1, %xmm0
movapd %xmm0, %xmm1
unpckhpd %xmm0, %xmm1            # xmm1 = xmm1[1],xmm0[1]
addsd %xmm0, %xmm1
divsd %xmm1, %xmm2
movapd %xmm2, 0x10(%rsp)
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movq %r12, %rdi
movl %r15d, %esi
callq 0x46cc
movq %rax, %rbx
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movq %r12, %rdi
movl %r15d, %esi
callq 0x46cc
testq %rbx, %rbx
je 0x2cc2d
movq %rbx, %xmm0
movq 0x148f2(%rip), %xmm3    # 0x414e0
punpckldq %xmm3, %xmm0    # xmm0 = xmm0[0],xmm3[0],xmm0[1],xmm3[1]
movapd 0x148f6(%rip), %xmm1    # 0x414f0
subpd %xmm1, %xmm0
movapd %xmm0, %xmm2
unpckhpd %xmm0, %xmm2            # xmm2 = xmm2[1],xmm0[1]
addsd %xmm0, %xmm2
movq %rax, %xmm0
punpckldq %xmm3, %xmm0    # xmm0 = xmm0[0],xmm3[0],xmm0[1],xmm3[1]
subpd %xmm1, %xmm0
movapd %xmm0, %xmm1
unpckhpd %xmm0, %xmm1            # xmm1 = xmm1[1],xmm0[1]
addsd %xmm0, %xmm1
divsd %xmm1, %xmm2
movapd %xmm2, 0x20(%rsp)
testb $0x4, 0x2(%rbp)
movl 0x8(%rsp), %r12d
jne 0x2cc44
xorl %edi, %edi
callq 0x16b56
movl %eax, %r15d
jmp 0x2cc60
leaq 0x1d90b(%rip), %rdi     # 0x4a556
xorl %eax, %eax
callq 0x3120
movl %eax, %edi
callq 0x16b56
movl %eax, %r15d
addl $0x20, %r12d
leaq 0x14475(%rip), %rcx     # 0x410dc
movl $0x4003333, %edi        # imm = 0x4003333
movq %r14, %rsi
movl %r12d, %edx
callq 0x5605
movq (%rbp), %rax
testl $0x4003333, %eax        # imm = 0x4003333
je 0x2cf58
testl $0x3003, %eax           # imm = 0x3003
je 0x2ccc8
testb $0x40, %al
je 0x2cca6
leaq 0x1880f(%rip), %rdi     # 0x454a7
movq (%rsp), %rsi
xorl %eax, %eax
callq 0x3120
addl %eax, %r15d
leaq 0x1be44(%rip), %rdi     # 0x48af1
leaq 0x1d854(%rip), %rcx     # 0x4a508
movl $0x1c, %esi
movl $0x1c, %edx
xorl %eax, %eax
callq 0x3120
addl %eax, %r15d
testb $0x30, (%rbp)
je 0x2ccfb
xorl %eax, %eax
callq 0x95d2
leaq 0x1d817(%rip), %rdi     # 0x4a4f3
movapd 0x30(%rsp), %xmm0
movb $0x1, %al
callq 0x3120
xorl %eax, %eax
callq 0x95f3
movl %r15d, %edi
callq 0x16b56
movl %eax, %r15d
leaq 0x8(%r14), %rsi
leaq 0x143d6(%rip), %rcx     # 0x410dc
movl $0x4003333, %edi        # imm = 0x4003333
movl %r12d, %edx
callq 0x5605
movq (%rbp), %rax
testl $0x3003, %eax           # imm = 0x3003
je 0x2cd59
testb $0x40, %al
je 0x2cd37
leaq 0x1877e(%rip), %rdi     # 0x454a7
movq (%rsp), %rsi
xorl %eax, %eax
callq 0x3120
addl %eax, %r15d
leaq 0x1bdb3(%rip), %rdi     # 0x48af1
leaq 0x1d7ed(%rip), %rcx     # 0x4a532
movl $0x1c, %esi
movl $0x1c, %edx
xorl %eax, %eax
callq 0x3120
addl %eax, %r15d
testb $0x30, (%rbp)
je 0x2cd8f
xorl %eax, %eax
callq 0x95d2
leaq 0x1d786(%rip), %rdi     # 0x4a4f3
movapd 0x40(%rsp), %xmm0
movb $0x1, %al
callq 0x3120
addl %eax, %r15d
xorl %eax, %eax
callq 0x95f3
movl %r15d, %edi
callq 0x16b56
movl %eax, %r15d
leaq 0x10(%r14), %rsi
leaq 0x14342(%rip), %rcx     # 0x410dc
movl $0x4003333, %edi        # imm = 0x4003333
movl %r12d, %edx
callq 0x5605
movq (%rbp), %rax
testl $0x3003, %eax           # imm = 0x3003
je 0x2cded
testb $0x40, %al
je 0x2cdcb
leaq 0x186ea(%rip), %rdi     # 0x454a7
movq (%rsp), %rsi
xorl %eax, %eax
callq 0x3120
addl %eax, %r15d
leaq 0x1bd1f(%rip), %rdi     # 0x48af1
leaq 0x1d722(%rip), %rcx     # 0x4a4fb
movl $0x1c, %esi
movl $0x1c, %edx
xorl %eax, %eax
callq 0x3120
addl %eax, %r15d
testb $0x30, (%rbp)
je 0x2ce52
leaq 0x1d71d(%rip), %rdi     # 0x4a517
movaps 0x10(%rsp), %xmm0
movb $0x1, %al
callq 0x3120
addl %eax, %r15d
movapd 0x10(%rsp), %xmm0
mulsd 0x19399(%rip), %xmm0    # 0x461b0
callq 0x3040
movsd %xmm0, 0x8(%rsp)
xorl %eax, %eax
callq 0x95d2
leaq 0x198c5(%rip), %rdi     # 0x466f5
movsd 0x8(%rsp), %xmm0
movb $0x1, %al
callq 0x3120
addl %eax, %r15d
xorl %eax, %eax
callq 0x95f3
movl %r15d, %edi
callq 0x16b56
movl %eax, %r15d
leaq 0x18(%r14), %rsi
leaq 0x1427f(%rip), %rcx     # 0x410dc
movl $0x4003333, %edi        # imm = 0x4003333
movl %r12d, %edx
callq 0x5605
movq (%rbp), %rax
testl $0x3003, %eax           # imm = 0x3003
je 0x2ceb0
testb $0x40, %al
je 0x2ce8e
leaq 0x18627(%rip), %rdi     # 0x454a7
movq (%rsp), %rsi
xorl %eax, %eax
callq 0x3120
addl %eax, %r15d
leaq 0x1bc5c(%rip), %rdi     # 0x48af1
leaq 0x1d689(%rip), %rcx     # 0x4a525
movl $0x1c, %esi
movl $0x1c, %edx
xorl %eax, %eax
callq 0x3120
addl %eax, %r15d
testb $0x30, (%rbp)
je 0x2cf58
leaq 0x1d656(%rip), %rdi     # 0x4a517
movaps 0x20(%rsp), %xmm0
movb $0x1, %al
callq 0x3120
movl %eax, %ebx
addl %r15d, %ebx
movapd 0x20(%rsp), %xmm0
mulsd 0x192d0(%rip), %xmm0    # 0x461b0
callq 0x3040
movsd %xmm0, 0x8(%rsp)
xorl %eax, %eax
callq 0x95d2
leaq 0x197fc(%rip), %rdi     # 0x466f5
movsd 0x8(%rsp), %xmm0
movb $0x1, %al
callq 0x3120
movl %eax, %r15d
addl %ebx, %r15d
xorl %eax, %eax
callq 0x95f3
testb $0x4, 0x2(%rbp)
je 0x2cf58
movl %r15d, %edi
callq 0x16b56
addq $0x1f, %r14
leaq 0x141b0(%rip), %rcx     # 0x410dc
movl $0x4003333, %edi        # imm = 0x4003333
movq %r14, %rsi
xorl %edx, %edx
callq 0x5605
addl $-0x4, %r12d
movl %r12d, %edi
callq 0x5730
leaq 0x1c4b1(%rip), %rdi     # 0x493ff
xorl %eax, %eax
callq 0x3120
movl %eax, %r15d
movq (%rsp), %rax
movq %rax, %rdi
callq 0x3050
movl %r15d, %edi
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x17530