// File: /workspace/github_c_makefile_star2_O1/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 0x28b76
movq %rsi, %r15
movq 0x40(%rsi), %r14
testq %r14, %r14
je 0x28b7d
leaq 0x2fb1f(%rip), %r12     # 0x58180
andq (%r12), %rdx
cmpq $0x62564f46, 0x8(%r15)  # imm = 0x62564F46
jne 0x28b46
testq %rdx, %rdx
je 0x28b70
movq %rdi, %rbx
movq (%r14), %rdx
movzwl 0xa(%r14), %ecx
movzwl 0x8(%r14), %r8d
leaq 0x211d5(%rip), %rdi     # 0x49868
movq %r14, %rsi
xorl %eax, %eax
callq 0x3120
movl %eax, %r15d
movzbl 0xc(%r14), %esi
leaq 0x211e1(%rip), %rdi     # 0x4988d
xorl %eax, %eax
callq 0x3120
movl %eax, %ebp
addl %r15d, %ebp
leaq 0x1934b(%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 0x286c2
movl %ebp, %edi
callq 0x16b56
movl %eax, %ebp
cmpw $0x0, 0x8(%r14)
je 0x28787
leaq 0x189e3(%rip), %rcx     # 0x410dc
movl $0x4003333, %edi        # imm = 0x4003333
movl $0x18, %esi
movl $0x4, %edx
callq 0x5605
movq (%r12), %rax
testl $0x3003, %eax           # imm = 0x3003
je 0x28763
testb $0x40, %al
je 0x2872c
leaq 0x21171(%rip), %rdi     # 0x49894
xorl %eax, %eax
callq 0x3120
addl %eax, %ebp
movl %ebp, %r15d
leaq 0x2116a(%rip), %rdi     # 0x498a0
xorl %eax, %eax
callq 0x3120
movl %eax, %ebp
addl %r15d, %ebp
testb $0x30, (%r12)
je 0x28763
movl $0xa, %edi
callq 0x5730
leaq 0x21e0e(%rip), %rdi     # 0x4a568
xorl %eax, %eax
callq 0x3120
addl %eax, %ebp
testb $0x30, (%r12)
je 0x2877e
movq 0x20(%r14), %rsi
leaq 0x18daf(%rip), %rdi     # 0x41524
xorl %eax, %eax
callq 0x3120
addl %eax, %ebp
movl %ebp, %edi
callq 0x16b56
movl %eax, %ebp
leaq 0x1894e(%rip), %rcx     # 0x410dc
movl $0x4003333, %edi        # imm = 0x4003333
movl $0x1c, %esi
movl $0x4, %edx
callq 0x5605
movq (%r12), %rax
testl $0x3003, %eax           # imm = 0x3003
je 0x287f8
testb $0x40, %al
je 0x287c1
leaq 0x210dc(%rip), %rdi     # 0x49894
xorl %eax, %eax
callq 0x3120
addl %eax, %ebp
movl %ebp, %r15d
leaq 0x256d7(%rip), %rdi     # 0x4dea2
xorl %eax, %eax
callq 0x3120
movl %eax, %ebp
addl %r15d, %ebp
testb $0x30, (%r12)
je 0x287f8
movl $0x8, %edi
callq 0x5730
leaq 0x21d79(%rip), %rdi     # 0x4a568
xorl %eax, %eax
callq 0x3120
addl %eax, %ebp
testb $0x30, (%r12)
je 0x28813
movq 0x28(%r14), %rsi
leaq 0x200eb(%rip), %rdi     # 0x488f5
xorl %eax, %eax
callq 0x3120
addl %eax, %ebp
movl %ebp, %edi
callq 0x16b56
movl %eax, %ebp
leaq 0x188b9(%rip), %rcx     # 0x410dc
movl $0x4003333, %edi        # imm = 0x4003333
movl $0x20, %esi
movl $0x4, %edx
callq 0x5605
movq (%r12), %rax
testl $0x3003, %eax           # imm = 0x3003
je 0x2888d
testb $0x40, %al
je 0x28856
leaq 0x21047(%rip), %rdi     # 0x49894
xorl %eax, %eax
callq 0x3120
addl %eax, %ebp
movl %ebp, %r15d
leaq 0x25654(%rip), %rdi     # 0x4deb4
xorl %eax, %eax
callq 0x3120
movl %eax, %ebp
addl %r15d, %ebp
testb $0x30, (%r12)
je 0x2888d
movl $0x7, %edi
callq 0x5730
leaq 0x21ce4(%rip), %rdi     # 0x4a568
xorl %eax, %eax
callq 0x3120
addl %eax, %ebp
testb $0x30, (%r12)
je 0x288a8
movq 0x30(%r14), %rsi
leaq 0x20056(%rip), %rdi     # 0x488f5
xorl %eax, %eax
callq 0x3120
addl %eax, %ebp
movl %ebp, %edi
callq 0x16b56
movl %eax, %ebp
leaq 0x18824(%rip), %rcx     # 0x410dc
movl $0x4003333, %edi        # imm = 0x4003333
movl $0x24, %esi
movl $0x4, %edx
callq 0x5605
movq (%r12), %rax
testl $0x3003, %eax           # imm = 0x3003
je 0x28922
testb $0x40, %al
je 0x288eb
leaq 0x20fb2(%rip), %rdi     # 0x49894
xorl %eax, %eax
callq 0x3120
addl %eax, %ebp
movl %ebp, %r15d
leaq 0x20fb4(%rip), %rdi     # 0x498a9
xorl %eax, %eax
callq 0x3120
movl %eax, %ebp
addl %r15d, %ebp
testb $0x30, (%r12)
je 0x28922
movl $0x5, %edi
callq 0x5730
leaq 0x21c4f(%rip), %rdi     # 0x4a568
xorl %eax, %eax
callq 0x3120
addl %eax, %ebp
testb $0x30, (%r12)
je 0x2893d
movq 0x38(%r14), %rsi
leaq 0x1ffc1(%rip), %rdi     # 0x488f5
xorl %eax, %eax
callq 0x3120
addl %eax, %ebp
movl %ebp, %edi
callq 0x16b56
movl %eax, %ebp
cmpw $0x0, 0x8(%r14)
je 0x28b11
leaq 0x18783(%rip), %rcx     # 0x410dc
movl $0x4003333, %edi        # imm = 0x4003333
movl $0x28, %esi
movl $0x4, %edx
callq 0x5605
movq (%r12), %rax
testl $0x3003, %eax           # imm = 0x3003
je 0x289c3
testb $0x40, %al
je 0x2898c
leaq 0x20f11(%rip), %rdi     # 0x49894
xorl %eax, %eax
callq 0x3120
addl %eax, %ebp
movl %ebp, %r15d
leaq 0x1a855(%rip), %rdi     # 0x431eb
xorl %eax, %eax
callq 0x3120
movl %eax, %ebp
addl %r15d, %ebp
testb $0x30, (%r12)
je 0x289c3
movl $0x6, %edi
callq 0x5730
leaq 0x21bae(%rip), %rdi     # 0x4a568
xorl %eax, %eax
callq 0x3120
addl %eax, %ebp
testb $0x30, (%r12)
je 0x289dd
addq $0x40, %r14
movq %r14, %rdi
movl $0x20, %esi
xorl %edx, %edx
callq 0x9448
movl %ebp, %edi
callq 0x16b56
movl %eax, %ebp
leaq 0x186ef(%rip), %rcx     # 0x410dc
movl $0x4003333, %edi        # imm = 0x4003333
movl $0x48, %esi
movl $0x4, %edx
callq 0x5605
movq (%r12), %rax
testl $0x3003, %eax           # imm = 0x3003
je 0x28a57
testb $0x40, %al
je 0x28a20
leaq 0x20e7d(%rip), %rdi     # 0x49894
xorl %eax, %eax
callq 0x3120
addl %eax, %ebp
movl %ebp, %r14d
leaq 0x20e8d(%rip), %rdi     # 0x498b7
xorl %eax, %eax
callq 0x3120
movl %eax, %ebp
addl %r14d, %ebp
testb $0x30, (%r12)
je 0x28a57
movl $0x1, %edi
callq 0x5730
leaq 0x21b1a(%rip), %rdi     # 0x4a568
xorl %eax, %eax
callq 0x3120
addl %eax, %ebp
testb $0x30, (%r12)
je 0x28a70
movl $0x20, %esi
movl $0x48, %edx
movq %rbx, %rdi
callq 0x798e
movl %ebp, %edi
callq 0x16b56
movl %eax, %ebp
leaq 0x1865c(%rip), %rcx     # 0x410dc
movl $0x4003333, %edi        # imm = 0x4003333
movl $0x68, %esi
movl $0x4, %edx
callq 0x5605
movq (%r12), %rax
testl $0x3003, %eax           # imm = 0x3003
je 0x28aea
testb $0x40, %al
je 0x28ab3
leaq 0x20dea(%rip), %rdi     # 0x49894
xorl %eax, %eax
callq 0x3120
addl %eax, %ebp
movl %ebp, %r14d
leaq 0x20e0c(%rip), %rdi     # 0x498c9
xorl %eax, %eax
callq 0x3120
movl %eax, %ebp
addl %r14d, %ebp
testb $0x30, (%r12)
je 0x28aea
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
callq 0x5730
leaq 0x21a87(%rip), %rdi     # 0x4a568
xorl %eax, %eax
callq 0x3120
addl %eax, %ebp
testb $0x30, (%r12)
je 0x28b08
movl $0x20, %esi
movl $0x68, %ecx
movq %rbx, %rdi
movl $0x4949, %edx           # imm = 0x4949
callq 0x8272
movl %ebp, %edi
callq 0x16b56
movl %eax, %ebp
leaq 0x185c4(%rip), %rcx     # 0x410dc
xorl %ebx, %ebx
movl $0x40000, %edi          # imm = 0x40000
movl $0xe7, %esi
xorl %edx, %edx
callq 0x5605
leaq 0x20daa(%rip), %rdi     # 0x498dc
xorl %eax, %eax
callq 0x3120
addl %eax, %ebp
movl %ebp, %edi
callq 0x16b56
movl %eax, %ebp
jmp 0x28b89
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
testq %rdx, %rdx
je 0x28b72
leaq 0x20d96(%rip), %rdi     # 0x498ed
xorl %eax, %eax
callq 0x3120
movl %eax, %ebp
movq 0x8(%r15), %rdi
movl $0x4, %esi
callq 0x546e
jmp 0x28b89
xorl %ebx, %ebx
xorl %ebp, %ebp
jmp 0x28b89
callq 0x3570
jmp 0x28b82
callq 0x354e
xorl %ebp, %ebp
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
movl %ebp, %edi
callq 0x16b56
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq