// File: /workspace/github_c_makefile_star2_O0/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
movq %rsp, %rbp
subq $0x30, %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 0x267c3(%rip), %rcx     # 0x640dc
callq 0x5ed0
leaq 0x3985b(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x3003, %rax           # imm = 0x3003
cmpq $0x0, %rax
je 0x3d9b2
leaq 0x39845(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x40, %rax
cmpq $0x0, %rax
je 0x3d963
movq -0x18(%rbp), %rsi
movl -0x1c(%rbp), %edx
leaq 0x2ea8b(%rip), %rdi     # 0x6c3e1
movb $0x0, %al
callq 0x3110
addl -0x24(%rbp), %eax
movl %eax, -0x24(%rbp)
leaq 0x2672d(%rip), %rdi     # 0x64097
leaq 0x2ea7e(%rip), %rsi     # 0x6c3ef
movb $0x0, %al
callq 0x3110
addl -0x24(%rbp), %eax
movl %eax, -0x24(%rbp)
leaq 0x397fb(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x30, %rax
cmpq $0x0, %rax
je 0x3d9b0
movl $0x9, %edi
callq 0x60e0
leaq 0x2f375(%rip), %rdi     # 0x6cd18
movb $0x0, %al
callq 0x3110
addl -0x24(%rbp), %eax
movl %eax, -0x24(%rbp)
jmp 0x3d9b2
leaq 0x397c7(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x30, %rax
cmpq $0x0, %rax
je 0x3d9de
movq -0x10(%rbp), %rsi
leaq 0x2ea28(%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 0x266d8(%rip), %rcx     # 0x640dc
callq 0x5ed0
leaq 0x39770(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x3003, %rax           # imm = 0x3003
cmpq $0x0, %rax
je 0x3da9d
leaq 0x3975a(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x40, %rax
cmpq $0x0, %rax
je 0x3da4e
movq -0x18(%rbp), %rsi
movl -0x1c(%rbp), %edx
leaq 0x2e9a0(%rip), %rdi     # 0x6c3e1
movb $0x0, %al
callq 0x3110
addl -0x24(%rbp), %eax
movl %eax, -0x24(%rbp)
leaq 0x26642(%rip), %rdi     # 0x64097
leaq 0x280a6(%rip), %rsi     # 0x65b02
movb $0x0, %al
callq 0x3110
addl -0x24(%rbp), %eax
movl %eax, -0x24(%rbp)
leaq 0x39710(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x30, %rax
cmpq $0x0, %rax
je 0x3da9b
movl $0xb, %edi
callq 0x60e0
leaq 0x2f28a(%rip), %rdi     # 0x6cd18
movb $0x0, %al
callq 0x3110
addl -0x24(%rbp), %eax
movl %eax, -0x24(%rbp)
jmp 0x3da9d
leaq 0x396dc(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x30, %rax
cmpq $0x0, %rax
je 0x3dad5
movq -0x10(%rbp), %rax
movzwl 0xa(%rax), %esi
movq -0x10(%rbp), %rax
movzwl 0x8(%rax), %edx
leaq 0x2e937(%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 0x265e1(%rip), %rcx     # 0x640dc
callq 0x5ed0
leaq 0x39679(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x3003, %rax           # imm = 0x3003
cmpq $0x0, %rax
je 0x3db94
leaq 0x39663(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x40, %rax
cmpq $0x0, %rax
je 0x3db45
movq -0x18(%rbp), %rsi
movl -0x1c(%rbp), %edx
leaq 0x2e8a9(%rip), %rdi     # 0x6c3e1
movb $0x0, %al
callq 0x3110
addl -0x24(%rbp), %eax
movl %eax, -0x24(%rbp)
leaq 0x2654b(%rip), %rdi     # 0x64097
leaq 0x2e984(%rip), %rsi     # 0x6c4d7
movb $0x0, %al
callq 0x3110
addl -0x24(%rbp), %eax
movl %eax, -0x24(%rbp)
leaq 0x39619(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x30, %rax
cmpq $0x0, %rax
je 0x3db92
movl $0xd, %edi
callq 0x60e0
leaq 0x2f193(%rip), %rdi     # 0x6cd18
movb $0x0, %al
callq 0x3110
addl -0x24(%rbp), %eax
movl %eax, -0x24(%rbp)
jmp 0x3db94
leaq 0x395e5(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x30, %rax
cmpq $0x0, %rax
je 0x3dbc4
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rsi
leaq 0x2d2e9(%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 $0xc, %rsi
movl -0x20(%rbp), %edx
movl $0x4003333, %edi        # imm = 0x4003333
leaq 0x264f2(%rip), %rcx     # 0x640dc
callq 0x5ed0
leaq 0x3958a(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x3003, %rax           # imm = 0x3003
cmpq $0x0, %rax
je 0x3dc83
leaq 0x39574(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x40, %rax
cmpq $0x0, %rax
je 0x3dc34
movq -0x18(%rbp), %rsi
movl -0x1c(%rbp), %edx
leaq 0x2e7ba(%rip), %rdi     # 0x6c3e1
movb $0x0, %al
callq 0x3110
addl -0x24(%rbp), %eax
movl %eax, -0x24(%rbp)
leaq 0x2645c(%rip), %rdi     # 0x64097
leaq 0x2e89b(%rip), %rsi     # 0x6c4dd
movb $0x0, %al
callq 0x3110
addl -0x24(%rbp), %eax
movl %eax, -0x24(%rbp)
leaq 0x3952a(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x30, %rax
cmpq $0x0, %rax
je 0x3dc81
movl $0xd, %edi
callq 0x60e0
leaq 0x2f0a4(%rip), %rdi     # 0x6cd18
movb $0x0, %al
callq 0x3110
addl -0x24(%rbp), %eax
movl %eax, -0x24(%rbp)
jmp 0x3dc83
leaq 0x394f6(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x30, %rax
cmpq $0x0, %rax
je 0x3dcb3
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rsi
leaq 0x2d1fa(%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 $0x10, %rsi
movl -0x20(%rbp), %edx
movl $0x4003333, %edi        # imm = 0x4003333
leaq 0x26403(%rip), %rcx     # 0x640dc
callq 0x5ed0
leaq 0x3949b(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x3003, %rax           # imm = 0x3003
cmpq $0x0, %rax
je 0x3dd72
leaq 0x39485(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x40, %rax
cmpq $0x0, %rax
je 0x3dd23
movq -0x18(%rbp), %rsi
movl -0x1c(%rbp), %edx
leaq 0x2e6cb(%rip), %rdi     # 0x6c3e1
movb $0x0, %al
callq 0x3110
addl -0x24(%rbp), %eax
movl %eax, -0x24(%rbp)
leaq 0x2636d(%rip), %rdi     # 0x64097
leaq 0x2e7b2(%rip), %rsi     # 0x6c4e3
movb $0x0, %al
callq 0x3110
addl -0x24(%rbp), %eax
movl %eax, -0x24(%rbp)
leaq 0x3943b(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x30, %rax
cmpq $0x0, %rax
je 0x3dd70
movl $0xd, %edi
callq 0x60e0
leaq 0x2efb5(%rip), %rdi     # 0x6cd18
movb $0x0, %al
callq 0x3110
addl -0x24(%rbp), %eax
movl %eax, -0x24(%rbp)
jmp 0x3dd72
leaq 0x39407(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x30, %rax
cmpq $0x0, %rax
je 0x3dda2
movq -0x10(%rbp), %rsi
addq $0x20, %rsi
leaq 0x2e664(%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 $0x14, %rsi
movl -0x20(%rbp), %edx
movl $0x4003333, %edi        # imm = 0x4003333
leaq 0x26314(%rip), %rcx     # 0x640dc
callq 0x5ed0
leaq 0x393ac(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x3003, %rax           # imm = 0x3003
cmpq $0x0, %rax
je 0x3de61
leaq 0x39396(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x40, %rax
cmpq $0x0, %rax
je 0x3de12
movq -0x18(%rbp), %rsi
movl -0x1c(%rbp), %edx
leaq 0x2e5dc(%rip), %rdi     # 0x6c3e1
movb $0x0, %al
callq 0x3110
addl -0x24(%rbp), %eax
movl %eax, -0x24(%rbp)
leaq 0x2627e(%rip), %rdi     # 0x64097
leaq 0x2e6c9(%rip), %rsi     # 0x6c4e9
movb $0x0, %al
callq 0x3110
addl -0x24(%rbp), %eax
movl %eax, -0x24(%rbp)
leaq 0x3934c(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x30, %rax
cmpq $0x0, %rax
je 0x3de5f
movl $0xd, %edi
callq 0x60e0
leaq 0x2eec6(%rip), %rdi     # 0x6cd18
movb $0x0, %al
callq 0x3110
addl -0x24(%rbp), %eax
movl %eax, -0x24(%rbp)
jmp 0x3de61
leaq 0x39318(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x30, %rax
cmpq $0x0, %rax
je 0x3de91
movq -0x10(%rbp), %rax
movq 0x28(%rax), %rsi
leaq 0x2d01c(%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), %rax
addq $0x18, %rax
addq $0x30, %rsp
popq %rbp
retq
nop