// File: /workspace/github_c_makefile_star2_O2/hfiguiere[P]exifprobe/print_maker.c
// Function: print_offset_makervalue
unsigned long
print_offset_makervalue(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 endoffset = 0L;

    if(inptr && entry_ptr)
    {
        if((value_type_size(entry_ptr->value_type) * entry_ptr->count) <= 4UL)
            endoffset = 0;
        else
            endoffset = fileoffset_base + entry_ptr->value + 
                (value_type_size(entry_ptr->value_type) * entry_ptr->count);

        switch(make)
        {
            case MAKER_AGFA:
                print_agfa_offset_makervalue(inptr,byteorder,entry_ptr,
                                            fileoffset_base,summary_entry,
											parent_name,prefix,indent,make,
											model,at_offset);
                break;
            case MAKER_ASAHI:   /* Pentax                             */
            case MAKER_PENTAX:  /* Pentax                             */
                print_asahi_offset_makervalue(inptr,byteorder,entry_ptr,
                                            fileoffset_base,summary_entry,
											parent_name,prefix,indent,make,
											model,at_offset);
                break;
            case MAKER_CANON:
                print_canon_offset_makervalue(inptr,byteorder,entry_ptr,
                                            fileoffset_base,summary_entry,
                                            parent_name,prefix,indent,make,
                                            model,at_offset);
                break;
            case MAKER_CASIO:
                print_casio_offset_makervalue(inptr,byteorder,entry_ptr,
                                            fileoffset_base,summary_entry,
											parent_name,prefix,indent,make,
											model,at_offset);
                break;
            case MAKER_EPSON:
                print_epson_offset_makervalue(inptr,byteorder,entry_ptr,
                                            fileoffset_base,summary_entry,
											parent_name,prefix,indent,make,
											model,at_offset);
                break;
            case MAKER_FUJIFILM:
                print_fujifilm_offset_makervalue(inptr,byteorder,entry_ptr,
                                            fileoffset_base,summary_entry,
                                            parent_name,prefix,indent,
                                            make,model,at_offset);
                break;
            case MAKER_HP:
                print_generic_offset_makervalue(inptr,byteorder,entry_ptr,
                                            fileoffset_base,parent_name,prefix,indent,
                                            make,model,at_offset);
                break;
            case MAKER_KODAK:
                print_generic_offset_makervalue(inptr,byteorder,entry_ptr,
                                            fileoffset_base,parent_name,prefix,indent,
                                            make,model,at_offset);
                break;
            case MAKER_KYOCERA:
                print_kyocera_offset_makervalue(inptr,byteorder,entry_ptr,
                                            fileoffset_base,summary_entry,
                                            parent_name,prefix,indent,
                                            make,model,at_offset);
                break;
            case MAKER_KONICA:
                print_konica_offset_makervalue(inptr,byteorder,entry_ptr,
                                            fileoffset_base,summary_entry,
                                            parent_name,prefix,indent,
                                            make,model,at_offset);
                break;
            case MAKER_LEICA:
                print_leica_offset_makervalue(inptr,byteorder,entry_ptr,
                                            fileoffset_base,summary_entry,
                                            parent_name,prefix,indent,
                                            make,model,at_offset);
                break;
            case MAKER_MINOLTA:
                print_minolta_offset_makervalue(inptr,byteorder,entry_ptr,
                                            fileoffset_base,summary_entry,
											parent_name,prefix,indent,make,
											model,at_offset);
                break;
            case MAKER_NIKON:
                print_nikon_offset_makervalue(inptr,byteorder,entry_ptr,
                                            fileoffset_base,summary_entry,
											parent_name,prefix,indent,make,
											model,at_offset);
                break;
            case MAKER_OLYMPUS:
                print_olympus_offset_makervalue(inptr,byteorder,entry_ptr,
                                            fileoffset_base,summary_entry,
											parent_name,prefix,indent,make,
											model,at_offset);
                break;
            case MAKER_PANASONIC:
                print_panasonic_offset_makervalue(inptr,byteorder,entry_ptr,
                                            fileoffset_base,summary_entry,
                                            parent_name,prefix,indent,
                                            make,model,at_offset);
                break;
            case MAKER_RICOH:
                print_generic_offset_makervalue(inptr,byteorder,entry_ptr,
                                            fileoffset_base,parent_name,prefix,indent,
                                            make,model,at_offset);
                break;
            case MAKER_SANYO:
                print_sanyo_offset_makervalue(inptr,byteorder,entry_ptr,
                                            fileoffset_base,summary_entry,
											parent_name,prefix,indent,make,
											model,at_offset);
                break;
            case MAKER_SIGMA:
                print_sigma_offset_makervalue(inptr,byteorder,entry_ptr,
                                            fileoffset_base,summary_entry,
                                            parent_name,prefix,indent,
                                            make,model,at_offset);
                break;
            case MAKER_SONY:
                print_sony_offset_makervalue(inptr,byteorder,entry_ptr,
                                            fileoffset_base,summary_entry,
                                            parent_name,prefix,indent,
                                            make,model,at_offset);
                break;
            case MAKER_TOSHIBA:
                print_toshiba_offset_makervalue(inptr,byteorder,entry_ptr,
                                            fileoffset_base,summary_entry,
                                            parent_name,prefix,indent,
                                            make,model,at_offset);
                break;
            case MAKER_TRAVELER:
                print_generic_offset_makervalue(inptr,byteorder,entry_ptr,
                                            fileoffset_base,parent_name,prefix,indent,
                                            make,model,at_offset);
                break;
            default:
                print_generic_offset_makervalue(inptr,byteorder,entry_ptr,
                                            fileoffset_base,parent_name,prefix,indent,
                                            make,model,at_offset);
                break;
        }
    }
    else
    {
        printred(" invalid call to print_offset_makervalue ");
        if(inptr == (FILE *)0)
            printred(" no input file pointer ");
        if(entry_ptr == (struct ifd_entry *)0)
            printred(" null entry pointer");
    }
    if(ferror(inptr) || feof(inptr))
        clearerr(inptr);
    (void)newline(0);
    if(ftell(inptr) > endoffset)
        endoffset = ftell(inptr);
    return(endoffset);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rcx, %r13
movq %rdx, %rbp
movq %rdi, %rbx
testq %rdi, %rdi
sete %al
testq %rdx, %rdx
sete %cl
orb %al, %cl
jne 0x17feb
movl %esi, %r14d
movq %r8, 0x28(%rsp)
movq %r9, 0x30(%rsp)
movl 0x90(%rsp), %eax
movq %rax, 0x8(%rsp)
movl 0x88(%rsp), %eax
movq %rax, 0x10(%rsp)
movl 0x80(%rsp), %r12d
movl 0x78(%rsp), %eax
movq %rax, 0x20(%rsp)
movq 0x70(%rsp), %rax
movq %rax, 0x18(%rsp)
movzwl 0x2(%rbp), %edi
callq 0x155c8
cltq
imulq 0x8(%rbp), %rax
cmpq $0x5, %rax
jae 0x18021
xorl %r15d, %r15d
jmp 0x1803e
leaq 0x2c854(%rip), %rdi     # 0x44846
callq 0x56e2
testq %rbx, %rbx
jne 0x18008
leaq 0x27714(%rip), %rdi     # 0x3f717
callq 0x56e2
testq %rbp, %rbp
jne 0x18019
leaq 0x2771d(%rip), %rdi     # 0x3f731
callq 0x56e2
xorl %r15d, %r15d
jmp 0x184ae
movq 0x10(%rbp), %r15
addq %r13, %r15
movzwl 0x2(%rbp), %edi
callq 0x155c8
cltq
imulq 0x8(%rbp), %rax
addq %r15, %rax
movq %rax, %r15
leal -0x1(%r12), %eax
cmpl $0x15, %eax
ja 0x1844d
leaq 0x2c709(%rip), %rcx     # 0x4475c
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
subq $0x8, %rsp
movzwl %r14w, %esi
movq %rbx, %rdi
movq %rbp, %rdx
movq %r13, %rcx
movq 0x30(%rsp), %r8
movq 0x38(%rsp), %r9
pushq 0x10(%rsp)
pushq 0x20(%rsp)
pushq %r12
pushq 0x40(%rsp)
pushq 0x40(%rsp)
callq 0x3c68d
jmp 0x184aa
subq $0x8, %rsp
movzwl %r14w, %esi
movq %rbx, %rdi
movq %rbp, %rdx
movq %r13, %rcx
movq 0x30(%rsp), %r8
movq 0x38(%rsp), %r9
pushq 0x10(%rsp)
pushq 0x20(%rsp)
pushq $0x11
pushq 0x40(%rsp)
pushq 0x40(%rsp)
callq 0x33bc4
jmp 0x184aa
subq $0x8, %rsp
movzwl %r14w, %esi
movq %rbx, %rdi
movq %rbp, %rdx
movq %r13, %rcx
movq 0x30(%rsp), %r8
movq 0x38(%rsp), %r9
pushq 0x10(%rsp)
pushq 0x20(%rsp)
pushq $0xe
pushq 0x40(%rsp)
pushq 0x40(%rsp)
callq 0x3d92e
jmp 0x184aa
subq $0x8, %rsp
movzwl %r14w, %esi
movq %rbx, %rdi
movq %rbp, %rdx
movq %r13, %rcx
movq 0x30(%rsp), %r8
movq 0x38(%rsp), %r9
pushq 0x10(%rsp)
pushq 0x20(%rsp)
pushq $0xb
pushq 0x40(%rsp)
pushq 0x40(%rsp)
callq 0x3b0a9
jmp 0x184aa
subq $0x8, %rsp
movzwl %r14w, %esi
movq %rbx, %rdi
movq %rbp, %rdx
movq %r13, %rcx
movq 0x30(%rsp), %r8
movq 0x38(%rsp), %r9
pushq 0x10(%rsp)
pushq 0x20(%rsp)
pushq $0x4
pushq 0x40(%rsp)
pushq 0x40(%rsp)
callq 0x3008e
jmp 0x184aa
subq $0x8, %rsp
movzwl %r14w, %esi
movq %rbx, %rdi
movq %rbp, %rdx
movq %r13, %rcx
movq 0x30(%rsp), %r8
movq 0x38(%rsp), %r9
pushq 0x10(%rsp)
pushq 0x20(%rsp)
pushq $0xc
pushq 0x40(%rsp)
pushq 0x40(%rsp)
callq 0x2acc2
jmp 0x184aa
subq $0x8, %rsp
movzwl %r14w, %esi
movq %rbx, %rdi
movq %rbp, %rdx
movq %r13, %rcx
movq 0x30(%rsp), %r8
movq 0x38(%rsp), %r9
pushq 0x10(%rsp)
pushq 0x20(%rsp)
pushq $0x9
pushq 0x40(%rsp)
pushq 0x40(%rsp)
callq 0x3e7bd
jmp 0x184aa
subq $0x8, %rsp
movzwl %r14w, %esi
movq %rbx, %rdi
movq %rbp, %rdx
movq %r13, %rcx
movq 0x30(%rsp), %r8
movq 0x38(%rsp), %r9
pushq 0x10(%rsp)
pushq 0x20(%rsp)
pushq $0x1
pushq 0x40(%rsp)
pushq 0x40(%rsp)
callq 0x3b455
jmp 0x184aa
movzwl %r14w, %esi
movq %rbx, %rdi
movq %rbp, %rdx
movq %r13, %rcx
movq 0x18(%rsp), %r9
pushq 0x8(%rsp)
pushq 0x18(%rsp)
pushq $0x10
jmp 0x18469
subq $0x8, %rsp
movzwl %r14w, %esi
movq %rbx, %rdi
movq %rbp, %rdx
movq %r13, %rcx
movq 0x30(%rsp), %r8
movq 0x38(%rsp), %r9
pushq 0x10(%rsp)
pushq 0x20(%rsp)
pushq $0x3
pushq 0x40(%rsp)
pushq 0x40(%rsp)
callq 0x34634
jmp 0x184aa
movzwl %r14w, %esi
movq %rbx, %rdi
movq %rbp, %rdx
movq %r13, %rcx
movq 0x18(%rsp), %r9
pushq 0x8(%rsp)
pushq 0x18(%rsp)
pushq $0x7
jmp 0x18469
subq $0x8, %rsp
movzwl %r14w, %esi
movq %rbx, %rdi
movq %rbp, %rdx
movq %r13, %rcx
movq 0x30(%rsp), %r8
movq 0x38(%rsp), %r9
pushq 0x10(%rsp)
pushq 0x20(%rsp)
pushq $0x12
pushq 0x40(%rsp)
pushq 0x40(%rsp)
callq 0x2c80e
jmp 0x184aa
subq $0x8, %rsp
movzwl %r14w, %esi
movq %rbx, %rdi
movq %rbp, %rdx
movq %r13, %rcx
movq 0x30(%rsp), %r8
movq 0x38(%rsp), %r9
pushq 0x10(%rsp)
pushq 0x20(%rsp)
pushq $0x15
pushq 0x40(%rsp)
pushq 0x40(%rsp)
callq 0x3dfd8
jmp 0x184aa
movzwl %r14w, %esi
movq %rbx, %rdi
movq %rbp, %rdx
movq %r13, %rcx
movq 0x18(%rsp), %r9
pushq 0x8(%rsp)
pushq 0x18(%rsp)
pushq $0x5
jmp 0x18469
movzwl %r14w, %esi
movq %rbx, %rdi
movq %rbp, %rdx
movq %r13, %rcx
movq 0x18(%rsp), %r9
pushq 0x8(%rsp)
pushq 0x18(%rsp)
pushq $0x16
jmp 0x18469
subq $0x8, %rsp
movzwl %r14w, %esi
movq %rbx, %rdi
movq %rbp, %rdx
movq %r13, %rcx
movq 0x30(%rsp), %r8
movq 0x38(%rsp), %r9
pushq 0x10(%rsp)
pushq 0x20(%rsp)
pushq $0xd
pushq 0x40(%rsp)
pushq 0x40(%rsp)
callq 0x2d5d0
jmp 0x184aa
subq $0x8, %rsp
movzwl %r14w, %esi
movq %rbx, %rdi
movq %rbp, %rdx
movq %r13, %rcx
movq 0x30(%rsp), %r8
movq 0x38(%rsp), %r9
pushq 0x10(%rsp)
pushq 0x20(%rsp)
pushq $0x6
pushq 0x40(%rsp)
pushq 0x40(%rsp)
callq 0x2f6bd
jmp 0x184aa
subq $0x8, %rsp
movzwl %r14w, %esi
movq %rbx, %rdi
movq %rbp, %rdx
movq %r13, %rcx
movq 0x30(%rsp), %r8
movq 0x38(%rsp), %r9
pushq 0x10(%rsp)
pushq 0x20(%rsp)
pushq $0x13
pushq 0x40(%rsp)
pushq 0x40(%rsp)
callq 0x3e2b2
jmp 0x184aa
subq $0x8, %rsp
movzwl %r14w, %esi
movq %rbx, %rdi
movq %rbp, %rdx
movq %r13, %rcx
movq 0x30(%rsp), %r8
movq 0x38(%rsp), %r9
pushq 0x10(%rsp)
pushq 0x20(%rsp)
pushq $0xa
pushq 0x40(%rsp)
pushq 0x40(%rsp)
callq 0x3dcfe
jmp 0x184aa
subq $0x8, %rsp
movzwl %r14w, %esi
movq %rbx, %rdi
movq %rbp, %rdx
movq %r13, %rcx
movq 0x30(%rsp), %r8
movq 0x38(%rsp), %r9
pushq 0x10(%rsp)
pushq 0x20(%rsp)
pushq $0x8
pushq 0x40(%rsp)
pushq 0x40(%rsp)
callq 0x30f92
jmp 0x184aa
movzwl %r14w, %esi
movq %rbx, %rdi
movq %rbp, %rdx
movq %r13, %rcx
movq 0x18(%rsp), %r9
pushq 0x8(%rsp)
pushq 0x18(%rsp)
pushq %r12
pushq 0x38(%rsp)
callq 0x185a8
addq $0x20, %rsp
jmp 0x184ae
subq $0x8, %rsp
movzwl %r14w, %esi
movq %rbx, %rdi
movq %rbp, %rdx
movq %r13, %rcx
movq 0x30(%rsp), %r8
movq 0x38(%rsp), %r9
pushq 0x10(%rsp)
pushq 0x20(%rsp)
pushq $0x14
pushq 0x40(%rsp)
pushq 0x40(%rsp)
callq 0x3e526
addq $0x30, %rsp
movq %rbx, %rdi
callq 0x30b0
testl %eax, %eax
jne 0x184c6
movq %rbx, %rdi
callq 0x31a0
testl %eax, %eax
je 0x184ce
movq %rbx, %rdi
callq 0x31b0
xorl %edi, %edi
callq 0x160f7
movq %rbx, %rdi
callq 0x3190
cmpq %r15, %rax
jbe 0x184f8
movq %rbx, %rdi
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x3190
movq %r15, %rax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq