// File: /workspace/github_cpp_makefile_star2_O1/CYLMos[P]Read_the_tar_file/MyTar.cpp
// Function: MyTar::showContent()
void MyTar::showContent(){
    cout << "Total " << this->getFileNum() << " " << (this->getFileNum() > 1 ? "files." : "file.") << endl;
    cout << left << setw(12) << "filemode" << setw(32) << "username" << setw(32) << "groupname" << setw(6) << "size" << setw(100) << "filename" << endl;

    for(int i = 0; i < this->getFileNum(); i++){
        struct TarHeader buffer = this->tarVector.at(i);

        /// Check the file is directory and output the file mode.
        cout << left << setw(12) << (buffer.type == '5' ? 'd' : '-') + this->getFileMode(atoi(buffer.filemode));

        /// Output the user name.
        cout << left << setw(32) << buffer.username;

        /// Output the group name.
        cout << left << setw(32) << buffer.groupname;

        /// Output the file size.
        cout << left << setw(6) << this->hex2Dec(buffer.filesize, sizeof(buffer.filesize));
        //cout << left << setw(6) << this->hex2Dec(atoi(buffer.filesize));

        /// Output the file name.
        cout << left << setw(100) << buffer.filename << endl;
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x258, %rsp            # imm = 0x258
movq %rdi, %r12
movq 0x36a6(%rip), %r14      # 0x5fd8
leaq 0x1723(%rip), %rsi      # 0x405c
movl $0x6, %edx
movq %r14, %rdi
callq 0x21d0
movq %r12, %rdi
callq 0x2e0c
movq %r14, %rdi
movl %eax, %esi
callq 0x2250
movq %rax, %r15
leaq 0x16ff(%rip), %rsi      # 0x4061
movl $0x1, %edx
movq %rax, %rdi
callq 0x21d0
movq %r12, %rdi
callq 0x2e0c
xorl %edx, %edx
cmpl $0x2, %eax
setge %dl
leaq 0x16dd(%rip), %rax      # 0x4063
leaq 0x16dd(%rip), %rsi      # 0x406a
cmovgeq %rax, %rsi
addq $0x5, %rdx
movq %r15, %rdi
callq 0x21d0
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x2180
movsbl %al, %esi
movq %r15, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2110
movq (%r14), %rax
movq -0x18(%rax), %rcx
movl $0xffffff4f, %esi       # imm = 0xFFFFFF4F
movl 0x18(%r14,%rcx), %edx
andl %esi, %edx
orl $0x20, %edx
movl %edx, 0x18(%r14,%rcx)
movq -0x18(%rax), %rax
movq $0xc, 0x10(%r14,%rax)
leaq 0x167d(%rip), %rsi      # 0x4070
movl $0x8, %edx
movq %r14, %rdi
callq 0x21d0
movq (%r14), %rax
movq -0x18(%rax), %rax
movl $0x20, %ebx
movq %rbx, 0x10(%r14,%rax)
leaq 0x1661(%rip), %rsi      # 0x4079
movl $0x8, %edx
movq %r14, %rdi
callq 0x21d0
movq (%r14), %rax
movq -0x18(%rax), %rax
movq %rbx, 0x10(%r14,%rax)
leaq 0x164a(%rip), %rsi      # 0x4082
movl $0x9, %edx
movq %r14, %rdi
callq 0x21d0
movq (%r14), %rax
movq -0x18(%rax), %rax
movq $0x6, 0x10(%r14,%rax)
leaq 0x1630(%rip), %rsi      # 0x408c
movl $0x4, %edx
movq %r14, %rdi
callq 0x21d0
movq (%r14), %rax
movq -0x18(%rax), %rax
movq $0x64, 0x10(%r14,%rax)
leaq 0x1611(%rip), %rsi      # 0x4091
movl $0x8, %edx
movq %r14, %rdi
callq 0x21d0
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x2180
movsbl %al, %esi
movq %r14, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2110
movq %r12, %rdi
callq 0x2e0c
testl %eax, %eax
jle 0x2da7
xorl %r15d, %r15d
leaq -0x280(%rbp), %rbx
movq %r12, -0x50(%rbp)
movq 0x208(%r12), %rsi
movq 0x210(%r12), %rdx
subq %rsi, %rdx
sarq $0x9, %rdx
cmpq %r15, %rdx
jbe 0x2db9
movq %r15, %rax
shlq $0x9, %rax
addq %rax, %rsi
movl $0x200, %edx            # imm = 0x200
movq %rbx, %rdi
callq 0x2140
movq (%r14), %rax
movq -0x18(%rax), %rcx
movl 0x18(%r14,%rcx), %edx
movl $0xffffff4f, %esi       # imm = 0xFFFFFF4F
andl %esi, %edx
orl $0x20, %edx
movl %edx, 0x18(%r14,%rcx)
movq -0x18(%rax), %rax
movq $0xc, 0x10(%r14,%rax)
movb -0x1e4(%rbp), %bl
leaq -0x21c(%rbp), %rdi
callq 0x2230
leaq -0x80(%rbp), %r12
movq %r12, %rdi
movl %eax, %edx
callq 0x2ee2
cmpb $0x35, %bl
movl $0x2d, %ecx
movl $0x64, %eax
cmovel %eax, %ecx
movl $0x1, %edx
movq %r12, %rdi
xorl %esi, %esi
callq 0x2290
leaq -0x38(%rbp), %rbx
movq %rbx, -0x48(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x2b94
movq %rdx, -0x48(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x38(%rbp)
jmp 0x2b9a
movups (%rcx), %xmm0
movups %xmm0, (%rbx)
movq 0x8(%rax), %rdx
movq %rdx, -0x40(%rbp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq -0x48(%rbp), %rsi
movq -0x40(%rbp), %rdx
movq %r14, %rdi
callq 0x21d0
movq -0x48(%rbp), %rdi
cmpq %rbx, %rdi
je 0x2bd6
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x21b0
movq -0x80(%rbp), %rdi
leaq -0x70(%rbp), %rax
cmpq %rax, %rdi
je 0x2bef
movq -0x70(%rbp), %rsi
incq %rsi
callq 0x21b0
movq (%r14), %rax
movq -0x18(%rax), %rcx
movl 0x18(%r14,%rcx), %edx
movl $0xffffff4f, %r13d      # imm = 0xFFFFFF4F
andl %r13d, %edx
orl $0x20, %edx
movl %edx, 0x18(%r14,%rcx)
movq -0x18(%rax), %rax
movl $0x20, %ebx
movq %rbx, 0x10(%r14,%rax)
leaq -0x177(%rbp), %r12
movq %r12, %rdi
callq 0x20d0
movq %r14, %rdi
movq %r12, %rsi
movq %rax, %rdx
callq 0x21d0
movq (%r14), %rax
movq -0x18(%rax), %rcx
movl 0x18(%r14,%rcx), %edx
andl %r13d, %edx
orl $0x20, %edx
movl %edx, 0x18(%r14,%rcx)
movq -0x18(%rax), %rax
movq %rbx, 0x10(%r14,%rax)
leaq -0x157(%rbp), %rbx
movq %rbx, %rdi
callq 0x20d0
movq %r14, %rdi
movq %rbx, %rsi
movq %rax, %rdx
callq 0x21d0
movq (%r14), %rax
movq -0x18(%rax), %rcx
movl 0x18(%r14,%rcx), %edx
andl %r13d, %edx
orl $0x20, %edx
movl %edx, 0x18(%r14,%rcx)
movq -0x18(%rax), %rax
movq $0x6, 0x10(%r14,%rax)
xorl %r13d, %r13d
xorpd %xmm1, %xmm1
movl $0xb, %r12d
leaq -0x1fa(%rbp), %rbx
movsd %xmm1, -0x60(%rbp)
movsbl (%rbx), %eax
leal -0x61(%rax), %ecx
leal -0x30(%rax), %edx
addl $-0x57, %eax
cmpb $0x6, %cl
cmovael %edx, %eax
xorps %xmm0, %xmm0
cvtsi2sd %eax, %xmm0
movsd %xmm0, -0x58(%rbp)
movapd %xmm1, %xmm0
mulsd 0x135d(%rip), %xmm0     # 0x4038
callq 0x2170
xorps %xmm1, %xmm1
cvtsi2sd %r13d, %xmm1
mulsd -0x58(%rbp), %xmm0
addsd %xmm1, %xmm0
movsd -0x60(%rbp), %xmm1
cvttsd2si %xmm0, %r13d
addsd 0x133d(%rip), %xmm1     # 0x4040
decq %rbx
decl %r12d
jne 0x2cac
leal 0x7(%r13), %esi
testl %r13d, %r13d
cmovnsl %r13d, %esi
sarl $0x3, %esi
movq %r14, %rdi
callq 0x2250
movq (%r14), %rax
movq -0x18(%rax), %rcx
movl 0x18(%r14,%rcx), %edx
movl $0xffffff4f, %esi       # imm = 0xFFFFFF4F
andl %esi, %edx
orl $0x20, %edx
movl %edx, 0x18(%r14,%rcx)
movq -0x18(%rax), %rax
movq $0x64, 0x10(%r14,%rax)
leaq -0x280(%rbp), %rbx
movq %rbx, %rdi
callq 0x20d0
movq %r14, %rdi
movq %rbx, %rsi
movq %rax, %rdx
callq 0x21d0
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x2180
movsbl %al, %esi
movq %r14, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2110
incq %r15
movq -0x50(%rbp), %r12
movq %r12, %rdi
callq 0x2e0c
cltq
cmpq %rax, %r15
jl 0x2ad2
addq $0x258, %rsp            # imm = 0x258
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x131e(%rip), %rdi      # 0x40de
movq %r15, %rsi
xorl %eax, %eax
callq 0x2210
movq %rax, %rbx
jmp 0x2dea
movq %rbx, %rcx
movq %rax, %rbx
movq -0x48(%rbp), %rdi
cmpq %rcx, %rdi
je 0x2dea
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x21b0
movq -0x80(%rbp), %rdi
leaq -0x70(%rbp), %rax
cmpq %rax, %rdi
je 0x2e03
movq -0x70(%rbp), %rsi
incq %rsi
callq 0x21b0
movq %rbx, %rdi
callq 0x2270
nop