// File: /workspace/github_c_makefile_star2_O2/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 0x2c033
leaq 0x2b6ab(%rip), %rax     # 0x57180
testb $0x30, (%rax)
je 0x2c033
movq %rcx, %r14
movq %rdx, %rbx
movl %esi, %r13d
movq %rdi, %r12
movl 0x90(%rsp), %ebp
leaq 0x13e9f(%rip), %rsi     # 0x3f997
movq %r8, %rdi
movq %r9, %rdx
callq 0x16f1d
xorl %r15d, %r15d
cmpw $0x84, (%rbx)
jne 0x2c02b
movq %rax, 0x8(%rsp)
addq 0x10(%rbx), %r14
movzwl %r13w, %r15d
movq %r12, %rdi
movl %r15d, %esi
movq %r14, %rdx
callq 0x42ba
movq %rax, %rbx
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movq %r12, %rdi
movl %r15d, %esi
callq 0x42ba
xorpd %xmm0, %xmm0
movapd %xmm0, 0x20(%rsp)
xorpd %xmm2, %xmm2
testq %rbx, %rbx
je 0x2bb98
movq %rbx, %xmm0
movq 0x13981(%rip), %xmm3    # 0x3f4e0
punpckldq %xmm3, %xmm0    # xmm0 = xmm0[0],xmm3[0],xmm0[1],xmm3[1]
movapd 0x13985(%rip), %xmm1    # 0x3f4f0
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 0x42ba
movq %rax, %rbx
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movq %r12, %rdi
movl %r15d, %esi
callq 0x42ba
xorpd %xmm2, %xmm2
testq %rbx, %rbx
je 0x2bc10
movq %rbx, %xmm0
movq 0x13909(%rip), %xmm3    # 0x3f4e0
punpckldq %xmm3, %xmm0    # xmm0 = xmm0[0],xmm3[0],xmm0[1],xmm3[1]
movapd 0x1390d(%rip), %xmm1    # 0x3f4f0
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 0x42ba
movq %rax, %rbx
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movq %r12, %rdi
movl %r15d, %esi
callq 0x42ba
xorpd %xmm0, %xmm0
movapd %xmm0, 0x10(%rsp)
testq %rbx, %rbx
je 0x2bc94
movq %rbx, %xmm0
movq 0x1388b(%rip), %xmm3    # 0x3f4e0
punpckldq %xmm3, %xmm0    # xmm0 = xmm0[0],xmm3[0],xmm0[1],xmm3[1]
movapd 0x1388f(%rip), %xmm1    # 0x3f4f0
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 0x42ba
movq %rax, %rbx
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movq %r12, %rdi
movl %r15d, %esi
callq 0x42ba
testq %rbx, %rbx
je 0x2bd08
movq %rbx, %xmm0
movq 0x13817(%rip), %xmm3    # 0x3f4e0
punpckldq %xmm3, %xmm0    # xmm0 = xmm0[0],xmm3[0],xmm0[1],xmm3[1]
movapd 0x1381b(%rip), %xmm1    # 0x3f4f0
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)
leaq 0x2b471(%rip), %r12     # 0x57180
testb $0x4, 0x2(%r12)
jne 0x2bd23
xorl %edi, %edi
callq 0x160f7
movl %eax, %r15d
jmp 0x2bd3e
leaq 0x1c81c(%rip), %rdi     # 0x48546
xorl %eax, %eax
callq 0x3120
movl %eax, %edi
callq 0x160f7
movl %eax, %r15d
addl $0x20, %ebp
leaq 0x13397(%rip), %rcx     # 0x3f0dc
movl $0x4003333, %edi        # imm = 0x4003333
movq %r14, %rsi
movl %ebp, %edx
callq 0x5100
movq (%r12), %rax
testl $0x4003333, %eax        # imm = 0x4003333
je 0x2c026
testw $0x3003, %ax            # imm = 0x3003
je 0x2bda4
testb $0x40, %al
je 0x2bd83
leaq 0x17733(%rip), %rdi     # 0x434a7
movq 0x8(%rsp), %rsi
xorl %eax, %eax
callq 0x3120
addl %eax, %r15d
leaq 0x1ad57(%rip), %rdi     # 0x46ae1
leaq 0x1c767(%rip), %rcx     # 0x484f8
pushq $0x1c
popq %rdx
movl %edx, %esi
xorl %eax, %eax
callq 0x3120
addl %eax, %r15d
movq (%r12), %rax
testb $0x30, %al
je 0x2bdd5
xorl %eax, %eax
callq 0x8f81
leaq 0x1c72d(%rip), %rdi     # 0x484e3
movapd 0x30(%rsp), %xmm0
movb $0x1, %al
callq 0x3120
xorl %eax, %eax
callq 0x8fa0
movl %r15d, %edi
callq 0x160f7
movl %eax, %r15d
leaq 0x8(%r14), %rsi
leaq 0x132fc(%rip), %rcx     # 0x3f0dc
movl $0x4003333, %edi        # imm = 0x4003333
movl %ebp, %edx
callq 0x5100
movq (%r12), %rax
testw $0x3003, %ax            # imm = 0x3003
je 0x2be31
testb $0x40, %al
je 0x2be10
leaq 0x176a6(%rip), %rdi     # 0x434a7
movq 0x8(%rsp), %rsi
xorl %eax, %eax
callq 0x3120
addl %eax, %r15d
leaq 0x1acca(%rip), %rdi     # 0x46ae1
leaq 0x1c704(%rip), %rcx     # 0x48522
pushq $0x1c
popq %rdx
movl %edx, %esi
xorl %eax, %eax
callq 0x3120
addl %eax, %r15d
movq (%r12), %rax
testb $0x30, %al
je 0x2be65
xorl %eax, %eax
callq 0x8f81
leaq 0x1c6a0(%rip), %rdi     # 0x484e3
movapd 0x40(%rsp), %xmm0
movb $0x1, %al
callq 0x3120
addl %eax, %r15d
xorl %eax, %eax
callq 0x8fa0
movl %r15d, %edi
callq 0x160f7
movl %eax, %r15d
leaq 0x10(%r14), %rsi
leaq 0x1326c(%rip), %rcx     # 0x3f0dc
movl $0x4003333, %edi        # imm = 0x4003333
movl %ebp, %edx
callq 0x5100
movq (%r12), %rax
testw $0x3003, %ax            # imm = 0x3003
je 0x2bec1
testb $0x40, %al
je 0x2bea0
leaq 0x17616(%rip), %rdi     # 0x434a7
movq 0x8(%rsp), %rsi
xorl %eax, %eax
callq 0x3120
addl %eax, %r15d
leaq 0x1ac3a(%rip), %rdi     # 0x46ae1
leaq 0x1c63d(%rip), %rcx     # 0x484eb
pushq $0x1c
popq %rdx
movl %edx, %esi
xorl %eax, %eax
callq 0x3120
addl %eax, %r15d
movq (%r12), %rax
testb $0x30, %al
je 0x2bf24
leaq 0x1c63b(%rip), %rdi     # 0x48507
movaps 0x10(%rsp), %xmm0
movb $0x1, %al
callq 0x3120
addl %eax, %r15d
movapd 0x10(%rsp), %xmm0
mulsd 0x182b7(%rip), %xmm0    # 0x441a0
callq 0x3040
movsd %xmm0, 0x10(%rsp)
xorl %eax, %eax
callq 0x8f81
leaq 0x187e3(%rip), %rdi     # 0x446e5
movsd 0x10(%rsp), %xmm0
movb $0x1, %al
callq 0x3120
addl %eax, %r15d
xorl %eax, %eax
callq 0x8fa0
movl %r15d, %edi
callq 0x160f7
movl %eax, %r15d
leaq 0x18(%r14), %rsi
leaq 0x131ad(%rip), %rcx     # 0x3f0dc
movl $0x4003333, %edi        # imm = 0x4003333
movl %ebp, %edx
callq 0x5100
movq (%r12), %rax
testw $0x3003, %ax            # imm = 0x3003
je 0x2bf80
testb $0x40, %al
je 0x2bf5f
leaq 0x17557(%rip), %rdi     # 0x434a7
movq 0x8(%rsp), %rsi
xorl %eax, %eax
callq 0x3120
addl %eax, %r15d
leaq 0x1ab7b(%rip), %rdi     # 0x46ae1
leaq 0x1c5a8(%rip), %rcx     # 0x48515
pushq $0x1c
popq %rdx
movl %edx, %esi
xorl %eax, %eax
callq 0x3120
addl %eax, %r15d
movq (%r12), %rax
testb $0x30, %al
je 0x2c026
leaq 0x1c578(%rip), %rdi     # 0x48507
movaps 0x20(%rsp), %xmm0
movb $0x1, %al
callq 0x3120
movl %eax, %ebx
addl %r15d, %ebx
movapd 0x20(%rsp), %xmm0
mulsd 0x181f2(%rip), %xmm0    # 0x441a0
callq 0x3040
movsd %xmm0, 0x20(%rsp)
xorl %eax, %eax
callq 0x8f81
leaq 0x1871e(%rip), %rdi     # 0x446e5
movsd 0x20(%rsp), %xmm0
movb $0x1, %al
callq 0x3120
movl %eax, %r15d
addl %ebx, %r15d
xorl %eax, %eax
callq 0x8fa0
testb $0x4, 0x2(%r12)
je 0x2c026
movl %r15d, %edi
callq 0x160f7
addq $0x1f, %r14
leaq 0x130e0(%rip), %rcx     # 0x3f0dc
movl $0x4003333, %edi        # imm = 0x4003333
movq %r14, %rsi
xorl %edx, %edx
callq 0x5100
addl $-0x4, %ebp
movl %ebp, %edi
callq 0x521b
leaq 0x1b3d3(%rip), %rdi     # 0x473ef
xorl %eax, %eax
callq 0x3120
movl %eax, %r15d
movq 0x8(%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 0x16a4f