// File: /workspace/github_c_makefile_star2_O0/ww9210[P]xnuca_final_ssp/main.c
// Function: dump_program_header_entry
void dump_program_header_entry(ELF64_FileRef file, ELF64_HeaderRef header){
    ELF64_ProgramHeaderEntryRef pHeader;
    ELF64_SectionHeaderEntryRef sHeader;
    ELF64_Half i;
    for( i = 0; i < ELF64_HeaderGetProgramHeaderEntryCount( header ); i++ )
    {
        pHeader = ELF64_FileGetProgramHeaderEntry( file, i );
        
        printf
        (
            "    ### Program header entry (%lu):\n"
            "    \n"
            "        - Segment type:                %s\n"
            "        - Segment attributes:          %lu (%s)\n"
            "        - Offset in file:              0x%016lx\n"
            "        - Virtual address in memory:   0x%016lx\n"
            "        - Size of segment in file:     %lu\n"
            "        - Size of segment in memory:   %lu\n"
            "        - Alignment of segment:        %lu\n"
            "    \n",
            ( unsigned long )i,
            ELF64_ProgramHeaderEntryGetTypeString( pHeader ),
            ( unsigned long )ELF64_ProgramHeaderEntryGetAttributes( pHeader ),
            ELF64_ProgramHeaderEntryGetAttributesString( pHeader ),
            ELF64_ProgramHeaderEntryGetFileOffset( pHeader ),
            ELF64_ProgramHeaderEntryGetMemoryVirtualAddress( pHeader ),
            ( unsigned long )ELF64_ProgramHeaderEntryGetFileSize( pHeader ),
            ( unsigned long )ELF64_ProgramHeaderEntryGetMemorySize( pHeader ),
            ( unsigned long )ELF64_ProgramHeaderEntryGetAlignment( pHeader )
        );
    }
   
    for( i = 0; i < ELF64_HeaderGetSectionHeaderEntryCount( header ); i++ )
    {
        sHeader = ELF64_FileGetSectionHeaderEntry( file, i );

        printf
        (
            "    ### Section header entry (%lu):\n"
            "    \n"
            "        - Section name:                            %s\n"
            "        - Section type:                            %s\n"
            "        - Section attributes:                      %lu (%s)\n"
            "        - Virtual address in memory:               0x%016lx\n"
            "        - Offset in file:                          %lu\n"
            "        - Size of section:                         %lu\n"
            "        - Link to other section:                   %lu\n"
            "        - Miscellaneous information:               %lu\n"
            "        - Address alignment boundary:              %lu\n"
            "        - Size of entries, if section has table:   %lu\n"
            "    \n",
            ( unsigned long )i,
            ELF64_FileGetNameOfSection( file, sHeader ),
            ELF64_SectionHeaderEntryGetTypeString( sHeader ),
            ( unsigned long )ELF64_SectionHeaderEntryGetAttributes( sHeader ),
            ELF64_SectionHeaderEntryGetAttributesString( sHeader ),
            ELF64_SectionHeaderEntryGetMemoryVirtualAddress( sHeader ),
            ( unsigned long )ELF64_SectionHeaderEntryGetFileOffset( sHeader ),
            ( unsigned long )ELF64_SectionHeaderEntryGetSectionSize( sHeader ),
            ( unsigned long )ELF64_SectionHeaderEntryGetLinkedSectionIndex( sHeader ),
            ( unsigned long )ELF64_SectionHeaderEntryGetMiscInfo( sHeader ),
            ( unsigned long )ELF64_SectionHeaderEntryGetAddressAlignmentBoundary( sHeader ),
            ( unsigned long )ELF64_SectionHeaderEntryGetEntrySize( sHeader )
        );
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0xe0, %rsp
movq %rdi, -0x28(%rbp)
movq %rsi, -0x30(%rbp)
movw $0x0, -0x42(%rbp)
movzwl -0x42(%rbp), %eax
movl %eax, -0x48(%rbp)
movq -0x30(%rbp), %rdi
callq 0x3a00
movw %ax, %cx
movl -0x48(%rbp), %eax
movzwl %cx, %ecx
cmpl %ecx, %eax
jge 0x1a7d
movq -0x28(%rbp), %rdi
movzwl -0x42(%rbp), %esi
callq 0x3960
movq %rax, -0x38(%rbp)
movzwl -0x42(%rbp), %eax
movq %rax, -0x80(%rbp)
movq -0x38(%rbp), %rdi
callq 0x5050
movq %rax, -0x78(%rbp)
movq -0x38(%rbp), %rdi
callq 0x50e0
movl %eax, %eax
movq %rax, -0x70(%rbp)
movq -0x38(%rbp), %rdi
callq 0x5110
movq %rax, -0x68(%rbp)
movq -0x38(%rbp), %rdi
callq 0x5240
movq %rax, -0x60(%rbp)
movq -0x38(%rbp), %rdi
callq 0x5270
movq %rax, %rbx
movq -0x38(%rbp), %rdi
callq 0x52a0
movq %rax, -0x58(%rbp)
movq -0x38(%rbp), %rdi
callq 0x52d0
movq %rax, -0x50(%rbp)
movq -0x38(%rbp), %rdi
callq 0x5300
movq -0x80(%rbp), %rsi
movq -0x78(%rbp), %rdx
movq -0x70(%rbp), %rcx
movq -0x68(%rbp), %r8
movq -0x60(%rbp), %r9
movq -0x58(%rbp), %r11
movq -0x50(%rbp), %r10
leaq 0x465d(%rip), %rdi      # 0x60af
movq %rbx, (%rsp)
movq %r11, 0x8(%rsp)
movq %r10, 0x10(%rsp)
movq %rax, 0x18(%rsp)
movb $0x0, %al
callq 0x10e0
movw -0x42(%rbp), %ax
addw $0x1, %ax
movw %ax, -0x42(%rbp)
jmp 0x1990
movw $0x0, -0x42(%rbp)
movzwl -0x42(%rbp), %eax
movl %eax, -0x84(%rbp)
movq -0x30(%rbp), %rdi
callq 0x3b30
movw %ax, %cx
movl -0x84(%rbp), %eax
movzwl %cx, %ecx
cmpl %ecx, %eax
jge 0x1bd8
movq -0x28(%rbp), %rdi
movzwl -0x42(%rbp), %esi
callq 0x3a90
movq %rax, -0x40(%rbp)
movzwl -0x42(%rbp), %eax
movq %rax, -0xc0(%rbp)
movq -0x28(%rbp), %rdi
movq -0x40(%rbp), %rsi
callq 0x3bc0
movq %rax, -0xb8(%rbp)
movq -0x40(%rbp), %rdi
callq 0x5330
movq %rax, -0xb0(%rbp)
movq -0x40(%rbp), %rdi
callq 0x5410
movq %rax, -0xa8(%rbp)
movq -0x40(%rbp), %rdi
callq 0x5440
movq %rax, -0xa0(%rbp)
movq -0x40(%rbp), %rdi
callq 0x5590
movq %rax, %r12
movq -0x40(%rbp), %rdi
callq 0x3d70
movq %rax, %r15
movq -0x40(%rbp), %rdi
callq 0x55c0
movq %rax, %r14
movq -0x40(%rbp), %rdi
callq 0x4080
movl %eax, %eax
movl %eax, %ebx
movq -0x40(%rbp), %rdi
callq 0x55f0
movl %eax, %eax
movq %rax, -0x98(%rbp)
movq -0x40(%rbp), %rdi
callq 0x5620
movq %rax, -0x90(%rbp)
movq -0x40(%rbp), %rdi
callq 0x3f90
movq -0xc0(%rbp), %rsi
movq -0xb8(%rbp), %rdx
movq -0xb0(%rbp), %rcx
movq -0xa8(%rbp), %r8
movq -0xa0(%rbp), %r9
movq -0x98(%rbp), %r11
movq -0x90(%rbp), %r10
leaq 0x467b(%rip), %rdi      # 0x6219
movq %r12, (%rsp)
movq %r15, 0x8(%rsp)
movq %r14, 0x10(%rsp)
movq %rbx, 0x18(%rsp)
movq %r11, 0x20(%rsp)
movq %r10, 0x28(%rsp)
movq %rax, 0x30(%rsp)
movb $0x0, %al
callq 0x10e0
movw -0x42(%rbp), %ax
addw $0x1, %ax
movw %ax, -0x42(%rbp)
jmp 0x1a83
addq $0xe0, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
nopl (%rax,%rax)