// File: /workspace/github_cpp_makefile_star2_O3/SimpleButNotNaive[P]AES/main.cpp
// Function: main
int main() {
    aes_encryptor encrypter;
    aes_decryptor decryptor;

    vector<vector<uint8>> cipher;

    cipher = encrypter.encryption(plain_text, key, IV);

    printf("密文：\n");
    for (auto group : cipher) {
        for (int i = 0; i < group.size(); i++) {
            if (group[i] <= 0x0f)
                printf("0%x", group[i]);
            else
                printf("%x", group[i]);
        }
    }
    printf("\n");

    string text = decryptor.decryption(cipher, key, IV);
    printf("明文：\n");
    printf("%s\n", text.c_str());

    return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x298, %rsp            # imm = 0x298
xorl %eax, %eax
movl %eax, -0x1f8(%rbp)
movl %eax, -0x134(%rbp)
xorps %xmm0, %xmm0
movaps %xmm0, -0x40(%rbp)
movq $0x0, -0x30(%rbp)
leaq -0xf0(%rbp), %r14
movq %r14, -0x10(%r14)
movq 0x2911(%rip), %rsi      # 0x5328
movq 0x2912(%rip), %rdx      # 0x5330
addq %rsi, %rdx
leaq -0x100(%rbp), %rdi
callq 0x2546
leaq -0xd0(%rbp), %r15
movq %r15, -0x10(%r15)
movq 0x2909(%rip), %rsi      # 0x5348
movq 0x290a(%rip), %rdx      # 0x5350
addq %rsi, %rdx
leaq -0xe0(%rbp), %rdi
callq 0x2546
leaq -0xb0(%rbp), %r12
movq %r12, -0x10(%r12)
movq 0x2900(%rip), %rsi      # 0x5368
movq 0x2901(%rip), %rdx      # 0x5370
addq %rsi, %rdx
leaq -0xc0(%rbp), %rdi
callq 0x2546
leaq -0x130(%rbp), %rdi
leaq -0x2b8(%rbp), %rsi
leaq -0x100(%rbp), %rdx
leaq -0xe0(%rbp), %rcx
leaq -0xc0(%rbp), %r8
callq 0x1ea6
movaps -0x40(%rbp), %xmm0
movq -0x30(%rbp), %rax
leaq -0x130(%rbp), %rbx
movaps (%rbx), %xmm1
movaps %xmm1, -0x40(%rbp)
movq 0x10(%rbx), %rcx
movq %rcx, -0x30(%rbp)
leaq -0x60(%rbp), %rdi
movups %xmm0, (%rdi)
movq %rax, 0x10(%rdi)
xorps %xmm0, %xmm0
movaps %xmm0, (%rbx)
movq $0x0, 0x10(%rbx)
callq 0x24d6
movq %rbx, %rdi
callq 0x24d6
movq -0xc0(%rbp), %rdi
cmpq %r12, %rdi
je 0x2b05
movq -0xb0(%rbp), %rsi
incq %rsi
callq 0x10f0
movq -0xe0(%rbp), %rdi
cmpq %r15, %rdi
je 0x2b20
movq -0xd0(%rbp), %rsi
incq %rsi
callq 0x10f0
movq -0x100(%rbp), %rdi
cmpq %r14, %rdi
je 0x2b3b
movq -0xf0(%rbp), %rsi
incq %rsi
callq 0x10f0
leaq 0x6c0(%rip), %rdi       # 0x3202
callq 0x1120
movq -0x40(%rbp), %rbx
movq -0x38(%rbp), %r15
cmpq %r15, %rbx
je 0x2bbe
leaq 0x6a3(%rip), %r12       # 0x31fe
leaq 0x69d(%rip), %r13       # 0x31ff
leaq -0x60(%rbp), %rdi
movq %rbx, %rsi
callq 0x1d50
movq -0x60(%rbp), %rdi
cmpq %rdi, -0x58(%rbp)
je 0x2ba4
xorl %r14d, %r14d
movzbl (%rdi,%r14), %esi
cmpl $0x10, %esi
movq %r13, %rdi
cmovbq %r12, %rdi
xorl %eax, %eax
callq 0x1040
incq %r14
movq -0x60(%rbp), %rdi
movq -0x58(%rbp), %rax
subq %rdi, %rax
cmpq %r14, %rax
ja 0x2b7b
testq %rdi, %rdi
je 0x2bb5
movq -0x50(%rbp), %rsi
subq %rdi, %rsi
callq 0x10f0
addq $0x18, %rbx
cmpq %r15, %rbx
jne 0x2b62
movl $0xa, %edi
callq 0x1100
leaq -0x118(%rbp), %rdi
leaq -0x40(%rbp), %rsi
callq 0x2d8e
leaq -0x90(%rbp), %r14
movq %r14, -0x10(%r14)
movq 0x275e(%rip), %rsi      # 0x5348
movq 0x275f(%rip), %rdx      # 0x5350
addq %rsi, %rdx
leaq -0xa0(%rbp), %rdi
callq 0x2546
leaq -0x70(%rbp), %r15
movq %r15, -0x10(%r15)
movq 0x2759(%rip), %rsi      # 0x5368
movq 0x275a(%rip), %rdx      # 0x5370
addq %rsi, %rdx
leaq -0x80(%rbp), %rdi
callq 0x2546
leaq -0x60(%rbp), %rdi
leaq -0x1f4(%rbp), %rsi
leaq -0x118(%rbp), %rdx
leaq -0xa0(%rbp), %rcx
leaq -0x80(%rbp), %r8
callq 0x181e
movq -0x80(%rbp), %rdi
cmpq %r15, %rdi
je 0x2c59
movq -0x70(%rbp), %rsi
incq %rsi
callq 0x10f0
movq -0xa0(%rbp), %rdi
cmpq %r14, %rdi
je 0x2c74
movq -0x90(%rbp), %rsi
incq %rsi
callq 0x10f0
leaq -0x118(%rbp), %rdi
callq 0x24d6
leaq 0x585(%rip), %rdi       # 0x320c
callq 0x1120
leaq -0x50(%rbp), %rbx
movq -0x10(%rbx), %rdi
callq 0x1120
movq -0x10(%rbx), %rdi
cmpq %rbx, %rdi
je 0x2cae
movq -0x50(%rbp), %rsi
incq %rsi
callq 0x10f0
leaq -0x40(%rbp), %rdi
callq 0x24d6
xorl %eax, %eax
addq $0x298, %rsp            # imm = 0x298
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq -0x80(%rbp), %rdi
cmpq %r15, %rdi
je 0x2ce8
movq -0x70(%rbp), %rsi
incq %rsi
callq 0x10f0
jmp 0x2ce8
movq %rax, %rbx
movq -0xa0(%rbp), %rdi
cmpq %r14, %rdi
je 0x2d08
movq -0x90(%rbp), %rsi
incq %rsi
callq 0x10f0
jmp 0x2d08
movq %rax, %rbx
leaq -0x118(%rbp), %rdi
callq 0x24d6
jmp 0x2d7d
jmp 0x2d7a
movq %rax, %rbx
movq -0xc0(%rbp), %rdi
cmpq %r12, %rdi
je 0x2d3b
movq -0xb0(%rbp), %rsi
incq %rsi
callq 0x10f0
jmp 0x2d3b
movq %rax, %rbx
movq -0xe0(%rbp), %rdi
cmpq %r15, %rdi
je 0x2d5b
movq -0xd0(%rbp), %rsi
incq %rsi
callq 0x10f0
jmp 0x2d5b
movq %rax, %rbx
movq -0x100(%rbp), %rdi
cmpq %r14, %rdi
je 0x2d7d
movq -0xf0(%rbp), %rsi
incq %rsi
callq 0x10f0
jmp 0x2d7d
jmp 0x2d7a
movq %rax, %rbx
leaq -0x40(%rbp), %rdi
callq 0x24d6
movq %rbx, %rdi
callq 0x1150