// File: /workspace/github_cpp_makefile_star2_O1/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 0x2921(%rip), %rsi      # 0x5328
movq 0x2922(%rip), %rdx      # 0x5330
addq %rsi, %rdx
leaq -0x100(%rbp), %rdi
callq 0x2528
leaq -0xd0(%rbp), %r15
movq %r15, -0x10(%r15)
movq 0x2919(%rip), %rsi      # 0x5348
movq 0x291a(%rip), %rdx      # 0x5350
addq %rsi, %rdx
leaq -0xe0(%rbp), %rdi
callq 0x2528
leaq -0xb0(%rbp), %r12
movq %r12, -0x10(%r12)
movq 0x2910(%rip), %rsi      # 0x5368
movq 0x2911(%rip), %rdx      # 0x5370
addq %rsi, %rdx
leaq -0xc0(%rbp), %rdi
callq 0x2528
leaq -0x130(%rbp), %rdi
leaq -0x2b8(%rbp), %rsi
leaq -0x100(%rbp), %rdx
leaq -0xe0(%rbp), %rcx
leaq -0xc0(%rbp), %r8
callq 0x1e86
xorps %xmm0, %xmm0
leaq -0x60(%rbp), %rdi
movaps %xmm0, (%rdi)
movaps -0x40(%rbp), %xmm0
movq -0x30(%rbp), %rax
leaq -0x130(%rbp), %rbx
movups (%rbx), %xmm1
movaps %xmm1, -0x40(%rbp)
movq 0x10(%rbx), %rcx
movq %rcx, -0x30(%rbp)
movaps (%rdi), %xmm1
movaps %xmm0, (%rdi)
movq %rax, 0x10(%rdi)
movups %xmm1, (%rbx)
movq $0x0, 0x10(%rbx)
callq 0x24be
movq %rbx, %rdi
callq 0x24be
movq -0xc0(%rbp), %rdi
cmpq %r12, %rdi
je 0x2afb
movq -0xb0(%rbp), %rsi
incq %rsi
callq 0x10f0
movq -0xe0(%rbp), %rdi
cmpq %r15, %rdi
je 0x2b16
movq -0xd0(%rbp), %rsi
incq %rsi
callq 0x10f0
movq -0x100(%rbp), %rdi
cmpq %r14, %rdi
je 0x2b31
movq -0xf0(%rbp), %rsi
incq %rsi
callq 0x10f0
leaq 0x6ca(%rip), %rdi       # 0x3202
callq 0x1120
movq -0x40(%rbp), %rbx
movq -0x38(%rbp), %r15
cmpq %r15, %rbx
je 0x2bb4
leaq 0x6ad(%rip), %r12       # 0x31fe
leaq 0x6a7(%rip), %r13       # 0x31ff
leaq -0x60(%rbp), %rdi
movq %rbx, %rsi
callq 0x1d32
movq -0x60(%rbp), %rdi
cmpq %rdi, -0x58(%rbp)
je 0x2b9a
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 0x2b71
testq %rdi, %rdi
je 0x2bab
movq -0x50(%rbp), %rsi
subq %rdi, %rsi
callq 0x10f0
addq $0x18, %rbx
cmpq %r15, %rbx
jne 0x2b58
movl $0xa, %edi
callq 0x1100
leaq -0x118(%rbp), %rdi
leaq -0x40(%rbp), %rsi
callq 0x2d84
leaq -0x90(%rbp), %r14
movq %r14, -0x10(%r14)
movq 0x2768(%rip), %rsi      # 0x5348
movq 0x2769(%rip), %rdx      # 0x5350
addq %rsi, %rdx
leaq -0xa0(%rbp), %rdi
callq 0x2528
leaq -0x70(%rbp), %r15
movq %r15, -0x10(%r15)
movq 0x2763(%rip), %rsi      # 0x5368
movq 0x2764(%rip), %rdx      # 0x5370
addq %rsi, %rdx
leaq -0x80(%rbp), %rdi
callq 0x2528
leaq -0x60(%rbp), %rdi
leaq -0x1f4(%rbp), %rsi
leaq -0x118(%rbp), %rdx
leaq -0xa0(%rbp), %rcx
leaq -0x80(%rbp), %r8
callq 0x17fe
movq -0x80(%rbp), %rdi
cmpq %r15, %rdi
je 0x2c4f
movq -0x70(%rbp), %rsi
incq %rsi
callq 0x10f0
movq -0xa0(%rbp), %rdi
cmpq %r14, %rdi
je 0x2c6a
movq -0x90(%rbp), %rsi
incq %rsi
callq 0x10f0
leaq -0x118(%rbp), %rdi
callq 0x24be
leaq 0x58f(%rip), %rdi       # 0x320c
callq 0x1120
leaq -0x50(%rbp), %rbx
movq -0x10(%rbx), %rdi
callq 0x1120
movq -0x10(%rbx), %rdi
cmpq %rbx, %rdi
je 0x2ca4
movq -0x50(%rbp), %rsi
incq %rsi
callq 0x10f0
leaq -0x40(%rbp), %rdi
callq 0x24be
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 0x2cde
movq -0x70(%rbp), %rsi
incq %rsi
callq 0x10f0
jmp 0x2cde
movq %rax, %rbx
movq -0xa0(%rbp), %rdi
cmpq %r14, %rdi
je 0x2cfe
movq -0x90(%rbp), %rsi
incq %rsi
callq 0x10f0
jmp 0x2cfe
movq %rax, %rbx
leaq -0x118(%rbp), %rdi
callq 0x24be
jmp 0x2d73
jmp 0x2d70
movq %rax, %rbx
movq -0xc0(%rbp), %rdi
cmpq %r12, %rdi
je 0x2d31
movq -0xb0(%rbp), %rsi
incq %rsi
callq 0x10f0
jmp 0x2d31
movq %rax, %rbx
movq -0xe0(%rbp), %rdi
cmpq %r15, %rdi
je 0x2d51
movq -0xd0(%rbp), %rsi
incq %rsi
callq 0x10f0
jmp 0x2d51
movq %rax, %rbx
movq -0x100(%rbp), %rdi
cmpq %r14, %rdi
je 0x2d73
movq -0xf0(%rbp), %rsi
incq %rsi
callq 0x10f0
jmp 0x2d73
jmp 0x2d70
movq %rax, %rbx
leaq -0x40(%rbp), %rdi
callq 0x24be
movq %rbx, %rdi
callq 0x1150