// File: /workspace/github_c_makefile_star2_O0/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
movq %rsp, %rbp
subq $0x80, %rsp
movw %si, %ax
movl 0x10(%rbp), %esi
movq %rdi, -0x8(%rbp)
movw %ax, -0xa(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq %r8, -0x28(%rbp)
movq %r9, -0x30(%rbp)
movl $0x0, -0x3c(%rbp)
movq $0x0, -0x48(%rbp)
cmpq $0x0, -0x18(%rbp)
je 0x4082c
leaq 0x37026(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x30, %rax
cmpq $0x0, %rax
je 0x4082c
movq -0x28(%rbp), %rdi
movq -0x30(%rbp), %rdx
leaq 0x247e8(%rip), %rsi     # 0x64962
callq 0x20960
movq %rax, -0x48(%rbp)
movq -0x18(%rbp), %rax
movq 0x10(%rax), %rax
movq -0x20(%rbp), %rcx
addq %rcx, %rax
movq %rax, -0x38(%rbp)
movq -0x18(%rbp), %rax
movw (%rax), %ax
subw $0x84, %ax
jne 0x40819
jmp 0x401a9
movq -0x8(%rbp), %rdi
movw -0xa(%rbp), %ax
movq -0x38(%rbp), %rdx
movzwl %ax, %esi
callq 0x4610
movq %rax, -0x78(%rbp)
movq -0x8(%rbp), %rdi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movzwl -0xa(%rbp), %esi
callq 0x4610
movq %rax, -0x80(%rbp)
cmpq $0x0, -0x78(%rbp)
jne 0x401e8
xorps %xmm0, %xmm0
movsd %xmm0, -0x58(%rbp)
jmp 0x40230
movq -0x78(%rbp), %xmm0
movaps 0x242ac(%rip), %xmm3    # 0x644a0
punpckldq %xmm3, %xmm0    # xmm0 = xmm0[0],xmm3[0],xmm0[1],xmm3[1]
movapd 0x242b0(%rip), %xmm2    # 0x644b0
subpd %xmm2, %xmm0
movaps %xmm0, %xmm1
unpckhpd %xmm0, %xmm0            # xmm0 = xmm0[1,1]
addsd %xmm1, %xmm0
movq -0x80(%rbp), %xmm1
punpckldq %xmm3, %xmm1    # xmm1 = xmm1[0],xmm3[0],xmm1[1],xmm3[1]
subpd %xmm2, %xmm1
movaps %xmm1, %xmm2
unpckhpd %xmm1, %xmm1            # xmm1 = xmm1[1,1]
addsd %xmm2, %xmm1
divsd %xmm1, %xmm0
movsd %xmm0, -0x58(%rbp)
movq -0x8(%rbp), %rdi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movzwl -0xa(%rbp), %esi
callq 0x4610
movq %rax, -0x78(%rbp)
movq -0x8(%rbp), %rdi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movzwl -0xa(%rbp), %esi
callq 0x4610
movq %rax, -0x80(%rbp)
cmpq $0x0, -0x78(%rbp)
jne 0x4026d
xorps %xmm0, %xmm0
movsd %xmm0, -0x60(%rbp)
jmp 0x402b5
movq -0x78(%rbp), %xmm0
movaps 0x24227(%rip), %xmm3    # 0x644a0
punpckldq %xmm3, %xmm0    # xmm0 = xmm0[0],xmm3[0],xmm0[1],xmm3[1]
movapd 0x2422b(%rip), %xmm2    # 0x644b0
subpd %xmm2, %xmm0
movaps %xmm0, %xmm1
unpckhpd %xmm0, %xmm0            # xmm0 = xmm0[1,1]
addsd %xmm1, %xmm0
movq -0x80(%rbp), %xmm1
punpckldq %xmm3, %xmm1    # xmm1 = xmm1[0],xmm3[0],xmm1[1],xmm3[1]
subpd %xmm2, %xmm1
movaps %xmm1, %xmm2
unpckhpd %xmm1, %xmm1            # xmm1 = xmm1[1,1]
addsd %xmm2, %xmm1
divsd %xmm1, %xmm0
movsd %xmm0, -0x60(%rbp)
movq -0x8(%rbp), %rdi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movzwl -0xa(%rbp), %esi
callq 0x4610
movq %rax, -0x78(%rbp)
movq -0x8(%rbp), %rdi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movzwl -0xa(%rbp), %esi
callq 0x4610
movq %rax, -0x80(%rbp)
cmpq $0x0, -0x78(%rbp)
jne 0x402f2
xorps %xmm0, %xmm0
movsd %xmm0, -0x68(%rbp)
jmp 0x4033a
movq -0x78(%rbp), %xmm0
movaps 0x241a2(%rip), %xmm3    # 0x644a0
punpckldq %xmm3, %xmm0    # xmm0 = xmm0[0],xmm3[0],xmm0[1],xmm3[1]
movapd 0x241a6(%rip), %xmm2    # 0x644b0
subpd %xmm2, %xmm0
movaps %xmm0, %xmm1
unpckhpd %xmm0, %xmm0            # xmm0 = xmm0[1,1]
addsd %xmm1, %xmm0
movq -0x80(%rbp), %xmm1
punpckldq %xmm3, %xmm1    # xmm1 = xmm1[0],xmm3[0],xmm1[1],xmm3[1]
subpd %xmm2, %xmm1
movaps %xmm1, %xmm2
unpckhpd %xmm1, %xmm1            # xmm1 = xmm1[1,1]
addsd %xmm2, %xmm1
divsd %xmm1, %xmm0
movsd %xmm0, -0x68(%rbp)
movq -0x8(%rbp), %rdi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movzwl -0xa(%rbp), %esi
callq 0x4610
movq %rax, -0x78(%rbp)
movq -0x8(%rbp), %rdi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movzwl -0xa(%rbp), %esi
callq 0x4610
movq %rax, -0x80(%rbp)
cmpq $0x0, -0x78(%rbp)
jne 0x40377
xorps %xmm0, %xmm0
movsd %xmm0, -0x70(%rbp)
jmp 0x403bf
movq -0x78(%rbp), %xmm0
movaps 0x2411d(%rip), %xmm3    # 0x644a0
punpckldq %xmm3, %xmm0    # xmm0 = xmm0[0],xmm3[0],xmm0[1],xmm3[1]
movapd 0x24121(%rip), %xmm2    # 0x644b0
subpd %xmm2, %xmm0
movaps %xmm0, %xmm1
unpckhpd %xmm0, %xmm0            # xmm0 = xmm0[1,1]
addsd %xmm1, %xmm0
movq -0x80(%rbp), %xmm1
punpckldq %xmm3, %xmm1    # xmm1 = xmm1[0],xmm3[0],xmm1[1],xmm3[1]
subpd %xmm2, %xmm1
movaps %xmm1, %xmm2
unpckhpd %xmm1, %xmm1            # xmm1 = xmm1[1,1]
addsd %xmm2, %xmm1
divsd %xmm1, %xmm0
movsd %xmm0, -0x70(%rbp)
leaq 0x36dba(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x40000, %rax          # imm = 0x40000
cmpq $0x0, %rax
je 0x40414
leaq 0x2c92a(%rip), %rdi     # 0x6cd06
movb $0x0, %al
callq 0x3110
movl %eax, -0x3c(%rbp)
movl -0x3c(%rbp), %edi
callq 0x1ef50
movl %eax, -0x3c(%rbp)
movl 0x10(%rbp), %eax
addl $0x20, %eax
movl %eax, 0x10(%rbp)
movq -0x38(%rbp), %rsi
movl 0x10(%rbp), %edx
movl $0x4003333, %edi        # imm = 0x4003333
leaq 0x23ccf(%rip), %rcx     # 0x640dc
callq 0x5ed0
jmp 0x40437
movl -0x3c(%rbp), %edi
callq 0x1ef50
movl %eax, -0x3c(%rbp)
movq -0x38(%rbp), %rsi
movl 0x10(%rbp), %edx
movl $0x4003333, %edi        # imm = 0x4003333
leaq 0x23caa(%rip), %rcx     # 0x640dc
callq 0x5ed0
leaq 0x36d42(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x4003333, %rax        # imm = 0x4003333
cmpq $0x0, %rax
je 0x40817
movl $0x1c, -0x4c(%rbp)
leaq 0x36d21(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x3003, %rax           # imm = 0x3003
cmpq $0x0, %rax
je 0x404bb
leaq 0x36d0b(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x40, %rax
cmpq $0x0, %rax
je 0x4049a
movq -0x48(%rbp), %rsi
leaq 0x276ec(%rip), %rdi     # 0x67b79
movb $0x0, %al
callq 0x3110
addl -0x3c(%rbp), %eax
movl %eax, -0x3c(%rbp)
movl -0x4c(%rbp), %esi
movl -0x4c(%rbp), %edx
leaq 0x2abf5(%rip), %rdi     # 0x6b09c
leaq 0x2c80a(%rip), %rcx     # 0x6ccb8
movb $0x0, %al
callq 0x3110
addl -0x3c(%rbp), %eax
movl %eax, -0x3c(%rbp)
leaq 0x36cbe(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x30, %rax
cmpq $0x0, %rax
je 0x404fb
movb $0x0, %al
callq 0xb9a0
movsd -0x58(%rbp), %xmm0
leaq 0x2c7c1(%rip), %rdi     # 0x6cca3
movb $0x1, %al
callq 0x3110
movb $0x0, %al
callq 0xb9d0
movl -0x3c(%rbp), %edi
callq 0x1ef50
movl %eax, -0x3c(%rbp)
movq -0x38(%rbp), %rsi
addq $0x8, %rsi
movl 0x10(%rbp), %edx
movl $0x4003333, %edi        # imm = 0x4003333
leaq 0x23bca(%rip), %rcx     # 0x640dc
callq 0x5ed0
leaq 0x36c62(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x3003, %rax           # imm = 0x3003
cmpq $0x0, %rax
je 0x4057a
leaq 0x36c4c(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x40, %rax
cmpq $0x0, %rax
je 0x40559
movq -0x48(%rbp), %rsi
leaq 0x2762d(%rip), %rdi     # 0x67b79
movb $0x0, %al
callq 0x3110
addl -0x3c(%rbp), %eax
movl %eax, -0x3c(%rbp)
movl -0x4c(%rbp), %esi
movl -0x4c(%rbp), %edx
leaq 0x2ab36(%rip), %rdi     # 0x6b09c
leaq 0x2c775(%rip), %rcx     # 0x6cce2
movb $0x0, %al
callq 0x3110
addl -0x3c(%rbp), %eax
movl %eax, -0x3c(%rbp)
leaq 0x36bff(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x30, %rax
cmpq $0x0, %rax
je 0x405c0
movb $0x0, %al
callq 0xb9a0
movsd -0x60(%rbp), %xmm0
leaq 0x2c702(%rip), %rdi     # 0x6cca3
movb $0x1, %al
callq 0x3110
addl -0x3c(%rbp), %eax
movl %eax, -0x3c(%rbp)
movb $0x0, %al
callq 0xb9d0
movl -0x3c(%rbp), %edi
callq 0x1ef50
movl %eax, -0x3c(%rbp)
movq -0x38(%rbp), %rsi
addq $0x10, %rsi
movl 0x10(%rbp), %edx
movl $0x4003333, %edi        # imm = 0x4003333
leaq 0x23b05(%rip), %rcx     # 0x640dc
callq 0x5ed0
leaq 0x36b9d(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x3003, %rax           # imm = 0x3003
cmpq $0x0, %rax
je 0x4063f
leaq 0x36b87(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x40, %rax
cmpq $0x0, %rax
je 0x4061e
movq -0x48(%rbp), %rsi
leaq 0x27568(%rip), %rdi     # 0x67b79
movb $0x0, %al
callq 0x3110
addl -0x3c(%rbp), %eax
movl %eax, -0x3c(%rbp)
movl -0x4c(%rbp), %esi
movl -0x4c(%rbp), %edx
leaq 0x2aa71(%rip), %rdi     # 0x6b09c
leaq 0x2c679(%rip), %rcx     # 0x6ccab
movb $0x0, %al
callq 0x3110
addl -0x3c(%rbp), %eax
movl %eax, -0x3c(%rbp)
leaq 0x36b3a(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x30, %rax
cmpq $0x0, %rax
je 0x406c1
movsd -0x68(%rbp), %xmm0
leaq 0x2c668(%rip), %rdi     # 0x6ccc7
movb $0x1, %al
callq 0x3110
addl -0x3c(%rbp), %eax
movl %eax, -0x3c(%rbp)
movsd -0x68(%rbp), %xmm1
movsd 0x28087(%rip), %xmm0    # 0x68700
divsd %xmm0, %xmm1
movsd 0x2807b(%rip), %xmm0    # 0x68700
callq 0x30d0
movsd %xmm0, -0x68(%rbp)
movb $0x0, %al
callq 0xb9a0
movsd -0x68(%rbp), %xmm0
leaq 0x285a3(%rip), %rdi     # 0x68c45
movb $0x1, %al
callq 0x3110
addl -0x3c(%rbp), %eax
movl %eax, -0x3c(%rbp)
movb $0x0, %al
callq 0xb9d0
movl -0x3c(%rbp), %edi
callq 0x1ef50
movl %eax, -0x3c(%rbp)
movq -0x38(%rbp), %rsi
addq $0x18, %rsi
movl 0x10(%rbp), %edx
movl $0x4003333, %edi        # imm = 0x4003333
leaq 0x23a04(%rip), %rcx     # 0x640dc
callq 0x5ed0
leaq 0x36a9c(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x3003, %rax           # imm = 0x3003
cmpq $0x0, %rax
je 0x40740
leaq 0x36a86(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x40, %rax
cmpq $0x0, %rax
je 0x4071f
movq -0x48(%rbp), %rsi
leaq 0x27467(%rip), %rdi     # 0x67b79
movb $0x0, %al
callq 0x3110
addl -0x3c(%rbp), %eax
movl %eax, -0x3c(%rbp)
movl -0x4c(%rbp), %esi
movl -0x4c(%rbp), %edx
leaq 0x2a970(%rip), %rdi     # 0x6b09c
leaq 0x2c5a2(%rip), %rcx     # 0x6ccd5
movb $0x0, %al
callq 0x3110
addl -0x3c(%rbp), %eax
movl %eax, -0x3c(%rbp)
leaq 0x36a39(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x30, %rax
cmpq $0x0, %rax
je 0x40815
movsd -0x70(%rbp), %xmm0
leaq 0x2c563(%rip), %rdi     # 0x6ccc7
movb $0x1, %al
callq 0x3110
addl -0x3c(%rbp), %eax
movl %eax, -0x3c(%rbp)
movsd -0x70(%rbp), %xmm1
movsd 0x27f82(%rip), %xmm0    # 0x68700
divsd %xmm0, %xmm1
movsd 0x27f76(%rip), %xmm0    # 0x68700
callq 0x30d0
movsd %xmm0, -0x70(%rbp)
movb $0x0, %al
callq 0xb9a0
movsd -0x70(%rbp), %xmm0
leaq 0x2849e(%rip), %rdi     # 0x68c45
movb $0x1, %al
callq 0x3110
addl -0x3c(%rbp), %eax
movl %eax, -0x3c(%rbp)
movb $0x0, %al
callq 0xb9d0
leaq 0x369be(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x40000, %rax          # imm = 0x40000
cmpq $0x0, %rax
je 0x40813
movl -0x3c(%rbp), %edi
callq 0x1ef50
movl %eax, -0x3c(%rbp)
movq -0x38(%rbp), %rsi
addq $0x1f, %rsi
movl $0x4003333, %edi        # imm = 0x4003333
xorl %edx, %edx
leaq 0x238ea(%rip), %rcx     # 0x640dc
callq 0x5ed0
movl 0x10(%rbp), %edi
subl $0x4, %edi
callq 0x60e0
leaq 0x2b416(%rip), %rdi     # 0x6bc1f
movb $0x0, %al
callq 0x3110
movl %eax, -0x3c(%rbp)
jmp 0x40815
jmp 0x40817
jmp 0x4081b
jmp 0x4081b
movq -0x48(%rbp), %rdi
callq 0x3040
movq $0x0, -0x48(%rbp)
movl -0x3c(%rbp), %edi
callq 0x1ff00
addq $0x80, %rsp
popq %rbp
retq
nopl (%rax)