// File: /workspace/github_c_makefile_star2_O2/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 0x27cd8
movq %rsi, %r15
movq 0x40(%rsi), %r14
testq %r14, %r14
je 0x27cf5
leaq 0x2f991(%rip), %r12     # 0x57180
andq (%r12), %rdx
cmpq $0x62564f46, 0x8(%r15)  # imm = 0x62564F46
jne 0x27869
testq %rdx, %rdx
je 0x27cd2
movq %rdi, %rbx
movq (%r14), %rdx
movzwl 0xa(%r14), %ecx
movzwl 0x8(%r14), %r8d
leaq 0x2003b(%rip), %rdi     # 0x47858
movq %r14, %rsi
xorl %eax, %eax
callq 0x3120
movl %eax, %r15d
movzbl 0xc(%r14), %esi
leaq 0x20047(%rip), %rdi     # 0x4787d
xorl %eax, %eax
callq 0x3120
movl %eax, %ebp
addl %r15d, %ebp
leaq 0x181c1(%rip), %r15     # 0x3fa0a
xorl %r13d, %r13d
cmpq $0x10, %r13
je 0x27896
movzbl 0xc(%r14,%r13), %esi
movq %r15, %rdi
xorl %eax, %eax
callq 0x3120
addl %eax, %ebp
incq %r13
jmp 0x2784c
pushq $-0x1
popq %rbx
testq %rdx, %rdx
je 0x27cd4
leaq 0x20061(%rip), %rdi     # 0x478dd
xorl %eax, %eax
callq 0x3120
movl %eax, %ebp
movq 0x8(%r15), %rdi
pushq $0x4
popq %rsi
callq 0x4f9c
jmp 0x27d1c
movl %ebp, %edi
callq 0x160f7
movl %eax, %ebp
cmpw $0x0, 0x8(%r14)
je 0x2793b
leaq 0x1782a(%rip), %rcx     # 0x3f0dc
pushq $0x18
popq %rsi
pushq $0x4
popq %rdx
movl $0x4003333, %edi        # imm = 0x4003333
callq 0x5100
movq (%r12), %rax
testw $0x3003, %ax            # imm = 0x3003
je 0x2791a
testb $0x40, %al
je 0x278e0
leaq 0x1ffad(%rip), %rdi     # 0x47884
xorl %eax, %eax
callq 0x3120
addl %eax, %ebp
movl %ebp, %r15d
leaq 0x1ffa6(%rip), %rdi     # 0x47890
xorl %eax, %eax
callq 0x3120
movl %eax, %ebp
addl %r15d, %ebp
movq (%r12), %rax
testb $0x30, %al
je 0x2791a
pushq $0xa
popq %rdi
callq 0x521b
leaq 0x20c4b(%rip), %rdi     # 0x48558
xorl %eax, %eax
callq 0x3120
addl %eax, %ebp
movq (%r12), %rax
testb $0x30, %al
je 0x27932
movq 0x20(%r14), %rsi
leaq 0x17bfb(%rip), %rdi     # 0x3f524
xorl %eax, %eax
callq 0x3120
addl %eax, %ebp
movl %ebp, %edi
callq 0x160f7
movl %eax, %ebp
leaq 0x1779a(%rip), %rcx     # 0x3f0dc
pushq $0x1c
popq %rsi
pushq $0x4
popq %rdx
movl $0x4003333, %edi        # imm = 0x4003333
callq 0x5100
movq (%r12), %rax
testw $0x3003, %ax            # imm = 0x3003
je 0x279aa
testb $0x40, %al
je 0x27970
leaq 0x1ff1d(%rip), %rdi     # 0x47884
xorl %eax, %eax
callq 0x3120
addl %eax, %ebp
movl %ebp, %r15d
leaq 0x24518(%rip), %rdi     # 0x4be92
xorl %eax, %eax
callq 0x3120
movl %eax, %ebp
addl %r15d, %ebp
movq (%r12), %rax
testb $0x30, %al
je 0x279aa
pushq $0x8
popq %rdi
callq 0x521b
leaq 0x20bbb(%rip), %rdi     # 0x48558
xorl %eax, %eax
callq 0x3120
addl %eax, %ebp
movq (%r12), %rax
testb $0x30, %al
je 0x279c2
movq 0x28(%r14), %rsi
leaq 0x1ef2c(%rip), %rdi     # 0x468e5
xorl %eax, %eax
callq 0x3120
addl %eax, %ebp
movl %ebp, %edi
callq 0x160f7
movl %eax, %ebp
leaq 0x1770a(%rip), %rcx     # 0x3f0dc
pushq $0x20
popq %rsi
pushq $0x4
popq %rdx
movl $0x4003333, %edi        # imm = 0x4003333
callq 0x5100
movq (%r12), %rax
testw $0x3003, %ax            # imm = 0x3003
je 0x27a3a
testb $0x40, %al
je 0x27a00
leaq 0x1fe8d(%rip), %rdi     # 0x47884
xorl %eax, %eax
callq 0x3120
addl %eax, %ebp
movl %ebp, %r15d
leaq 0x2449a(%rip), %rdi     # 0x4bea4
xorl %eax, %eax
callq 0x3120
movl %eax, %ebp
addl %r15d, %ebp
movq (%r12), %rax
testb $0x30, %al
je 0x27a3a
pushq $0x7
popq %rdi
callq 0x521b
leaq 0x20b2b(%rip), %rdi     # 0x48558
xorl %eax, %eax
callq 0x3120
addl %eax, %ebp
movq (%r12), %rax
testb $0x30, %al
je 0x27a52
movq 0x30(%r14), %rsi
leaq 0x1ee9c(%rip), %rdi     # 0x468e5
xorl %eax, %eax
callq 0x3120
addl %eax, %ebp
movl %ebp, %edi
callq 0x160f7
movl %eax, %ebp
leaq 0x1767a(%rip), %rcx     # 0x3f0dc
pushq $0x24
popq %rsi
pushq $0x4
popq %rdx
movl $0x4003333, %edi        # imm = 0x4003333
callq 0x5100
movq (%r12), %rax
testw $0x3003, %ax            # imm = 0x3003
je 0x27aca
testb $0x40, %al
je 0x27a90
leaq 0x1fdfd(%rip), %rdi     # 0x47884
xorl %eax, %eax
callq 0x3120
addl %eax, %ebp
movl %ebp, %r15d
leaq 0x1fdff(%rip), %rdi     # 0x47899
xorl %eax, %eax
callq 0x3120
movl %eax, %ebp
addl %r15d, %ebp
movq (%r12), %rax
testb $0x30, %al
je 0x27aca
pushq $0x5
popq %rdi
callq 0x521b
leaq 0x20a9b(%rip), %rdi     # 0x48558
xorl %eax, %eax
callq 0x3120
addl %eax, %ebp
movq (%r12), %rax
testb $0x30, %al
je 0x27ae2
movq 0x38(%r14), %rsi
leaq 0x1ee0c(%rip), %rdi     # 0x468e5
xorl %eax, %eax
callq 0x3120
addl %eax, %ebp
movl %ebp, %edi
callq 0x160f7
movl %eax, %ebp
cmpw $0x0, 0x8(%r14)
je 0x27c9d
leaq 0x175de(%rip), %rcx     # 0x3f0dc
pushq $0x28
popq %rsi
pushq $0x4
popq %rdx
movl $0x4003333, %edi        # imm = 0x4003333
callq 0x5100
movq (%r12), %rax
testw $0x3003, %ax            # imm = 0x3003
je 0x27b66
testb $0x40, %al
je 0x27b2c
leaq 0x1fd61(%rip), %rdi     # 0x47884
xorl %eax, %eax
callq 0x3120
addl %eax, %ebp
movl %ebp, %r15d
leaq 0x196b5(%rip), %rdi     # 0x411eb
xorl %eax, %eax
callq 0x3120
movl %eax, %ebp
addl %r15d, %ebp
movq (%r12), %rax
testb $0x30, %al
je 0x27b66
pushq $0x6
popq %rdi
callq 0x521b
leaq 0x209ff(%rip), %rdi     # 0x48558
xorl %eax, %eax
callq 0x3120
addl %eax, %ebp
movq (%r12), %rax
testb $0x30, %al
je 0x27b7b
addq $0x40, %r14
pushq $0x20
popq %rsi
movq %r14, %rdi
xorl %edx, %edx
callq 0x8e0f
movl %ebp, %edi
callq 0x160f7
movl %eax, %ebp
leaq 0x17551(%rip), %rcx     # 0x3f0dc
pushq $0x48
popq %rsi
pushq $0x4
popq %rdx
movl $0x4003333, %edi        # imm = 0x4003333
callq 0x5100
movq (%r12), %rax
testw $0x3003, %ax            # imm = 0x3003
je 0x27bf3
testb $0x40, %al
je 0x27bb9
leaq 0x1fcd4(%rip), %rdi     # 0x47884
xorl %eax, %eax
callq 0x3120
addl %eax, %ebp
movl %ebp, %r14d
leaq 0x1fce4(%rip), %rdi     # 0x478a7
xorl %eax, %eax
callq 0x3120
movl %eax, %ebp
addl %r14d, %ebp
movq (%r12), %rax
testb $0x30, %al
je 0x27bf3
pushq $0x1
popq %rdi
callq 0x521b
leaq 0x20972(%rip), %rdi     # 0x48558
xorl %eax, %eax
callq 0x3120
addl %eax, %ebp
movq (%r12), %rax
testb $0x30, %al
je 0x27c05
pushq $0x20
popq %rsi
pushq $0x48
popq %rdx
movq %rbx, %rdi
callq 0x73b2
movl %ebp, %edi
callq 0x160f7
movl %eax, %ebp
leaq 0x174c7(%rip), %rcx     # 0x3f0dc
pushq $0x68
popq %rsi
pushq $0x4
popq %rdx
movl $0x4003333, %edi        # imm = 0x4003333
callq 0x5100
movq (%r12), %rax
testw $0x3003, %ax            # imm = 0x3003
je 0x27c7d
testb $0x40, %al
je 0x27c43
leaq 0x1fc4a(%rip), %rdi     # 0x47884
xorl %eax, %eax
callq 0x3120
addl %eax, %ebp
movl %ebp, %r14d
leaq 0x1fc6c(%rip), %rdi     # 0x478b9
xorl %eax, %eax
callq 0x3120
movl %eax, %ebp
addl %r14d, %ebp
movq (%r12), %rax
testb $0x30, %al
je 0x27c7d
pushq $-0x1
popq %rdi
callq 0x521b
leaq 0x208e8(%rip), %rdi     # 0x48558
xorl %eax, %eax
callq 0x3120
addl %eax, %ebp
movq (%r12), %rax
testb $0x30, %al
je 0x27c94
pushq $0x20
popq %rsi
pushq $0x68
popq %rcx
movq %rbx, %rdi
movl $0x4949, %edx           # imm = 0x4949
callq 0x7caf
movl %ebp, %edi
callq 0x160f7
movl %eax, %ebp
leaq 0x17438(%rip), %rcx     # 0x3f0dc
xorl %ebx, %ebx
movl $0x40000, %edi          # imm = 0x40000
movl $0xe7, %esi
xorl %edx, %edx
callq 0x5100
leaq 0x1fc0e(%rip), %rdi     # 0x478cc
xorl %eax, %eax
callq 0x3120
addl %eax, %ebp
movl %ebp, %edi
callq 0x160f7
movl %eax, %ebp
jmp 0x27d1c
xorl %ebx, %ebx
xorl %ebp, %ebp
jmp 0x27d1c
movq 0x2f319(%rip), %rax     # 0x56ff8
movq (%rax), %rdi
leaq 0x3077f(%rip), %rax     # 0x58468
movq (%rax), %rdx
leaq 0x1fc2c(%rip), %rsi     # 0x4791f
jmp 0x27d10
movq 0x2f2fc(%rip), %rax     # 0x56ff8
movq (%rax), %rdi
leaq 0x30762(%rip), %rax     # 0x58468
movq (%rax), %rdx
leaq 0x1fbe5(%rip), %rsi     # 0x478f5
xorl %ebp, %ebp
xorl %eax, %eax
callq 0x3180
pushq $-0x1
popq %rbx
movl %ebp, %edi
callq 0x160f7
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq