// File: /workspace/github_c_makefile_star2_O2/hfiguiere[P]exifprobe/x3f.c
// Function: display_x3f_camf_header
unsigned long
display_x3f_camf_header(struct x3f_direntry *direntry,struct x3f_camf_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","Item1");
        if((PRINT_VALUE))
        {
            putindent(X3FTAGWIDTH - 5);
            chpr += printf(" = ");
        }
    }
    if((PRINT_VALUE))
        chpr += printf("%lu",header->item1);
    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","Item2");
        if((PRINT_VALUE))
        {
            putindent(X3FTAGWIDTH - 5);
            chpr += printf(" = ");
        }
    }
    if((PRINT_VALUE))
        chpr += printf("%lu",header->item2);
    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","Item3");
        if((PRINT_VALUE))
        {
            putindent(X3FTAGWIDTH - 5);
            chpr += printf(" = ");
        }
    }
    if((PRINT_VALUE))
        chpr += printf("%4.4s",(char *)&header->item3);
    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","Item4");
        if((PRINT_VALUE))
        {
            putindent(X3FTAGWIDTH - 5);
            chpr += printf(" = ");
        }
    }
    if((PRINT_VALUE))
        chpr += printf("%lu",header->item4);
    chpr = newline(chpr);

    /* Not sure how long the header is... CAMF is not described in    */
    /* the public X3F spec.                                           */

    /* Assume the header is same length as PROP for the purposes of   */
    /* dumping the data section                                       */
    return(direntry->data_offset + 24);
}

// 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 0x15112(%rip), %rcx     # 0x3f0dc
movl $0x4003333, %edi        # imm = 0x4003333
movl %r8d, %edx
callq 0x5100
leaq 0x2d1a2(%rip), %r15     # 0x57180
movq (%r15), %rax
testw $0x3003, %ax            # imm = 0x3003
je 0x2a046
xorl %ebp, %ebp
testb $0x40, %al
je 0x2a006
leaq 0x1db05(%rip), %rdi     # 0x47af9
movq 0x10(%rsp), %rsi
movl 0xc(%rsp), %edx
xorl %eax, %eax
callq 0x3120
movl %eax, %ebp
leaq 0x1508a(%rip), %rdi     # 0x3f097
leaq 0x1daf3(%rip), %rsi     # 0x47b07
xorl %eax, %eax
callq 0x3120
movl %eax, %r13d
addl %ebp, %r13d
movq (%r15), %rax
testb $0x30, %al
je 0x2a049
pushq $0x9
popq %rdi
callq 0x521b
leaq 0x1e521(%rip), %rdi     # 0x48558
xorl %eax, %eax
callq 0x3120
addl %eax, %r13d
movq (%r15), %rax
jmp 0x2a049
xorl %r13d, %r13d
testb $0x30, %al
je 0x2a061
leaq 0x1dabd(%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 0x15061(%rip), %rcx     # 0x3f0dc
movl $0x4003333, %edi        # imm = 0x4003333
movl %r12d, %edx
callq 0x5100
movq (%r15), %rax
testw $0x3003, %ax            # imm = 0x3003
je 0x2a0f0
testb $0x40, %al
je 0x2a0af
leaq 0x1da5d(%rip), %rdi     # 0x47af9
movq 0x10(%rsp), %rsi
movl 0xc(%rsp), %edx
xorl %eax, %eax
callq 0x3120
addl %eax, %r13d
movl %r13d, %ebp
leaq 0x14fde(%rip), %rdi     # 0x3f097
leaq 0x1723a(%rip), %rsi     # 0x412fa
xorl %eax, %eax
callq 0x3120
movl %eax, %r13d
addl %ebp, %r13d
movq (%r15), %rax
testb $0x30, %al
je 0x2a0f0
pushq $0xb
popq %rdi
callq 0x521b
leaq 0x1e475(%rip), %rdi     # 0x48558
xorl %eax, %eax
callq 0x3120
addl %eax, %r13d
movq (%r15), %rax
testb $0x30, %al
je 0x2a10f
movzwl 0xa(%r14), %esi
movzwl 0x8(%r14), %edx
leaq 0x1da12(%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 0x14fb3(%rip), %rcx     # 0x3f0dc
movl $0x4003333, %edi        # imm = 0x4003333
movl %r12d, %edx
callq 0x5100
movq (%r15), %rax
testw $0x3003, %ax            # imm = 0x3003
je 0x2a19e
testb $0x40, %al
je 0x2a15d
leaq 0x1d9af(%rip), %rdi     # 0x47af9
movq 0x10(%rsp), %rsi
movl 0xc(%rsp), %edx
xorl %eax, %eax
callq 0x3120
addl %eax, %r13d
movl %r13d, %ebp
leaq 0x14f30(%rip), %rdi     # 0x3f097
leaq 0x1da81(%rip), %rsi     # 0x47bef
xorl %eax, %eax
callq 0x3120
movl %eax, %r13d
addl %ebp, %r13d
movq (%r15), %rax
testb $0x30, %al
je 0x2a19e
pushq $0xd
popq %rdi
callq 0x521b
leaq 0x1e3c7(%rip), %rdi     # 0x48558
xorl %eax, %eax
callq 0x3120
addl %eax, %r13d
movq (%r15), %rax
testb $0x30, %al
je 0x2a1b7
movq 0x10(%r14), %rsi
leaq 0x1c738(%rip), %rdi     # 0x468e5
xorl %eax, %eax
callq 0x3120
addl %eax, %r13d
movl %r13d, %edi
callq 0x160f7
movl %eax, %r13d
movq 0x8(%rbx), %rsi
addq $0xc, %rsi
leaq 0x14f0b(%rip), %rcx     # 0x3f0dc
movl $0x4003333, %edi        # imm = 0x4003333
movl %r12d, %edx
callq 0x5100
movq (%r15), %rax
testw $0x3003, %ax            # imm = 0x3003
je 0x2a246
testb $0x40, %al
je 0x2a205
leaq 0x1d907(%rip), %rdi     # 0x47af9
movq 0x10(%rsp), %rsi
movl 0xc(%rsp), %edx
xorl %eax, %eax
callq 0x3120
addl %eax, %r13d
movl %r13d, %ebp
leaq 0x14e88(%rip), %rdi     # 0x3f097
leaq 0x1d9df(%rip), %rsi     # 0x47bf5
xorl %eax, %eax
callq 0x3120
movl %eax, %r13d
addl %ebp, %r13d
movq (%r15), %rax
testb $0x30, %al
je 0x2a246
pushq $0xd
popq %rdi
callq 0x521b
leaq 0x1e31f(%rip), %rdi     # 0x48558
xorl %eax, %eax
callq 0x3120
addl %eax, %r13d
movq (%r15), %rax
testb $0x30, %al
je 0x2a25f
movq 0x18(%r14), %rsi
leaq 0x1c690(%rip), %rdi     # 0x468e5
xorl %eax, %eax
callq 0x3120
addl %eax, %r13d
movl %r13d, %edi
callq 0x160f7
movl %eax, %r13d
movq 0x8(%rbx), %rsi
addq $0x10, %rsi
leaq 0x14e63(%rip), %rcx     # 0x3f0dc
movl $0x4003333, %edi        # imm = 0x4003333
movl %r12d, %edx
callq 0x5100
movq (%r15), %rax
testw $0x3003, %ax            # imm = 0x3003
je 0x2a2ee
testb $0x40, %al
je 0x2a2ad
leaq 0x1d85f(%rip), %rdi     # 0x47af9
movq 0x10(%rsp), %rsi
movl 0xc(%rsp), %edx
xorl %eax, %eax
callq 0x3120
addl %eax, %r13d
movl %r13d, %ebp
leaq 0x14de0(%rip), %rdi     # 0x3f097
leaq 0x1d93d(%rip), %rsi     # 0x47bfb
xorl %eax, %eax
callq 0x3120
movl %eax, %r13d
addl %ebp, %r13d
movq (%r15), %rax
testb $0x30, %al
je 0x2a2ee
pushq $0xd
popq %rdi
callq 0x521b
leaq 0x1e277(%rip), %rdi     # 0x48558
xorl %eax, %eax
callq 0x3120
addl %eax, %r13d
movq (%r15), %rax
testb $0x30, %al
je 0x2a307
leaq 0x20(%r14), %rsi
leaq 0x1d814(%rip), %rdi     # 0x47b11
xorl %eax, %eax
callq 0x3120
addl %eax, %r13d
movl %r13d, %edi
callq 0x160f7
movl %eax, %r13d
movq 0x8(%rbx), %rsi
addq $0x14, %rsi
leaq 0x14dbb(%rip), %rcx     # 0x3f0dc
movl $0x4003333, %edi        # imm = 0x4003333
movl %r12d, %edx
callq 0x5100
movq (%r15), %rax
testw $0x3003, %ax            # imm = 0x3003
je 0x2a396
testb $0x40, %al
je 0x2a355
leaq 0x1d7b7(%rip), %rdi     # 0x47af9
movq 0x10(%rsp), %rsi
movl 0xc(%rsp), %edx
xorl %eax, %eax
callq 0x3120
addl %eax, %r13d
movl %r13d, %ebp
leaq 0x14d38(%rip), %rdi     # 0x3f097
leaq 0x1d89b(%rip), %rsi     # 0x47c01
xorl %eax, %eax
callq 0x3120
movl %eax, %r13d
addl %ebp, %r13d
movq (%r15), %rax
testb $0x30, %al
je 0x2a396
pushq $0xd
popq %rdi
callq 0x521b
leaq 0x1e1cf(%rip), %rdi     # 0x48558
xorl %eax, %eax
callq 0x3120
addl %eax, %r13d
movq (%r15), %rax
testb $0x30, %al
je 0x2a3af
movq 0x28(%r14), %rsi
leaq 0x1c540(%rip), %rdi     # 0x468e5
xorl %eax, %eax
callq 0x3120
addl %eax, %r13d
movl %r13d, %edi
callq 0x160f7
movq 0x8(%rbx), %rax
addq $0x18, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq