// File: /workspace/github_c_makefile_star2_O0/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
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movl %ecx, -0x1c(%rbp)
movl %r8d, -0x20(%rbp)
movl $0x0, -0x24(%rbp)
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rsi
movl -0x20(%rbp), %edx
movl $0x4003333, %edi        # imm = 0x4003333
leaq 0x27f63(%rip), %rcx     # 0x640dc
callq 0x5ed0
leaq 0x3affb(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x3003, %rax           # imm = 0x3003
cmpq $0x0, %rax
je 0x3c212
leaq 0x3afe5(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x40, %rax
cmpq $0x0, %rax
je 0x3c1c3
movq -0x18(%rbp), %rsi
movl -0x1c(%rbp), %edx
leaq 0x3022b(%rip), %rdi     # 0x6c3e1
movb $0x0, %al
callq 0x3110
addl -0x24(%rbp), %eax
movl %eax, -0x24(%rbp)
leaq 0x27ecd(%rip), %rdi     # 0x64097
leaq 0x3021e(%rip), %rsi     # 0x6c3ef
movb $0x0, %al
callq 0x3110
addl -0x24(%rbp), %eax
movl %eax, -0x24(%rbp)
leaq 0x3af9b(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x30, %rax
cmpq $0x0, %rax
je 0x3c210
movl $0x9, %edi
callq 0x60e0
leaq 0x30b15(%rip), %rdi     # 0x6cd18
movb $0x0, %al
callq 0x3110
addl -0x24(%rbp), %eax
movl %eax, -0x24(%rbp)
jmp 0x3c212
leaq 0x3af67(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x30, %rax
cmpq $0x0, %rax
je 0x3c23e
movq -0x10(%rbp), %rsi
leaq 0x301c8(%rip), %rdi     # 0x6c3f9
movb $0x0, %al
callq 0x3110
addl -0x24(%rbp), %eax
movl %eax, -0x24(%rbp)
movl -0x24(%rbp), %edi
callq 0x1ef50
movl %eax, -0x24(%rbp)
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rsi
addq $0x4, %rsi
movl -0x20(%rbp), %edx
movl $0x4003333, %edi        # imm = 0x4003333
leaq 0x27e78(%rip), %rcx     # 0x640dc
callq 0x5ed0
leaq 0x3af10(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x3003, %rax           # imm = 0x3003
cmpq $0x0, %rax
je 0x3c2fd
leaq 0x3aefa(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x40, %rax
cmpq $0x0, %rax
je 0x3c2ae
movq -0x18(%rbp), %rsi
movl -0x1c(%rbp), %edx
leaq 0x30140(%rip), %rdi     # 0x6c3e1
movb $0x0, %al
callq 0x3110
addl -0x24(%rbp), %eax
movl %eax, -0x24(%rbp)
leaq 0x27de2(%rip), %rdi     # 0x64097
leaq 0x29846(%rip), %rsi     # 0x65b02
movb $0x0, %al
callq 0x3110
addl -0x24(%rbp), %eax
movl %eax, -0x24(%rbp)
leaq 0x3aeb0(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x30, %rax
cmpq $0x0, %rax
je 0x3c2fb
movl $0xb, %edi
callq 0x60e0
leaq 0x30a2a(%rip), %rdi     # 0x6cd18
movb $0x0, %al
callq 0x3110
addl -0x24(%rbp), %eax
movl %eax, -0x24(%rbp)
jmp 0x3c2fd
leaq 0x3ae7c(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x30, %rax
cmpq $0x0, %rax
je 0x3c335
movq -0x10(%rbp), %rax
movzwl 0xa(%rax), %esi
movq -0x10(%rbp), %rax
movzwl 0x8(%rax), %edx
leaq 0x300d7(%rip), %rdi     # 0x6c3ff
movb $0x0, %al
callq 0x3110
addl -0x24(%rbp), %eax
movl %eax, -0x24(%rbp)
movl -0x24(%rbp), %edi
callq 0x1ef50
movl %eax, -0x24(%rbp)
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rsi
addq $0x8, %rsi
movl -0x20(%rbp), %edx
movl $0x4003333, %edi        # imm = 0x4003333
leaq 0x27d81(%rip), %rcx     # 0x640dc
callq 0x5ed0
leaq 0x3ae19(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x3003, %rax           # imm = 0x3003
cmpq $0x0, %rax
je 0x3c3f4
leaq 0x3ae03(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x40, %rax
cmpq $0x0, %rax
je 0x3c3a5
movq -0x18(%rbp), %rsi
movl -0x1c(%rbp), %edx
leaq 0x30049(%rip), %rdi     # 0x6c3e1
movb $0x0, %al
callq 0x3110
addl -0x24(%rbp), %eax
movl %eax, -0x24(%rbp)
leaq 0x27ceb(%rip), %rdi     # 0x64097
leaq 0x2a26e(%rip), %rsi     # 0x66621
movb $0x0, %al
callq 0x3110
addl -0x24(%rbp), %eax
movl %eax, -0x24(%rbp)
leaq 0x3adb9(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x30, %rax
cmpq $0x0, %rax
je 0x3c3f2
movl $0x9, %edi
callq 0x60e0
leaq 0x30933(%rip), %rdi     # 0x6cd18
movb $0x0, %al
callq 0x3110
addl -0x24(%rbp), %eax
movl %eax, -0x24(%rbp)
jmp 0x3c3f4
leaq 0x3ad85(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x30, %rax
cmpq $0x0, %rax
je 0x3c478
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rsi
leaq 0x2ffee(%rip), %rdi     # 0x6c405
xorl %eax, %eax
callq 0x3110
movl %eax, %ecx
movl -0x24(%rbp), %eax
addl %ecx, %eax
movl %eax, -0x24(%rbp)
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0x30(%rbp)
subq $0x2, %rax
je 0x3c448
jmp 0x3c43c
movq -0x30(%rbp), %rax
subq $0x3, %rax
je 0x3c45e
jmp 0x3c474
leaq 0x2ffbc(%rip), %rdi     # 0x6c40b
movb $0x0, %al
callq 0x3110
addl -0x24(%rbp), %eax
movl %eax, -0x24(%rbp)
jmp 0x3c476
leaq 0x2ffb3(%rip), %rdi     # 0x6c418
movb $0x0, %al
callq 0x3110
addl -0x24(%rbp), %eax
movl %eax, -0x24(%rbp)
jmp 0x3c476
jmp 0x3c476
jmp 0x3c478
movl -0x24(%rbp), %edi
callq 0x1ef50
movl %eax, -0x24(%rbp)
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rsi
addq $0xc, %rsi
movl -0x20(%rbp), %edx
movl $0x4003333, %edi        # imm = 0x4003333
leaq 0x27c3e(%rip), %rcx     # 0x640dc
callq 0x5ed0
leaq 0x3acd6(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x3003, %rax           # imm = 0x3003
cmpq $0x0, %rax
je 0x3c537
leaq 0x3acc0(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x40, %rax
cmpq $0x0, %rax
je 0x3c4e8
movq -0x18(%rbp), %rsi
movl -0x1c(%rbp), %edx
leaq 0x2ff06(%rip), %rdi     # 0x6c3e1
movb $0x0, %al
callq 0x3110
addl -0x24(%rbp), %eax
movl %eax, -0x24(%rbp)
leaq 0x27ba8(%rip), %rdi     # 0x64097
leaq 0x2ff2f(%rip), %rsi     # 0x6c425
movb $0x0, %al
callq 0x3110
addl -0x24(%rbp), %eax
movl %eax, -0x24(%rbp)
leaq 0x3ac76(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x30, %rax
cmpq $0x0, %rax
je 0x3c535
movl $0x7, %edi
callq 0x60e0
leaq 0x307f0(%rip), %rdi     # 0x6cd18
movb $0x0, %al
callq 0x3110
addl -0x24(%rbp), %eax
movl %eax, -0x24(%rbp)
jmp 0x3c537
leaq 0x3ac42(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x30, %rax
cmpq $0x0, %rax
je 0x3c5f5
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rsi
leaq 0x2fea7(%rip), %rdi     # 0x6c405
xorl %eax, %eax
callq 0x3110
movl %eax, %ecx
movl -0x24(%rbp), %eax
addl %ecx, %eax
movl %eax, -0x24(%rbp)
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rax
addq $-0x3, %rax
movq %rax, -0x38(%rbp)
subq $0xf, %rax
ja 0x3c5f1
movq -0x38(%rbp), %rax
leaq 0x2fb70(%rip), %rcx     # 0x6c100
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq 0x2fe91(%rip), %rdi     # 0x6c431
movb $0x0, %al
callq 0x3110
addl -0x24(%rbp), %eax
movl %eax, -0x24(%rbp)
jmp 0x3c5f3
leaq 0x2fe91(%rip), %rdi     # 0x6c447
movb $0x0, %al
callq 0x3110
addl -0x24(%rbp), %eax
movl %eax, -0x24(%rbp)
jmp 0x3c5f3
leaq 0x2fe8f(%rip), %rdi     # 0x6c45b
movb $0x0, %al
callq 0x3110
addl -0x24(%rbp), %eax
movl %eax, -0x24(%rbp)
jmp 0x3c5f3
leaq 0x2fe95(%rip), %rdi     # 0x6c477
movb $0x0, %al
callq 0x3110
addl -0x24(%rbp), %eax
movl %eax, -0x24(%rbp)
jmp 0x3c5f3
jmp 0x3c5f3
jmp 0x3c5f5
movl -0x24(%rbp), %edi
callq 0x1ef50
movl %eax, -0x24(%rbp)
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rsi
addq $0x10, %rsi
movl -0x20(%rbp), %edx
movl $0x4003333, %edi        # imm = 0x4003333
leaq 0x27ac1(%rip), %rcx     # 0x640dc
callq 0x5ed0
leaq 0x3ab59(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x3003, %rax           # imm = 0x3003
cmpq $0x0, %rax
je 0x3c6b4
leaq 0x3ab43(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x40, %rax
cmpq $0x0, %rax
je 0x3c665
movq -0x18(%rbp), %rsi
movl -0x1c(%rbp), %edx
leaq 0x2fd89(%rip), %rdi     # 0x6c3e1
movb $0x0, %al
callq 0x3110
addl -0x24(%rbp), %eax
movl %eax, -0x24(%rbp)
leaq 0x27a2b(%rip), %rdi     # 0x64097
leaq 0x33faf(%rip), %rsi     # 0x70622
movb $0x0, %al
callq 0x3110
addl -0x24(%rbp), %eax
movl %eax, -0x24(%rbp)
leaq 0x3aaf9(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x30, %rax
cmpq $0x0, %rax
je 0x3c6b2
movl $0x8, %edi
callq 0x60e0
leaq 0x30673(%rip), %rdi     # 0x6cd18
movb $0x0, %al
callq 0x3110
addl -0x24(%rbp), %eax
movl %eax, -0x24(%rbp)
jmp 0x3c6b4
leaq 0x3aac5(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x30, %rax
cmpq $0x0, %rax
je 0x3c6e4
movq -0x10(%rbp), %rax
movq 0x20(%rax), %rsi
leaq 0x2e7c9(%rip), %rdi     # 0x6aea0
movb $0x0, %al
callq 0x3110
addl -0x24(%rbp), %eax
movl %eax, -0x24(%rbp)
movl -0x24(%rbp), %edi
callq 0x1ef50
movl %eax, -0x24(%rbp)
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rsi
addq $0x14, %rsi
movl -0x20(%rbp), %edx
movl $0x4003333, %edi        # imm = 0x4003333
leaq 0x279d2(%rip), %rcx     # 0x640dc
callq 0x5ed0
leaq 0x3aa6a(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x3003, %rax           # imm = 0x3003
cmpq $0x0, %rax
je 0x3c7a3
leaq 0x3aa54(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x40, %rax
cmpq $0x0, %rax
je 0x3c754
movq -0x18(%rbp), %rsi
movl -0x1c(%rbp), %edx
leaq 0x2fc9a(%rip), %rdi     # 0x6c3e1
movb $0x0, %al
callq 0x3110
addl -0x24(%rbp), %eax
movl %eax, -0x24(%rbp)
leaq 0x2793c(%rip), %rdi     # 0x64097
leaq 0x33ed2(%rip), %rsi     # 0x70634
movb $0x0, %al
callq 0x3110
addl -0x24(%rbp), %eax
movl %eax, -0x24(%rbp)
leaq 0x3aa0a(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x30, %rax
cmpq $0x0, %rax
je 0x3c7a1
movl $0x7, %edi
callq 0x60e0
leaq 0x30584(%rip), %rdi     # 0x6cd18
movb $0x0, %al
callq 0x3110
addl -0x24(%rbp), %eax
movl %eax, -0x24(%rbp)
jmp 0x3c7a3
leaq 0x3a9d6(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x30, %rax
cmpq $0x0, %rax
je 0x3c7d3
movq -0x10(%rbp), %rax
movq 0x28(%rax), %rsi
leaq 0x2e6da(%rip), %rdi     # 0x6aea0
movb $0x0, %al
callq 0x3110
addl -0x24(%rbp), %eax
movl %eax, -0x24(%rbp)
movl -0x24(%rbp), %edi
callq 0x1ef50
movl %eax, -0x24(%rbp)
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rsi
addq $0x18, %rsi
movl -0x20(%rbp), %edx
movl $0x4003333, %edi        # imm = 0x4003333
leaq 0x278e3(%rip), %rcx     # 0x640dc
callq 0x5ed0
leaq 0x3a97b(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x3003, %rax           # imm = 0x3003
cmpq $0x0, %rax
je 0x3c892
leaq 0x3a965(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x40, %rax
cmpq $0x0, %rax
je 0x3c843
movq -0x18(%rbp), %rsi
movl -0x1c(%rbp), %edx
leaq 0x2fbab(%rip), %rdi     # 0x6c3e1
movb $0x0, %al
callq 0x3110
addl -0x24(%rbp), %eax
movl %eax, -0x24(%rbp)
leaq 0x2784d(%rip), %rdi     # 0x64097
leaq 0x2fc3f(%rip), %rsi     # 0x6c490
movb $0x0, %al
callq 0x3110
addl -0x24(%rbp), %eax
movl %eax, -0x24(%rbp)
leaq 0x3a91b(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x30, %rax
cmpq $0x0, %rax
je 0x3c890
movl $0xb, %edi
callq 0x60e0
leaq 0x30495(%rip), %rdi     # 0x6cd18
movb $0x0, %al
callq 0x3110
addl -0x24(%rbp), %eax
movl %eax, -0x24(%rbp)
jmp 0x3c892
leaq 0x3a8e7(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x30, %rax
cmpq $0x0, %rax
je 0x3c8e3
movq -0x10(%rbp), %rax
movq 0x30(%rax), %rsi
leaq 0x2e5eb(%rip), %rdi     # 0x6aea0
movb $0x0, %al
callq 0x3110
addl -0x24(%rbp), %eax
movl %eax, -0x24(%rbp)
movq -0x10(%rbp), %rax
cmpq $0x0, 0x30(%rax)
jne 0x3c8e1
leaq 0x2fbc4(%rip), %rdi     # 0x6c498
movb $0x0, %al
callq 0x3110
addl -0x24(%rbp), %eax
movl %eax, -0x24(%rbp)
jmp 0x3c8e3
movl -0x24(%rbp), %edi
callq 0x1ef50
movl %eax, -0x24(%rbp)
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rax
addq $0x1c, %rax
addq $0x40, %rsp
popq %rbp
retq