// File: /workspace/github_c_makefile_star2_O3/hfiguiere[P]exifprobe/x3f.c
// Function: print_x3f_header
int
print_x3f_header(FILE *inptr,struct fileheader *header,unsigned long section_id)
{
    struct x3f_header *x3fheader = NULL;
    int status = -1;
    int chpr = 0;
    int i;

    if(header)
    {
        if(header->x3f_header)
        {
            x3fheader = header->x3f_header;
            if(header->probe_magic == PROBE_X3FMAGIC)
            {
                if(Print_options & section_id)
                {
                    chpr += printf("%4.4s (%#06lx) version %2u.%-2u, id ",
                                            (char *)&(x3fheader->magic),
                                                    x3fheader->magic,
                                                    x3fheader->version_major,
                                                    x3fheader->version_minor);
                    chpr += printf("%#02x ",x3fheader->unique_id[0] & 0xff);
                    for(i = 0; i < 16; ++i)
                        chpr += printf("%02x ",x3fheader->unique_id[i] & 0xff);
                    chpr = newline(chpr);
                    if(x3fheader->version_minor >= 1)
                    {
                        print_tag_address(ENTRY,24,MEDIUMINDENT,"@");
                        if((PRINT_TAGINFO))
                        {
                            if((PRINT_LONGNAMES))
                                chpr += printf("X3f.Header.");
                            chpr += printf("MarkBits");
                            if((PRINT_VALUE))
                            {
                                putindent(X3FTAGWIDTH - 8);
                                chpr += printf(" = ");
                            }
                        }
                        if((PRINT_VALUE))
                            chpr += printf("%#06lx",x3fheader->mark_bits);
                        chpr = newline(chpr);
                    }
                    print_tag_address(ENTRY,28,MEDIUMINDENT,"@");
                    if((PRINT_TAGINFO))
                    {
                        if((PRINT_LONGNAMES))
                            chpr += printf("X3f.Header.");
                        chpr += printf("ImageWidth");
                        if((PRINT_VALUE))
                        {
                            putindent(X3FTAGWIDTH - 10);
                            chpr += printf(" = ");
                        }
                    }
                    if((PRINT_VALUE))
                        chpr += printf("%lu",x3fheader->image_width);
                    chpr = newline(chpr);
                    print_tag_address(ENTRY,32,MEDIUMINDENT,"@");
                    if((PRINT_TAGINFO))
                    {
                        if((PRINT_LONGNAMES))
                            chpr += printf("X3f.Header.");
                        chpr += printf("ImageHeight");
                        if((PRINT_VALUE))
                        {
                            putindent(X3FTAGWIDTH - 11);
                            chpr += printf(" = ");
                        }
                    }
                    if((PRINT_VALUE))
                        chpr += printf("%lu",x3fheader->image_height);
                    chpr = newline(chpr);
                    print_tag_address(ENTRY,36,MEDIUMINDENT,"@");
                    if((PRINT_TAGINFO))
                    {
                        if((PRINT_LONGNAMES))
                            chpr += printf("X3f.Header.");
                        chpr += printf("ImageRotation");
                        if((PRINT_VALUE))
                        {
                            putindent(X3FTAGWIDTH - 13);
                            chpr += printf(" = ");
                        }
                    }
                    if((PRINT_VALUE))
                        chpr += printf("%lu",x3fheader->image_rotation);
                    chpr = newline(chpr);
                    if(x3fheader->version_minor >= 1)
                    {
                        print_tag_address(ENTRY,40,MEDIUMINDENT,"@");
                        if((PRINT_TAGINFO))
                        {
                            if((PRINT_LONGNAMES))
                                chpr += printf("X3f.Header.");
                            chpr += printf("WhiteBalance");
                            if((PRINT_VALUE))
                            {
                                putindent(X3FTAGWIDTH - 12);
                                chpr += printf(" = ");
                            }
                        }
                        if((PRINT_VALUE))
                            show_string(x3fheader->white_balance,32,0);
                        chpr = newline(chpr);
                        print_tag_address(ENTRY,72,MEDIUMINDENT,"@");
                        if((PRINT_TAGINFO))
                        {
                            if((PRINT_LONGNAMES))
                                chpr += printf("X3f.Header.");
                            chpr += printf("ExtendedDataTypes");
                            if((PRINT_VALUE))
                            {
                                putindent(X3FTAGWIDTH - 17);
                                chpr += printf(" = ");
                            }
                        }
                        if((PRINT_VALUE))
                            print_ubytes(inptr,32,72);
                        chpr = newline(chpr);
                        print_tag_address(ENTRY,104,MEDIUMINDENT,"@");
                        if((PRINT_TAGINFO))
                        {
                            if((PRINT_LONGNAMES))
                                chpr += printf("X3f.Header.");
                            chpr += printf("ExtendedDataValues");
                            if((PRINT_VALUE))
                            {
                                putindent(X3FTAGWIDTH - 19);
                                chpr += printf(" = ");
                            }
                        }
                        if((PRINT_VALUE))
                            print_ulong(inptr,32,TIFF_INTEL,104);
                        chpr = newline(chpr);
                    }
                    print_tag_address(SECTION,104 + 128 - 1,0,"@");
                    chpr += printf("</END OF HEADER>");
                    chpr = newline(chpr);
                }
                status = 0;
            }
            else if(Print_options & section_id)
            {
                    chpr += printf("INVALID X3F IDENTIFIER ");
                    print_magic(header->probe_magic,4);
            }
        }
        else
            fprintf(stderr,"%s: null x3fheader to print_x3f_header()\n",Progname);
    }
    else
        fprintf(stderr,"%s: null fileheader to print_x3f_header()\n",Progname);
    chpr = newline(chpr);
    return(status);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
testq %rsi, %rsi
je 0x292f8
movq %rsi, %r15
movq 0x40(%rsi), %r14
testq %r14, %r14
je 0x292ff
leaq 0x2f3ab(%rip), %r12     # 0x58180
andq (%r12), %rdx
cmpq $0x62564f46, 0x8(%r15)  # imm = 0x62564F46
jne 0x292c8
testq %rdx, %rdx
je 0x292f2
movq %rdi, %rbx
movq (%r14), %rdx
movzwl 0xa(%r14), %ecx
movzwl 0x8(%r14), %r8d
leaq 0x20aa1(%rip), %rdi     # 0x498a8
movq %r14, %rsi
xorl %eax, %eax
callq 0x3120
movl %eax, %r15d
movzbl 0xc(%r14), %esi
leaq 0x20aad(%rip), %rdi     # 0x498cd
xorl %eax, %eax
callq 0x3120
movl %eax, %ebp
addl %r15d, %ebp
leaq 0x18bd7(%rip), %r15     # 0x41a0a
xorl %r13d, %r13d
movzbl 0xc(%r14,%r13), %esi
movq %r15, %rdi
xorl %eax, %eax
callq 0x3120
addl %eax, %ebp
incq %r13
cmpq $0x10, %r13
jne 0x28e36
movl %ebp, %edi
callq 0x1707a
movl %eax, %ebp
cmpw $0x0, 0x8(%r14)
je 0x28efd
leaq 0x1826f(%rip), %rcx     # 0x410dc
movl $0x4003333, %edi        # imm = 0x4003333
movl $0x18, %esi
movl $0x4, %edx
callq 0x55eb
movq (%r12), %rax
testl $0x3003, %eax           # imm = 0x3003
je 0x28edc
testb $0x40, %al
je 0x28ea0
leaq 0x20a3d(%rip), %rdi     # 0x498d4
xorl %eax, %eax
callq 0x3120
addl %eax, %ebp
movl %ebp, %r15d
leaq 0x20a36(%rip), %rdi     # 0x498e0
xorl %eax, %eax
callq 0x3120
movl %eax, %ebp
addl %r15d, %ebp
movq (%r12), %rax
testb $0x30, %al
je 0x28edc
movl $0xa, %edi
callq 0x5716
leaq 0x216d9(%rip), %rdi     # 0x4a5a8
xorl %eax, %eax
callq 0x3120
addl %eax, %ebp
movq (%r12), %rax
testb $0x30, %al
je 0x28ef4
movq 0x20(%r14), %rsi
leaq 0x18639(%rip), %rdi     # 0x41524
xorl %eax, %eax
callq 0x3120
addl %eax, %ebp
movl %ebp, %edi
callq 0x1707a
movl %eax, %ebp
leaq 0x181d8(%rip), %rcx     # 0x410dc
movl $0x4003333, %edi        # imm = 0x4003333
movl $0x1c, %esi
movl $0x4, %edx
callq 0x55eb
movq (%r12), %rax
testl $0x3003, %eax           # imm = 0x3003
je 0x28f73
testb $0x40, %al
je 0x28f37
leaq 0x209a6(%rip), %rdi     # 0x498d4
xorl %eax, %eax
callq 0x3120
addl %eax, %ebp
movl %ebp, %r15d
leaq 0x24fa1(%rip), %rdi     # 0x4dee2
xorl %eax, %eax
callq 0x3120
movl %eax, %ebp
addl %r15d, %ebp
movq (%r12), %rax
testb $0x30, %al
je 0x28f73
movl $0x8, %edi
callq 0x5716
leaq 0x21642(%rip), %rdi     # 0x4a5a8
xorl %eax, %eax
callq 0x3120
addl %eax, %ebp
movq (%r12), %rax
testb $0x30, %al
je 0x28f8b
movq 0x28(%r14), %rsi
leaq 0x1f9b3(%rip), %rdi     # 0x48935
xorl %eax, %eax
callq 0x3120
addl %eax, %ebp
movl %ebp, %edi
callq 0x1707a
movl %eax, %ebp
leaq 0x18141(%rip), %rcx     # 0x410dc
movl $0x4003333, %edi        # imm = 0x4003333
movl $0x20, %esi
movl $0x4, %edx
callq 0x55eb
movq (%r12), %rax
testl $0x3003, %eax           # imm = 0x3003
je 0x2900a
testb $0x40, %al
je 0x28fce
leaq 0x2090f(%rip), %rdi     # 0x498d4
xorl %eax, %eax
callq 0x3120
addl %eax, %ebp
movl %ebp, %r15d
leaq 0x24f1c(%rip), %rdi     # 0x4def4
xorl %eax, %eax
callq 0x3120
movl %eax, %ebp
addl %r15d, %ebp
movq (%r12), %rax
testb $0x30, %al
je 0x2900a
movl $0x7, %edi
callq 0x5716
leaq 0x215ab(%rip), %rdi     # 0x4a5a8
xorl %eax, %eax
callq 0x3120
addl %eax, %ebp
movq (%r12), %rax
testb $0x30, %al
je 0x29022
movq 0x30(%r14), %rsi
leaq 0x1f91c(%rip), %rdi     # 0x48935
xorl %eax, %eax
callq 0x3120
addl %eax, %ebp
movl %ebp, %edi
callq 0x1707a
movl %eax, %ebp
leaq 0x180aa(%rip), %rcx     # 0x410dc
movl $0x4003333, %edi        # imm = 0x4003333
movl $0x24, %esi
movl $0x4, %edx
callq 0x55eb
movq (%r12), %rax
testl $0x3003, %eax           # imm = 0x3003
je 0x290a1
testb $0x40, %al
je 0x29065
leaq 0x20878(%rip), %rdi     # 0x498d4
xorl %eax, %eax
callq 0x3120
addl %eax, %ebp
movl %ebp, %r15d
leaq 0x2087a(%rip), %rdi     # 0x498e9
xorl %eax, %eax
callq 0x3120
movl %eax, %ebp
addl %r15d, %ebp
movq (%r12), %rax
testb $0x30, %al
je 0x290a1
movl $0x5, %edi
callq 0x5716
leaq 0x21514(%rip), %rdi     # 0x4a5a8
xorl %eax, %eax
callq 0x3120
addl %eax, %ebp
movq (%r12), %rax
testb $0x30, %al
je 0x290b9
movq 0x38(%r14), %rsi
leaq 0x1f885(%rip), %rdi     # 0x48935
xorl %eax, %eax
callq 0x3120
addl %eax, %ebp
movl %ebp, %edi
callq 0x1707a
movl %eax, %ebp
cmpw $0x0, 0x8(%r14)
je 0x29293
leaq 0x18007(%rip), %rcx     # 0x410dc
movl $0x4003333, %edi        # imm = 0x4003333
movl $0x28, %esi
movl $0x4, %edx
callq 0x55eb
movq (%r12), %rax
testl $0x3003, %eax           # imm = 0x3003
je 0x29144
testb $0x40, %al
je 0x29108
leaq 0x207d5(%rip), %rdi     # 0x498d4
xorl %eax, %eax
callq 0x3120
addl %eax, %ebp
movl %ebp, %r15d
leaq 0x1a0d9(%rip), %rdi     # 0x431eb
xorl %eax, %eax
callq 0x3120
movl %eax, %ebp
addl %r15d, %ebp
movq (%r12), %rax
testb $0x30, %al
je 0x29144
movl $0x6, %edi
callq 0x5716
leaq 0x21471(%rip), %rdi     # 0x4a5a8
xorl %eax, %eax
callq 0x3120
addl %eax, %ebp
movq (%r12), %rax
testb $0x30, %al
je 0x2915b
addq $0x40, %r14
movq %r14, %rdi
movl $0x20, %esi
xorl %edx, %edx
callq 0x957f
movl %ebp, %edi
callq 0x1707a
movl %eax, %ebp
leaq 0x17f71(%rip), %rcx     # 0x410dc
movl $0x4003333, %edi        # imm = 0x4003333
movl $0x48, %esi
movl $0x4, %edx
callq 0x55eb
movq (%r12), %rax
testl $0x3003, %eax           # imm = 0x3003
je 0x291da
testb $0x40, %al
je 0x2919e
leaq 0x2073f(%rip), %rdi     # 0x498d4
xorl %eax, %eax
callq 0x3120
addl %eax, %ebp
movl %ebp, %r14d
leaq 0x2074f(%rip), %rdi     # 0x498f7
xorl %eax, %eax
callq 0x3120
movl %eax, %ebp
addl %r14d, %ebp
movq (%r12), %rax
testb $0x30, %al
je 0x291da
movl $0x1, %edi
callq 0x5716
leaq 0x213db(%rip), %rdi     # 0x4a5a8
xorl %eax, %eax
callq 0x3120
addl %eax, %ebp
movq (%r12), %rax
testb $0x30, %al
je 0x291f0
movl $0x20, %esi
movl $0x48, %edx
movq %rbx, %rdi
callq 0x79c7
movl %ebp, %edi
callq 0x1707a
movl %eax, %ebp
leaq 0x17edc(%rip), %rcx     # 0x410dc
movl $0x4003333, %edi        # imm = 0x4003333
movl $0x68, %esi
movl $0x4, %edx
callq 0x55eb
movq (%r12), %rax
testl $0x3003, %eax           # imm = 0x3003
je 0x2926f
testb $0x40, %al
je 0x29233
leaq 0x206aa(%rip), %rdi     # 0x498d4
xorl %eax, %eax
callq 0x3120
addl %eax, %ebp
movl %ebp, %r14d
leaq 0x206cc(%rip), %rdi     # 0x49909
xorl %eax, %eax
callq 0x3120
movl %eax, %ebp
addl %r14d, %ebp
movq (%r12), %rax
testb $0x30, %al
je 0x2926f
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
callq 0x5716
leaq 0x21346(%rip), %rdi     # 0x4a5a8
xorl %eax, %eax
callq 0x3120
addl %eax, %ebp
movq (%r12), %rax
testb $0x30, %al
je 0x2928a
movl $0x20, %esi
movl $0x68, %ecx
movq %rbx, %rdi
movl $0x4949, %edx           # imm = 0x4949
callq 0x8302
movl %ebp, %edi
callq 0x1707a
movl %eax, %ebp
leaq 0x17e42(%rip), %rcx     # 0x410dc
xorl %ebx, %ebx
movl $0x40000, %edi          # imm = 0x40000
movl $0xe7, %esi
xorl %edx, %edx
callq 0x55eb
leaq 0x20668(%rip), %rdi     # 0x4991c
xorl %eax, %eax
callq 0x3120
addl %eax, %ebp
movl %ebp, %edi
callq 0x1707a
movl %eax, %ebp
jmp 0x2930b
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
testq %rdx, %rdx
je 0x292f4
leaq 0x20654(%rip), %rdi     # 0x4992d
xorl %eax, %eax
callq 0x3120
movl %eax, %ebp
movq 0x8(%r15), %rdi
movl $0x4, %esi
callq 0x5454
jmp 0x2930b
xorl %ebx, %ebx
xorl %ebp, %ebp
jmp 0x2930b
callq 0x3570
jmp 0x29304
callq 0x354e
xorl %ebp, %ebp
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
movl %ebp, %edi
callq 0x1707a
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq