// File: /workspace/github_c_makefile_star2_O1/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 0x18bef
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 0x15f20
cltq
imulq 0x8(%rbp), %rax
cmpq $0x5, %rax
jae 0x18c25
xorl %r15d, %r15d
jmp 0x18c42
leaq 0x2dc60(%rip), %rdi     # 0x46856
callq 0x5c33
testq %rbx, %rbx
jne 0x18c0c
leaq 0x28b10(%rip), %rdi     # 0x41717
callq 0x5c33
testq %rbp, %rbp
jne 0x18c1d
leaq 0x28b19(%rip), %rdi     # 0x41731
callq 0x5c33
xorl %r15d, %r15d
jmp 0x190b2
movq 0x10(%rbp), %r15
addq %r13, %r15
movzwl 0x2(%rbp), %edi
callq 0x15f20
cltq
imulq 0x8(%rbp), %rax
addq %r15, %rax
movq %rax, %r15
leal -0x1(%r12), %eax
cmpl $0x15, %eax
ja 0x19051
leaq 0x2db15(%rip), %rcx     # 0x4676c
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 0x3ddb9
jmp 0x190ae
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 0x34d8e
jmp 0x190ae
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 0x3f0cf
jmp 0x190ae
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 0x3c701
jmp 0x190ae
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 0x31215
jmp 0x190ae
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 0x2bb82
jmp 0x190ae
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 0x3ffce
jmp 0x190ae
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 0x3caf1
jmp 0x190ae
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 0x1906d
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 0x35825
jmp 0x190ae
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 0x1906d
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 0x2d76e
jmp 0x190ae
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 0x3f7bb
jmp 0x190ae
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 0x1906d
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 0x1906d
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 0x2e5a5
jmp 0x190ae
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 0x307e4
jmp 0x190ae
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 0x3faa4
jmp 0x190ae
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 0x3f4b9
jmp 0x190ae
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 0x3216f
jmp 0x190ae
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 0x191ac
addq $0x20, %rsp
jmp 0x190b2
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 0x3fd2d
addq $0x30, %rsp
movq %rbx, %rdi
callq 0x30b0
testl %eax, %eax
jne 0x190ca
movq %rbx, %rdi
callq 0x31a0
testl %eax, %eax
je 0x190d2
movq %rbx, %rdi
callq 0x31b0
xorl %edi, %edi
callq 0x16b56
movq %rbx, %rdi
callq 0x3190
cmpq %r15, %rax
jbe 0x190fc
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