// File: /workspace/github_c_makefile_star2_O2/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 0x162eb(%rip), %rcx     # 0x3f0dc
movl $0x4003333, %edi        # imm = 0x4003333
movl %r8d, %edx
callq 0x5100
leaq 0x2e37b(%rip), %r15     # 0x57180
movq (%r15), %rax
testw $0x3003, %ax            # imm = 0x3003
je 0x28e6d
xorl %ebp, %ebp
testb $0x40, %al
je 0x28e2d
leaq 0x1ecde(%rip), %rdi     # 0x47af9
movq 0x10(%rsp), %rsi
movl 0xc(%rsp), %edx
xorl %eax, %eax
callq 0x3120
movl %eax, %ebp
leaq 0x16263(%rip), %rdi     # 0x3f097
leaq 0x1eccc(%rip), %rsi     # 0x47b07
xorl %eax, %eax
callq 0x3120
movl %eax, %r13d
addl %ebp, %r13d
movq (%r15), %rax
testb $0x30, %al
je 0x28e70
pushq $0x9
popq %rdi
callq 0x521b
leaq 0x1f6fa(%rip), %rdi     # 0x48558
xorl %eax, %eax
callq 0x3120
addl %eax, %r13d
movq (%r15), %rax
jmp 0x28e70
xorl %r13d, %r13d
testb $0x30, %al
je 0x28e88
leaq 0x1ec96(%rip), %rdi     # 0x47b11
movq %r14, %rsi
xorl %eax, %eax
callq 0x3120
addl %eax, %r13d
movl %r13d, %edi
callq 0x160f7
movl %eax, %r13d
movq 0x8(%rbx), %rsi
addq $0x4, %rsi
leaq 0x1623a(%rip), %rcx     # 0x3f0dc
movl $0x4003333, %edi        # imm = 0x4003333
movl %r12d, %edx
callq 0x5100
movq (%r15), %rax
testw $0x3003, %ax            # imm = 0x3003
je 0x28f17
testb $0x40, %al
je 0x28ed6
leaq 0x1ec36(%rip), %rdi     # 0x47af9
movq 0x10(%rsp), %rsi
movl 0xc(%rsp), %edx
xorl %eax, %eax
callq 0x3120
addl %eax, %r13d
movl %r13d, %ebp
leaq 0x161b7(%rip), %rdi     # 0x3f097
leaq 0x18413(%rip), %rsi     # 0x412fa
xorl %eax, %eax
callq 0x3120
movl %eax, %r13d
addl %ebp, %r13d
movq (%r15), %rax
testb $0x30, %al
je 0x28f17
pushq $0xb
popq %rdi
callq 0x521b
leaq 0x1f64e(%rip), %rdi     # 0x48558
xorl %eax, %eax
callq 0x3120
addl %eax, %r13d
movq (%r15), %rax
testb $0x30, %al
je 0x28f36
movzwl 0xa(%r14), %esi
movzwl 0x8(%r14), %edx
leaq 0x1ebeb(%rip), %rdi     # 0x47b17
xorl %eax, %eax
callq 0x3120
addl %eax, %r13d
movl %r13d, %edi
callq 0x160f7
movl %eax, %r13d
movq 0x8(%rbx), %rsi
addq $0x8, %rsi
leaq 0x1618c(%rip), %rcx     # 0x3f0dc
movl $0x4003333, %edi        # imm = 0x4003333
movl %r12d, %edx
callq 0x5100
movq (%r15), %rax
testw $0x3003, %ax            # imm = 0x3003
je 0x28fc5
testb $0x40, %al
je 0x28f84
leaq 0x1eb88(%rip), %rdi     # 0x47af9
movq 0x10(%rsp), %rsi
movl 0xc(%rsp), %edx
xorl %eax, %eax
callq 0x3120
addl %eax, %r13d
movl %r13d, %ebp
leaq 0x16109(%rip), %rdi     # 0x3f097
leaq 0x18e84(%rip), %rsi     # 0x41e19
xorl %eax, %eax
callq 0x3120
movl %eax, %r13d
addl %ebp, %r13d
movq (%r15), %rax
testb $0x30, %al
je 0x28fc5
pushq $0x9
popq %rdi
callq 0x521b
leaq 0x1f5a0(%rip), %rdi     # 0x48558
xorl %eax, %eax
callq 0x3120
addl %eax, %r13d
movq (%r15), %rax
testb $0x30, %al
je 0x29008
movq 0x10(%r14), %rsi
leaq 0x1eb49(%rip), %rdi     # 0x47b1d
xorl %eax, %eax
callq 0x3120
addl %eax, %r13d
movq 0x10(%r14), %rax
cmpq $0x2, %rax
je 0x28ff7
cmpq $0x3, %rax
jne 0x29008
leaq 0x1eb3b(%rip), %rdi     # 0x47b30
jmp 0x28ffe
leaq 0x1eb25(%rip), %rdi     # 0x47b23
xorl %eax, %eax
callq 0x3120
addl %eax, %r13d
movl %r13d, %edi
callq 0x160f7
movl %eax, %r13d
movq 0x8(%rbx), %rsi
addq $0xc, %rsi
leaq 0x160ba(%rip), %rcx     # 0x3f0dc
movl $0x4003333, %edi        # imm = 0x4003333
movl %r12d, %edx
callq 0x5100
movq (%r15), %rax
testw $0x3003, %ax            # imm = 0x3003
je 0x29097
testb $0x40, %al
je 0x29056
leaq 0x1eab6(%rip), %rdi     # 0x47af9
movq 0x10(%rsp), %rsi
movl 0xc(%rsp), %edx
xorl %eax, %eax
callq 0x3120
addl %eax, %r13d
movl %r13d, %ebp
leaq 0x16037(%rip), %rdi     # 0x3f097
leaq 0x1ead6(%rip), %rsi     # 0x47b3d
xorl %eax, %eax
callq 0x3120
movl %eax, %r13d
addl %ebp, %r13d
movq (%r15), %rax
testb $0x30, %al
je 0x29097
pushq $0x7
popq %rdi
callq 0x521b
leaq 0x1f4ce(%rip), %rdi     # 0x48558
xorl %eax, %eax
callq 0x3120
addl %eax, %r13d
movq (%r15), %rax
testb $0x30, %al
je 0x290f8
movq 0x18(%r14), %rsi
leaq 0x1ea77(%rip), %rdi     # 0x47b1d
xorl %eax, %eax
callq 0x3120
addl %eax, %r13d
movq 0x18(%r14), %rax
cmpq $0x3, %rax
je 0x290e7
cmpq $0x12, %rax
je 0x290d5
cmpq $0xb, %rax
je 0x290de
cmpq $0x6, %rax
jne 0x290f8
leaq 0x1ea8c(%rip), %rdi     # 0x47b5f
jmp 0x290ee
leaq 0x1eab3(%rip), %rdi     # 0x47b8f
jmp 0x290ee
leaq 0x1ea8e(%rip), %rdi     # 0x47b73
jmp 0x290ee
leaq 0x1ea5b(%rip), %rdi     # 0x47b49
xorl %eax, %eax
callq 0x3120
addl %eax, %r13d
movl %r13d, %edi
callq 0x160f7
movl %eax, %r13d
movq 0x8(%rbx), %rsi
addq $0x10, %rsi
leaq 0x15fca(%rip), %rcx     # 0x3f0dc
movl $0x4003333, %edi        # imm = 0x4003333
movl %r12d, %edx
callq 0x5100
movq (%r15), %rax
testw $0x3003, %ax            # imm = 0x3003
je 0x29187
testb $0x40, %al
je 0x29146
leaq 0x1e9c6(%rip), %rdi     # 0x47af9
movq 0x10(%rsp), %rsi
movl 0xc(%rsp), %edx
xorl %eax, %eax
callq 0x3120
addl %eax, %r13d
movl %r13d, %ebp
leaq 0x15f47(%rip), %rdi     # 0x3f097
leaq 0x22d3b(%rip), %rsi     # 0x4be92
xorl %eax, %eax
callq 0x3120
movl %eax, %r13d
addl %ebp, %r13d
movq (%r15), %rax
testb $0x30, %al
je 0x29187
pushq $0x8
popq %rdi
callq 0x521b
leaq 0x1f3de(%rip), %rdi     # 0x48558
xorl %eax, %eax
callq 0x3120
addl %eax, %r13d
movq (%r15), %rax
testb $0x30, %al
je 0x291a0
movq 0x20(%r14), %rsi
leaq 0x1d74f(%rip), %rdi     # 0x468e5
xorl %eax, %eax
callq 0x3120
addl %eax, %r13d
movl %r13d, %edi
callq 0x160f7
movl %eax, %r13d
movq 0x8(%rbx), %rsi
addq $0x14, %rsi
leaq 0x15f22(%rip), %rcx     # 0x3f0dc
movl $0x4003333, %edi        # imm = 0x4003333
movl %r12d, %edx
callq 0x5100
movq (%r15), %rax
testw $0x3003, %ax            # imm = 0x3003
je 0x2922f
testb $0x40, %al
je 0x291ee
leaq 0x1e91e(%rip), %rdi     # 0x47af9
movq 0x10(%rsp), %rsi
movl 0xc(%rsp), %edx
xorl %eax, %eax
callq 0x3120
addl %eax, %r13d
movl %r13d, %ebp
leaq 0x15e9f(%rip), %rdi     # 0x3f097
leaq 0x22ca5(%rip), %rsi     # 0x4bea4
xorl %eax, %eax
callq 0x3120
movl %eax, %r13d
addl %ebp, %r13d
movq (%r15), %rax
testb $0x30, %al
je 0x2922f
pushq $0x7
popq %rdi
callq 0x521b
leaq 0x1f336(%rip), %rdi     # 0x48558
xorl %eax, %eax
callq 0x3120
addl %eax, %r13d
movq (%r15), %rax
testb $0x30, %al
je 0x29248
movq 0x28(%r14), %rsi
leaq 0x1d6a7(%rip), %rdi     # 0x468e5
xorl %eax, %eax
callq 0x3120
addl %eax, %r13d
movl %r13d, %edi
callq 0x160f7
movl %eax, %r13d
movq 0x8(%rbx), %rsi
addq $0x18, %rsi
leaq 0x15e7a(%rip), %rcx     # 0x3f0dc
movl $0x4003333, %edi        # imm = 0x4003333
movl %r12d, %edx
callq 0x5100
movq (%r15), %rax
testw $0x3003, %ax            # imm = 0x3003
je 0x292d7
testb $0x40, %al
je 0x29296
leaq 0x1e876(%rip), %rdi     # 0x47af9
movq 0x10(%rsp), %rsi
movl 0xc(%rsp), %edx
xorl %eax, %eax
callq 0x3120
addl %eax, %r13d
movl %r13d, %ebp
leaq 0x15df7(%rip), %rdi     # 0x3f097
leaq 0x1e901(%rip), %rsi     # 0x47ba8
xorl %eax, %eax
callq 0x3120
movl %eax, %r13d
addl %ebp, %r13d
movq (%r15), %rax
testb $0x30, %al
je 0x292d7
pushq $0xb
popq %rdi
callq 0x521b
leaq 0x1f28e(%rip), %rdi     # 0x48558
xorl %eax, %eax
callq 0x3120
addl %eax, %r13d
movq (%r15), %rax
testb $0x30, %al
je 0x29308
movq 0x30(%r14), %rsi
leaq 0x1d5ff(%rip), %rdi     # 0x468e5
xorl %eax, %eax
callq 0x3120
addl %eax, %r13d
cmpq $0x0, 0x30(%r14)
jne 0x29308
leaq 0x1e8b2(%rip), %rdi     # 0x47bb0
xorl %eax, %eax
callq 0x3120
addl %eax, %r13d
movl %r13d, %edi
callq 0x160f7
movq 0x8(%rbx), %rax
addq $0x1c, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq