// File: /workspace/github_c_makefile_star2_O1/hfiguiere[P]exifprobe/x3f.c
// Function: display_x3f_imag_header
unsigned long
display_x3f_imag_header(struct x3f_direntry *direntry,struct x3f_imag_header *header,
                                                char *dirname,int entry_num,int indent)
{
    int chpr = 0;

    print_tag_address(ENTRY,direntry->data_offset,indent,"@");
    if((PRINT_TAGINFO))
    {
        if((PRINT_LONGNAMES))
            chpr += printf("%s:%d.Header.",dirname,entry_num);
        chpr += printf("%s","SectionId");
        if((PRINT_VALUE))
        {
            putindent(X3FTAGWIDTH - 9);
            chpr += printf(" = ");
        }
    }
    if((PRINT_VALUE))
        chpr += printf("%4.4s",(char *)&header->section_id);
    chpr = newline(chpr);
    
    print_tag_address(ENTRY,direntry->data_offset + 4,indent,"@");
    if((PRINT_TAGINFO))
    {
        if((PRINT_LONGNAMES))
            chpr += printf("%s:%d.Header.",dirname,entry_num);
        chpr += printf("%s","Version");
        if((PRINT_VALUE))
        {
            putindent(X3FTAGWIDTH - 7);
            chpr += printf(" = ");
        }
    }
    if((PRINT_VALUE))
        chpr += printf("%u.%u",header->version_major,header->version_minor);
    chpr = newline(chpr);

    print_tag_address(ENTRY,direntry->data_offset + 8,indent,"@");
    if((PRINT_TAGINFO))
    {
        if((PRINT_LONGNAMES))
            chpr += printf("%s:%d.Header.",dirname,entry_num);
        chpr += printf("%s","ImageType");
        if((PRINT_VALUE))
        {
            putindent(X3FTAGWIDTH - 9);
            chpr += printf(" = ");
        }
    }
    if((PRINT_VALUE))
    {
        chpr += printf("%-2lu",header->image_type);
        switch(header->image_type)
        {
            case 2: chpr += printf(" = \"Preview\""); break;
            case 3: chpr += printf(" = \"Primary\""); break;
            default: break;
        }
    }
    chpr = newline(chpr);

    print_tag_address(ENTRY,direntry->data_offset + 12,indent,"@");
    if((PRINT_TAGINFO))
    {
        if((PRINT_LONGNAMES))
            chpr += printf("%s:%d.Header.",dirname,entry_num);
        chpr += printf("%s","ImageFormat");
        if((PRINT_VALUE))
        {
            putindent(X3FTAGWIDTH - 11);
            chpr += printf(" = ");
        }
    }
    if((PRINT_VALUE))
    {
        chpr += printf("%-2lu",header->image_format);
        switch(header->image_format)
        {
            case 3: chpr += printf(" = \"uncompressed RGB\""); break;
            case 6: chpr += printf(" = \"compressed RAW\""); break;
            case 11: chpr += printf(" = \"Huffman compressed RGB\""); break;
            case 18: chpr += printf(" = \"JPEG compressed RGB\""); break;
            default: break;
        }
    }
    chpr = newline(chpr);

    print_tag_address(ENTRY,direntry->data_offset + 16,indent,"@");
    if((PRINT_TAGINFO))
    {
        if((PRINT_LONGNAMES))
            chpr += printf("%s:%d.Header.",dirname,entry_num);
        chpr += printf("%s","ImageWidth");
        if((PRINT_VALUE))
        {
            putindent(X3FTAGWIDTH - 10);
            chpr += printf(" = ");
        }
    }
    if((PRINT_VALUE))
        chpr += printf("%lu",header->image_width);
    chpr = newline(chpr);

    print_tag_address(ENTRY,direntry->data_offset + 20,indent,"@");
    if((PRINT_TAGINFO))
    {
        if((PRINT_LONGNAMES))
            chpr += printf("%s:%d.Header.",dirname,entry_num);
        chpr += printf("%s","ImageHeight");
        if((PRINT_VALUE))
        {
            putindent(X3FTAGWIDTH - 11);
            chpr += printf(" = ");
        }
    }
    if((PRINT_VALUE))
        chpr += printf("%lu",header->image_height);
    chpr = newline(chpr);

    print_tag_address(ENTRY,direntry->data_offset + 24,indent,"@");
    if((PRINT_TAGINFO))
    {
        if((PRINT_LONGNAMES))
            chpr += printf("%s:%d.Header.",dirname,entry_num);
        chpr += printf("%s","RowSize");
        if((PRINT_VALUE))
        {
            putindent(X3FTAGWIDTH - 7);
            chpr += printf(" = ");
        }
    }
    if((PRINT_VALUE))
    {
        chpr += printf("%lu",header->image_rowsize);
        if(header->image_rowsize == 0)
            chpr += printf(" = \"variable length\"");
    }
    chpr = newline(chpr);

    return(direntry->data_offset + 28);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %r8d, %r12d
movl %ecx, 0xc(%rsp)
movq %rdx, 0x10(%rsp)
movq %rsi, %r14
movq %rdi, %rbx
movq 0x8(%rdi), %rsi
leaq 0x174f4(%rip), %rcx     # 0x410dc
movl $0x4003333, %edi        # imm = 0x4003333
movl %r8d, %edx
callq 0x5605
leaq 0x2e584(%rip), %r15     # 0x58180
movq (%r15), %rax
testl $0x3003, %eax           # imm = 0x3003
je 0x29c63
xorl %ebp, %ebp
testb $0x40, %al
je 0x29c25
leaq 0x1fef6(%rip), %rdi     # 0x49b09
movq 0x10(%rsp), %rsi
movl 0xc(%rsp), %edx
xorl %eax, %eax
callq 0x3120
movl %eax, %ebp
leaq 0x1746b(%rip), %rdi     # 0x41097
leaq 0x1fee4(%rip), %rsi     # 0x49b17
xorl %eax, %eax
callq 0x3120
movl %eax, %r13d
addl %ebp, %r13d
testb $0x30, (%r15)
je 0x29c66
movl $0x9, %edi
callq 0x5730
leaq 0x20911(%rip), %rdi     # 0x4a568
xorl %eax, %eax
callq 0x3120
addl %eax, %r13d
jmp 0x29c66
xorl %r13d, %r13d
testb $0x30, (%r15)
je 0x29c80
leaq 0x1feae(%rip), %rdi     # 0x49b21
movq %r14, %rsi
xorl %eax, %eax
callq 0x3120
addl %eax, %r13d
movl %r13d, %edi
callq 0x16b56
movl %eax, %r13d
movq 0x8(%rbx), %rsi
addq $0x4, %rsi
leaq 0x17442(%rip), %rcx     # 0x410dc
movl $0x4003333, %edi        # imm = 0x4003333
movl %r12d, %edx
callq 0x5605
movq (%r15), %rax
testl $0x3003, %eax           # imm = 0x3003
je 0x29d0e
testb $0x40, %al
je 0x29ccf
leaq 0x1fe4d(%rip), %rdi     # 0x49b09
movq 0x10(%rsp), %rsi
movl 0xc(%rsp), %edx
xorl %eax, %eax
callq 0x3120
addl %eax, %r13d
movl %r13d, %ebp
leaq 0x173be(%rip), %rdi     # 0x41097
leaq 0x1961a(%rip), %rsi     # 0x432fa
xorl %eax, %eax
callq 0x3120
movl %eax, %r13d
addl %ebp, %r13d
testb $0x30, (%r15)
je 0x29d0e
movl $0xb, %edi
callq 0x5730
leaq 0x20864(%rip), %rdi     # 0x4a568
xorl %eax, %eax
callq 0x3120
addl %eax, %r13d
testb $0x30, (%r15)
je 0x29d2f
movzwl 0xa(%r14), %esi
movzwl 0x8(%r14), %edx
leaq 0x1fe02(%rip), %rdi     # 0x49b27
xorl %eax, %eax
callq 0x3120
addl %eax, %r13d
movl %r13d, %edi
callq 0x16b56
movl %eax, %r13d
movq 0x8(%rbx), %rsi
addq $0x8, %rsi
leaq 0x17393(%rip), %rcx     # 0x410dc
movl $0x4003333, %edi        # imm = 0x4003333
movl %r12d, %edx
callq 0x5605
movq (%r15), %rax
testl $0x3003, %eax           # imm = 0x3003
je 0x29dbd
testb $0x40, %al
je 0x29d7e
leaq 0x1fd9e(%rip), %rdi     # 0x49b09
movq 0x10(%rsp), %rsi
movl 0xc(%rsp), %edx
xorl %eax, %eax
callq 0x3120
addl %eax, %r13d
movl %r13d, %ebp
leaq 0x1730f(%rip), %rdi     # 0x41097
leaq 0x1a08a(%rip), %rsi     # 0x43e19
xorl %eax, %eax
callq 0x3120
movl %eax, %r13d
addl %ebp, %r13d
testb $0x30, (%r15)
je 0x29dbd
movl $0x9, %edi
callq 0x5730
leaq 0x207b5(%rip), %rdi     # 0x4a568
xorl %eax, %eax
callq 0x3120
addl %eax, %r13d
testb $0x30, (%r15)
je 0x29e02
movq 0x10(%r14), %rsi
leaq 0x1fd5f(%rip), %rdi     # 0x49b2d
xorl %eax, %eax
callq 0x3120
addl %eax, %r13d
movq 0x10(%r14), %rax
cmpq $0x2, %rax
je 0x29df1
cmpq $0x3, %rax
jne 0x29e02
leaq 0x1fd51(%rip), %rdi     # 0x49b40
jmp 0x29df8
leaq 0x1fd3b(%rip), %rdi     # 0x49b33
xorl %eax, %eax
callq 0x3120
addl %eax, %r13d
movl %r13d, %edi
callq 0x16b56
movl %eax, %r13d
movq 0x8(%rbx), %rsi
addq $0xc, %rsi
leaq 0x172c0(%rip), %rcx     # 0x410dc
movl $0x4003333, %edi        # imm = 0x4003333
movl %r12d, %edx
callq 0x5605
movq (%r15), %rax
testl $0x3003, %eax           # imm = 0x3003
je 0x29e90
testb $0x40, %al
je 0x29e51
leaq 0x1fccb(%rip), %rdi     # 0x49b09
movq 0x10(%rsp), %rsi
movl 0xc(%rsp), %edx
xorl %eax, %eax
callq 0x3120
addl %eax, %r13d
movl %r13d, %ebp
leaq 0x1723c(%rip), %rdi     # 0x41097
leaq 0x1fceb(%rip), %rsi     # 0x49b4d
xorl %eax, %eax
callq 0x3120
movl %eax, %r13d
addl %ebp, %r13d
testb $0x30, (%r15)
je 0x29e90
movl $0x7, %edi
callq 0x5730
leaq 0x206e2(%rip), %rdi     # 0x4a568
xorl %eax, %eax
callq 0x3120
addl %eax, %r13d
testb $0x30, (%r15)
je 0x29ef9
movq 0x18(%r14), %rsi
leaq 0x1fc8c(%rip), %rdi     # 0x49b2d
xorl %eax, %eax
callq 0x3120
addl %eax, %r13d
movq 0x18(%r14), %rax
cmpq $0xa, %rax
jg 0x29eca
cmpq $0x3, %rax
je 0x29edf
cmpq $0x6, %rax
jne 0x29ef9
leaq 0x1fca7(%rip), %rdi     # 0x49b6f
jmp 0x29eef
cmpq $0xb, %rax
je 0x29ee8
cmpq $0x12, %rax
jne 0x29ef9
leaq 0x1fcc2(%rip), %rdi     # 0x49b9f
jmp 0x29eef
leaq 0x1fc73(%rip), %rdi     # 0x49b59
jmp 0x29eef
leaq 0x1fc94(%rip), %rdi     # 0x49b83
xorl %eax, %eax
callq 0x3120
addl %eax, %r13d
movl %r13d, %edi
callq 0x16b56
movl %eax, %r13d
movq 0x8(%rbx), %rsi
addq $0x10, %rsi
leaq 0x171c9(%rip), %rcx     # 0x410dc
movl $0x4003333, %edi        # imm = 0x4003333
movl %r12d, %edx
callq 0x5605
movq (%r15), %rax
testl $0x3003, %eax           # imm = 0x3003
je 0x29f87
testb $0x40, %al
je 0x29f48
leaq 0x1fbd4(%rip), %rdi     # 0x49b09
movq 0x10(%rsp), %rsi
movl 0xc(%rsp), %edx
xorl %eax, %eax
callq 0x3120
addl %eax, %r13d
movl %r13d, %ebp
leaq 0x17145(%rip), %rdi     # 0x41097
leaq 0x23f49(%rip), %rsi     # 0x4dea2
xorl %eax, %eax
callq 0x3120
movl %eax, %r13d
addl %ebp, %r13d
testb $0x30, (%r15)
je 0x29f87
movl $0x8, %edi
callq 0x5730
leaq 0x205eb(%rip), %rdi     # 0x4a568
xorl %eax, %eax
callq 0x3120
addl %eax, %r13d
testb $0x30, (%r15)
je 0x29fa2
movq 0x20(%r14), %rsi
leaq 0x1e95d(%rip), %rdi     # 0x488f5
xorl %eax, %eax
callq 0x3120
addl %eax, %r13d
movl %r13d, %edi
callq 0x16b56
movl %eax, %r13d
movq 0x8(%rbx), %rsi
addq $0x14, %rsi
leaq 0x17120(%rip), %rcx     # 0x410dc
movl $0x4003333, %edi        # imm = 0x4003333
movl %r12d, %edx
callq 0x5605
movq (%r15), %rax
testl $0x3003, %eax           # imm = 0x3003
je 0x2a030
testb $0x40, %al
je 0x29ff1
leaq 0x1fb2b(%rip), %rdi     # 0x49b09
movq 0x10(%rsp), %rsi
movl 0xc(%rsp), %edx
xorl %eax, %eax
callq 0x3120
addl %eax, %r13d
movl %r13d, %ebp
leaq 0x1709c(%rip), %rdi     # 0x41097
leaq 0x23eb2(%rip), %rsi     # 0x4deb4
xorl %eax, %eax
callq 0x3120
movl %eax, %r13d
addl %ebp, %r13d
testb $0x30, (%r15)
je 0x2a030
movl $0x7, %edi
callq 0x5730
leaq 0x20542(%rip), %rdi     # 0x4a568
xorl %eax, %eax
callq 0x3120
addl %eax, %r13d
testb $0x30, (%r15)
je 0x2a04b
movq 0x28(%r14), %rsi
leaq 0x1e8b4(%rip), %rdi     # 0x488f5
xorl %eax, %eax
callq 0x3120
addl %eax, %r13d
movl %r13d, %edi
callq 0x16b56
movl %eax, %r13d
movq 0x8(%rbx), %rsi
addq $0x18, %rsi
leaq 0x17077(%rip), %rcx     # 0x410dc
movl $0x4003333, %edi        # imm = 0x4003333
movl %r12d, %edx
callq 0x5605
movq (%r15), %rax
testl $0x3003, %eax           # imm = 0x3003
je 0x2a0d9
testb $0x40, %al
je 0x2a09a
leaq 0x1fa82(%rip), %rdi     # 0x49b09
movq 0x10(%rsp), %rsi
movl 0xc(%rsp), %edx
xorl %eax, %eax
callq 0x3120
addl %eax, %r13d
movl %r13d, %ebp
leaq 0x16ff3(%rip), %rdi     # 0x41097
leaq 0x1fb0d(%rip), %rsi     # 0x49bb8
xorl %eax, %eax
callq 0x3120
movl %eax, %r13d
addl %ebp, %r13d
testb $0x30, (%r15)
je 0x2a0d9
movl $0xb, %edi
callq 0x5730
leaq 0x20499(%rip), %rdi     # 0x4a568
xorl %eax, %eax
callq 0x3120
addl %eax, %r13d
testb $0x30, (%r15)
je 0x2a10c
movq 0x30(%r14), %rsi
leaq 0x1e80b(%rip), %rdi     # 0x488f5
xorl %eax, %eax
callq 0x3120
addl %eax, %r13d
cmpq $0x0, 0x30(%r14)
jne 0x2a10c
leaq 0x1fabe(%rip), %rdi     # 0x49bc0
xorl %eax, %eax
callq 0x3120
addl %eax, %r13d
movl %r13d, %edi
callq 0x16b56
movq 0x8(%rbx), %rax
addq $0x1c, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq