// File: /workspace/github_c_makefile_star2_O1/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 0x162fe(%rip), %rcx     # 0x410dc
movl $0x4003333, %edi        # imm = 0x4003333
movl %r8d, %edx
callq 0x5605
leaq 0x2d38e(%rip), %r15     # 0x58180
movq (%r15), %rax
testl $0x3003, %eax           # imm = 0x3003
je 0x2ae59
xorl %ebp, %ebp
testb $0x40, %al
je 0x2ae1b
leaq 0x1ed00(%rip), %rdi     # 0x49b09
movq 0x10(%rsp), %rsi
movl 0xc(%rsp), %edx
xorl %eax, %eax
callq 0x3120
movl %eax, %ebp
leaq 0x16275(%rip), %rdi     # 0x41097
leaq 0x1ecee(%rip), %rsi     # 0x49b17
xorl %eax, %eax
callq 0x3120
movl %eax, %r13d
addl %ebp, %r13d
testb $0x30, (%r15)
je 0x2ae5c
movl $0x9, %edi
callq 0x5730
leaq 0x1f71b(%rip), %rdi     # 0x4a568
xorl %eax, %eax
callq 0x3120
addl %eax, %r13d
jmp 0x2ae5c
xorl %r13d, %r13d
testb $0x30, (%r15)
je 0x2ae76
leaq 0x1ecb8(%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 0x1624c(%rip), %rcx     # 0x410dc
movl $0x4003333, %edi        # imm = 0x4003333
movl %r12d, %edx
callq 0x5605
movq (%r15), %rax
testl $0x3003, %eax           # imm = 0x3003
je 0x2af04
testb $0x40, %al
je 0x2aec5
leaq 0x1ec57(%rip), %rdi     # 0x49b09
movq 0x10(%rsp), %rsi
movl 0xc(%rsp), %edx
xorl %eax, %eax
callq 0x3120
addl %eax, %r13d
movl %r13d, %ebp
leaq 0x161c8(%rip), %rdi     # 0x41097
leaq 0x18424(%rip), %rsi     # 0x432fa
xorl %eax, %eax
callq 0x3120
movl %eax, %r13d
addl %ebp, %r13d
testb $0x30, (%r15)
je 0x2af04
movl $0xb, %edi
callq 0x5730
leaq 0x1f66e(%rip), %rdi     # 0x4a568
xorl %eax, %eax
callq 0x3120
addl %eax, %r13d
testb $0x30, (%r15)
je 0x2af25
movzwl 0xa(%r14), %esi
movzwl 0x8(%r14), %edx
leaq 0x1ec0c(%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 0x1619d(%rip), %rcx     # 0x410dc
movl $0x4003333, %edi        # imm = 0x4003333
movl %r12d, %edx
callq 0x5605
movq (%r15), %rax
testl $0x3003, %eax           # imm = 0x3003
je 0x2afb3
testb $0x40, %al
je 0x2af74
leaq 0x1eba8(%rip), %rdi     # 0x49b09
movq 0x10(%rsp), %rsi
movl 0xc(%rsp), %edx
xorl %eax, %eax
callq 0x3120
addl %eax, %r13d
movl %r13d, %ebp
leaq 0x16119(%rip), %rdi     # 0x41097
leaq 0x1ec7a(%rip), %rsi     # 0x49bff
xorl %eax, %eax
callq 0x3120
movl %eax, %r13d
addl %ebp, %r13d
testb $0x30, (%r15)
je 0x2afb3
movl $0xd, %edi
callq 0x5730
leaq 0x1f5bf(%rip), %rdi     # 0x4a568
xorl %eax, %eax
callq 0x3120
addl %eax, %r13d
testb $0x30, (%r15)
je 0x2afce
movq 0x10(%r14), %rsi
leaq 0x1d931(%rip), %rdi     # 0x488f5
xorl %eax, %eax
callq 0x3120
addl %eax, %r13d
movl %r13d, %edi
callq 0x16b56
movl %eax, %r13d
movq 0x8(%rbx), %rsi
addq $0xc, %rsi
leaq 0x160f4(%rip), %rcx     # 0x410dc
movl $0x4003333, %edi        # imm = 0x4003333
movl %r12d, %edx
callq 0x5605
movq (%r15), %rax
testl $0x3003, %eax           # imm = 0x3003
je 0x2b05c
testb $0x40, %al
je 0x2b01d
leaq 0x1eaff(%rip), %rdi     # 0x49b09
movq 0x10(%rsp), %rsi
movl 0xc(%rsp), %edx
xorl %eax, %eax
callq 0x3120
addl %eax, %r13d
movl %r13d, %ebp
leaq 0x16070(%rip), %rdi     # 0x41097
leaq 0x1ebd7(%rip), %rsi     # 0x49c05
xorl %eax, %eax
callq 0x3120
movl %eax, %r13d
addl %ebp, %r13d
testb $0x30, (%r15)
je 0x2b05c
movl $0xd, %edi
callq 0x5730
leaq 0x1f516(%rip), %rdi     # 0x4a568
xorl %eax, %eax
callq 0x3120
addl %eax, %r13d
testb $0x30, (%r15)
je 0x2b077
movq 0x18(%r14), %rsi
leaq 0x1d888(%rip), %rdi     # 0x488f5
xorl %eax, %eax
callq 0x3120
addl %eax, %r13d
movl %r13d, %edi
callq 0x16b56
movl %eax, %r13d
movq 0x8(%rbx), %rsi
addq $0x10, %rsi
leaq 0x1604b(%rip), %rcx     # 0x410dc
movl $0x4003333, %edi        # imm = 0x4003333
movl %r12d, %edx
callq 0x5605
movq (%r15), %rax
testl $0x3003, %eax           # imm = 0x3003
je 0x2b105
testb $0x40, %al
je 0x2b0c6
leaq 0x1ea56(%rip), %rdi     # 0x49b09
movq 0x10(%rsp), %rsi
movl 0xc(%rsp), %edx
xorl %eax, %eax
callq 0x3120
addl %eax, %r13d
movl %r13d, %ebp
leaq 0x15fc7(%rip), %rdi     # 0x41097
leaq 0x1eb34(%rip), %rsi     # 0x49c0b
xorl %eax, %eax
callq 0x3120
movl %eax, %r13d
addl %ebp, %r13d
testb $0x30, (%r15)
je 0x2b105
movl $0xd, %edi
callq 0x5730
leaq 0x1f46d(%rip), %rdi     # 0x4a568
xorl %eax, %eax
callq 0x3120
addl %eax, %r13d
testb $0x30, (%r15)
je 0x2b120
leaq 0x20(%r14), %rsi
leaq 0x1ea0b(%rip), %rdi     # 0x49b21
xorl %eax, %eax
callq 0x3120
addl %eax, %r13d
movl %r13d, %edi
callq 0x16b56
movl %eax, %r13d
movq 0x8(%rbx), %rsi
addq $0x14, %rsi
leaq 0x15fa2(%rip), %rcx     # 0x410dc
movl $0x4003333, %edi        # imm = 0x4003333
movl %r12d, %edx
callq 0x5605
movq (%r15), %rax
testl $0x3003, %eax           # imm = 0x3003
je 0x2b1ae
testb $0x40, %al
je 0x2b16f
leaq 0x1e9ad(%rip), %rdi     # 0x49b09
movq 0x10(%rsp), %rsi
movl 0xc(%rsp), %edx
xorl %eax, %eax
callq 0x3120
addl %eax, %r13d
movl %r13d, %ebp
leaq 0x15f1e(%rip), %rdi     # 0x41097
leaq 0x1ea91(%rip), %rsi     # 0x49c11
xorl %eax, %eax
callq 0x3120
movl %eax, %r13d
addl %ebp, %r13d
testb $0x30, (%r15)
je 0x2b1ae
movl $0xd, %edi
callq 0x5730
leaq 0x1f3c4(%rip), %rdi     # 0x4a568
xorl %eax, %eax
callq 0x3120
addl %eax, %r13d
testb $0x30, (%r15)
je 0x2b1c9
movq 0x28(%r14), %rsi
leaq 0x1d736(%rip), %rdi     # 0x488f5
xorl %eax, %eax
callq 0x3120
addl %eax, %r13d
movl %r13d, %edi
callq 0x16b56
movq 0x8(%rbx), %rax
addq $0x18, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq