// File: /workspace/github_c_makefile_star2_O3/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 0x2d71a
leaq 0x2afdc(%rip), %rax     # 0x58180
testb $0x30, (%rax)
je 0x2d71a
movq %rcx, %r14
movq %rdx, %rbx
movl %esi, %r13d
movq %rdi, %r12
movl 0x90(%rsp), %ebp
leaq 0x147d0(%rip), %rsi     # 0x41997
movq %r8, %rdi
movq %r9, %rdx
callq 0x17f99
xorl %r15d, %r15d
cmpw $0x84, (%rbx)
jne 0x2d712
movq %rax, 0x8(%rsp)
addq 0x10(%rbx), %r14
movzwl %r13w, %r15d
movq %r12, %rdi
movl %r15d, %esi
movq %r14, %rdx
callq 0x4707
movq %rax, %rbx
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movq %r12, %rdi
movl %r15d, %esi
callq 0x4707
xorpd %xmm0, %xmm0
movapd %xmm0, 0x20(%rsp)
xorpd %xmm2, %xmm2
testq %rbx, %rbx
je 0x2d267
movq %rbx, %xmm0
movq 0x142b2(%rip), %xmm3    # 0x414e0
punpckldq %xmm3, %xmm0    # xmm0 = xmm0[0],xmm3[0],xmm0[1],xmm3[1]
movapd 0x142b6(%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 0x4707
movq %rax, %rbx
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movq %r12, %rdi
movl %r15d, %esi
callq 0x4707
xorpd %xmm2, %xmm2
testq %rbx, %rbx
je 0x2d2df
movq %rbx, %xmm0
movq 0x1423a(%rip), %xmm3    # 0x414e0
punpckldq %xmm3, %xmm0    # xmm0 = xmm0[0],xmm3[0],xmm0[1],xmm3[1]
movapd 0x1423e(%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 0x4707
movq %rax, %rbx
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movq %r12, %rdi
movl %r15d, %esi
callq 0x4707
xorpd %xmm0, %xmm0
movapd %xmm0, 0x10(%rsp)
testq %rbx, %rbx
je 0x2d363
movq %rbx, %xmm0
movq 0x141bc(%rip), %xmm3    # 0x414e0
punpckldq %xmm3, %xmm0    # xmm0 = xmm0[0],xmm3[0],xmm0[1],xmm3[1]
movapd 0x141c0(%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 0x4707
movq %rax, %rbx
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movq %r12, %rdi
movl %r15d, %esi
callq 0x4707
testq %rbx, %rbx
je 0x2d3d7
movq %rbx, %xmm0
movq 0x14148(%rip), %xmm3    # 0x414e0
punpckldq %xmm3, %xmm0    # xmm0 = xmm0[0],xmm3[0],xmm0[1],xmm3[1]
movapd 0x1414c(%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)
leaq 0x2ada2(%rip), %r12     # 0x58180
testb $0x4, 0x2(%r12)
jne 0x2d3f2
xorl %edi, %edi
callq 0x1707a
movl %eax, %r15d
jmp 0x2d40d
leaq 0x1d19d(%rip), %rdi     # 0x4a596
xorl %eax, %eax
callq 0x3120
movl %eax, %edi
callq 0x1707a
movl %eax, %r15d
addl $0x20, %ebp
leaq 0x13cc8(%rip), %rcx     # 0x410dc
movl $0x4003333, %edi        # imm = 0x4003333
movq %r14, %rsi
movl %ebp, %edx
callq 0x55eb
movq (%r12), %rax
testl $0x4003333, %eax        # imm = 0x4003333
je 0x2d70d
testl $0x3003, %eax           # imm = 0x3003
je 0x2d479
testb $0x40, %al
je 0x2d453
leaq 0x180a7(%rip), %rdi     # 0x454eb
movq 0x8(%rsp), %rsi
xorl %eax, %eax
callq 0x3120
addl %eax, %r15d
leaq 0x1b6d7(%rip), %rdi     # 0x48b31
leaq 0x1d0e7(%rip), %rcx     # 0x4a548
movl $0x1c, %esi
movl $0x1c, %edx
xorl %eax, %eax
callq 0x3120
addl %eax, %r15d
movq (%r12), %rax
testb $0x30, %al
je 0x2d4aa
xorl %eax, %eax
callq 0x96fd
leaq 0x1d0a8(%rip), %rdi     # 0x4a533
movapd 0x30(%rsp), %xmm0
movb $0x1, %al
callq 0x3120
xorl %eax, %eax
callq 0x971e
movl %r15d, %edi
callq 0x1707a
movl %eax, %r15d
leaq 0x8(%r14), %rsi
leaq 0x13c27(%rip), %rcx     # 0x410dc
movl $0x4003333, %edi        # imm = 0x4003333
movl %ebp, %edx
callq 0x55eb
movq (%r12), %rax
testl $0x3003, %eax           # imm = 0x3003
je 0x2d50c
testb $0x40, %al
je 0x2d4e6
leaq 0x18014(%rip), %rdi     # 0x454eb
movq 0x8(%rsp), %rsi
xorl %eax, %eax
callq 0x3120
addl %eax, %r15d
leaq 0x1b644(%rip), %rdi     # 0x48b31
leaq 0x1d07e(%rip), %rcx     # 0x4a572
movl $0x1c, %esi
movl $0x1c, %edx
xorl %eax, %eax
callq 0x3120
addl %eax, %r15d
movq (%r12), %rax
testb $0x30, %al
je 0x2d540
xorl %eax, %eax
callq 0x96fd
leaq 0x1d015(%rip), %rdi     # 0x4a533
movapd 0x40(%rsp), %xmm0
movb $0x1, %al
callq 0x3120
addl %eax, %r15d
xorl %eax, %eax
callq 0x971e
movl %r15d, %edi
callq 0x1707a
movl %eax, %r15d
leaq 0x10(%r14), %rsi
leaq 0x13b91(%rip), %rcx     # 0x410dc
movl $0x4003333, %edi        # imm = 0x4003333
movl %ebp, %edx
callq 0x55eb
movq (%r12), %rax
testl $0x3003, %eax           # imm = 0x3003
je 0x2d5a2
testb $0x40, %al
je 0x2d57c
leaq 0x17f7e(%rip), %rdi     # 0x454eb
movq 0x8(%rsp), %rsi
xorl %eax, %eax
callq 0x3120
addl %eax, %r15d
leaq 0x1b5ae(%rip), %rdi     # 0x48b31
leaq 0x1cfb1(%rip), %rcx     # 0x4a53b
movl $0x1c, %esi
movl $0x1c, %edx
xorl %eax, %eax
callq 0x3120
addl %eax, %r15d
movq (%r12), %rax
testb $0x30, %al
je 0x2d605
leaq 0x1cfaa(%rip), %rdi     # 0x4a557
movaps 0x10(%rsp), %xmm0
movb $0x1, %al
callq 0x3120
addl %eax, %r15d
movapd 0x10(%rsp), %xmm0
mulsd 0x18c26(%rip), %xmm0    # 0x461f0
callq 0x3040
movsd %xmm0, 0x10(%rsp)
xorl %eax, %eax
callq 0x96fd
leaq 0x19152(%rip), %rdi     # 0x46735
movsd 0x10(%rsp), %xmm0
movb $0x1, %al
callq 0x3120
addl %eax, %r15d
xorl %eax, %eax
callq 0x971e
movl %r15d, %edi
callq 0x1707a
movl %eax, %r15d
leaq 0x18(%r14), %rsi
leaq 0x13acc(%rip), %rcx     # 0x410dc
movl $0x4003333, %edi        # imm = 0x4003333
movl %ebp, %edx
callq 0x55eb
movq (%r12), %rax
testl $0x3003, %eax           # imm = 0x3003
je 0x2d667
testb $0x40, %al
je 0x2d641
leaq 0x17eb9(%rip), %rdi     # 0x454eb
movq 0x8(%rsp), %rsi
xorl %eax, %eax
callq 0x3120
addl %eax, %r15d
leaq 0x1b4e9(%rip), %rdi     # 0x48b31
leaq 0x1cf16(%rip), %rcx     # 0x4a565
movl $0x1c, %esi
movl $0x1c, %edx
xorl %eax, %eax
callq 0x3120
addl %eax, %r15d
movq (%r12), %rax
testb $0x30, %al
je 0x2d70d
leaq 0x1cee1(%rip), %rdi     # 0x4a557
movaps 0x20(%rsp), %xmm0
movb $0x1, %al
callq 0x3120
movl %eax, %ebx
addl %r15d, %ebx
movapd 0x20(%rsp), %xmm0
mulsd 0x18b5b(%rip), %xmm0    # 0x461f0
callq 0x3040
movsd %xmm0, 0x20(%rsp)
xorl %eax, %eax
callq 0x96fd
leaq 0x19087(%rip), %rdi     # 0x46735
movsd 0x20(%rsp), %xmm0
movb $0x1, %al
callq 0x3120
movl %eax, %r15d
addl %ebx, %r15d
xorl %eax, %eax
callq 0x971e
testb $0x4, 0x2(%r12)
je 0x2d70d
movl %r15d, %edi
callq 0x1707a
addq $0x1f, %r14
leaq 0x139f9(%rip), %rcx     # 0x410dc
movl $0x4003333, %edi        # imm = 0x4003333
movq %r14, %rsi
xorl %edx, %edx
callq 0x55eb
addl $-0x4, %ebp
movl %ebp, %edi
callq 0x5716
leaq 0x1bd3c(%rip), %rdi     # 0x4943f
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 0x17a82