// File: /workspace/github_c_makefile_star2_O0/hfiguiere[P]exifprobe/maker_olympus.c
// Function: olympus2010_offset_value
void
olympus2010_offset_value(FILE *inptr,unsigned short byteorder,
    struct ifd_entry *entry_ptr,unsigned long fileoffset_base,
    struct image_summary *summary_entry,char *parent_name,char*prefix,
    int indent,int make,int model,int at_offset)
{
    unsigned long value_offset;
    unsigned long count;
    char *nameoftag;
    char *fulldirname = CNULL;
    int chpr = 0;

    if(entry_ptr)
    {
        nameoftag = maker_tagname(entry_ptr->tag,make,model); 
        if((PRINT_LONGNAMES))
        {
            fulldirname = splice(parent_name,".",nameoftag);
            nameoftag = fulldirname;
        }
        value_offset = fileoffset_base + entry_ptr->value;
        count = entry_ptr->count;
        switch(entry_ptr->tag)
        {
            case 0x0100:
            case 0x0101:
            case 0x0102:
            case 0x0202:
            case 0x0301:
            case 0x0302:
            case 0x1003:
            default:
                print_private_offset_value(inptr,byteorder,entry_ptr,
                                        fileoffset_base,0x2010,
                                        fulldirname,prefix,indent,
                                        make,model,at_offset);
                break;
        }
        if(fulldirname)
            free(fulldirname);
    }
    setcharsprinted(chpr);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x80, %rsp
movw %si, %ax
movl 0x30(%rbp), %esi
movl 0x28(%rbp), %esi
movl 0x20(%rbp), %esi
movl 0x18(%rbp), %esi
movq 0x10(%rbp), %rsi
movq %rdi, -0x18(%rbp)
movw %ax, -0x1a(%rbp)
movq %rdx, -0x28(%rbp)
movq %rcx, -0x30(%rbp)
movq %r8, -0x38(%rbp)
movq %r9, -0x40(%rbp)
movq $0x0, -0x60(%rbp)
movl $0x0, -0x64(%rbp)
cmpq $0x0, -0x28(%rbp)
je 0x45c7a
movq -0x28(%rbp), %rax
movw (%rax), %ax
movl 0x20(%rbp), %esi
movl 0x28(%rbp), %edx
movzwl %ax, %edi
callq 0x28160
movq %rax, -0x58(%rbp)
leaq 0x315ed(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x40, %rax
cmpq $0x0, %rax
je 0x45bc0
movq -0x40(%rbp), %rdi
movq -0x58(%rbp), %rdx
leaq 0x1edb3(%rip), %rsi     # 0x64962
callq 0x20960
movq %rax, -0x60(%rbp)
movq -0x60(%rbp), %rax
movq %rax, -0x58(%rbp)
movq -0x30(%rbp), %rax
movq -0x28(%rbp), %rcx
movq 0x10(%rcx), %rcx
addq %rcx, %rax
movq %rax, -0x48(%rbp)
movq -0x28(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x50(%rbp)
movq -0x28(%rbp), %rax
movzwl (%rax), %eax
movl %eax, -0x68(%rbp)
addl $0xffffff00, %eax       # imm = 0xFFFFFF00
subl $0x3, %eax
jb 0x45c1c
jmp 0x45bf5
movl -0x68(%rbp), %eax
subl $0x202, %eax            # imm = 0x202
je 0x45c1c
jmp 0x45c01
movl -0x68(%rbp), %eax
addl $0xfffffcff, %eax       # imm = 0xFFFFFCFF
subl $0x2, %eax
jb 0x45c1c
jmp 0x45c10
movl -0x68(%rbp), %eax
subl $0x1003, %eax           # imm = 0x1003
jne 0x45c1e
jmp 0x45c1c
jmp 0x45c1e
movq -0x18(%rbp), %rdi
movw -0x1a(%rbp), %si
movq -0x28(%rbp), %rdx
movq -0x30(%rbp), %rcx
movq -0x60(%rbp), %r9
movq 0x10(%rbp), %r14
movl 0x18(%rbp), %ebx
movl 0x20(%rbp), %r11d
movl 0x28(%rbp), %r10d
movl 0x30(%rbp), %eax
movl $0x2010, %r8d           # imm = 0x2010
movzwl %si, %esi
movq %r14, (%rsp)
movl %ebx, 0x8(%rsp)
movl %r11d, 0x10(%rsp)
movl %r10d, 0x18(%rsp)
movl %eax, 0x20(%rsp)
callq 0xd160
cmpq $0x0, -0x60(%rbp)
je 0x45c78
movq -0x60(%rbp), %rdi
callq 0x3040
jmp 0x45c7a
movl -0x64(%rbp), %edi
callq 0x1ff00
addq $0x80, %rsp
popq %rbx
popq %r14
popq %rbp
retq
nop