// File: /workspace/github_cpp_makefile_star2_O1/permutationlock[P]aes_math/aes_test.cpp
// Function: main
int main(){
    GaloisPolynomial::globalSetModulus(rijndael_Mod);
    string plaintext = "0123456789abcdef";
    string key = "ohnoammyitisnogo";
    string ciphertext = encrypt(plaintext, key, 2);
    cout << ciphertext << "\n";
    string decrypted = decrypt(ciphertext, key, 2);
    cout << plaintext << "\n";
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x100, %rsp            # imm = 0x100
leaq 0x620d(%rip), %rdi      # 0xf148
callq 0x4d8c
leaq 0x30(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x1467(%rip), %rsi      # 0xa3b7
leaq 0x1470(%rip), %rdx      # 0xa3c7
leaq 0x20(%rsp), %rdi
callq 0x52e6
leaq 0x10(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x1457(%rip), %rsi      # 0xa3c8
leaq 0x1460(%rip), %rdx      # 0xa3d8
movq %rsp, %rdi
callq 0x52e6
leaq 0xd0(%rsp), %r12
movq %r12, -0x10(%r12)
movq 0x20(%rsp), %rsi
movq 0x28(%rsp), %rdx
addq %rsi, %rdx
leaq 0xc0(%rsp), %rdi
callq 0x9286
leaq 0xb0(%rsp), %r13
movq %r13, -0x10(%r13)
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
addq %rsi, %rdx
leaq 0xa0(%rsp), %rdi
callq 0x9286
leaq 0x40(%rsp), %rdi
leaq 0xc0(%rsp), %rsi
leaq 0xa0(%rsp), %rdx
movl $0x2, %ecx
callq 0x6398
movq 0xa0(%rsp), %rdi
cmpq %r13, %rdi
je 0x9008
movq 0xb0(%rsp), %rsi
incq %rsi
callq 0x2110
movq 0xc0(%rsp), %rdi
cmpq %r12, %rdi
je 0x9025
movq 0xd0(%rsp), %rsi
incq %rsi
callq 0x2110
movq 0x40(%rsp), %rsi
movq 0x48(%rsp), %rdx
movq 0x5f9a(%rip), %rdi      # 0xefd0
callq 0x2130
leaq 0x1397(%rip), %rsi      # 0xa3d9
movl $0x1, %edx
movq %rax, %rdi
callq 0x2130
leaq 0x90(%rsp), %r12
movq %r12, -0x10(%r12)
movq 0x40(%rsp), %rsi
movq 0x48(%rsp), %rdx
addq %rsi, %rdx
leaq 0x80(%rsp), %rdi
callq 0x9286
leaq 0x70(%rsp), %r13
movq %r13, -0x10(%r13)
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
addq %rsi, %rdx
leaq 0x60(%rsp), %rdi
callq 0x9286
leaq 0xe0(%rsp), %rdi
leaq 0x80(%rsp), %rsi
leaq 0x60(%rsp), %rdx
movl $0x2, %ecx
callq 0x67a6
movq 0x60(%rsp), %rdi
cmpq %r13, %rdi
je 0x90cb
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x2110
movq 0x80(%rsp), %rdi
cmpq %r12, %rdi
je 0x90e8
movq 0x90(%rsp), %rsi
incq %rsi
callq 0x2110
movq 0x20(%rsp), %rsi
movq 0x28(%rsp), %rdx
movq 0x5ed7(%rip), %rdi      # 0xefd0
callq 0x2130
leaq 0x12d4(%rip), %rsi      # 0xa3d9
movl $0x1, %edx
movq %rax, %rdi
callq 0x2130
leaq 0xf0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x9133
movq 0xf0(%rsp), %rsi
incq %rsi
callq 0x2110
leaq 0x50(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x914e
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x2110
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x9164
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x2110
movq 0x20(%rsp), %rdi
cmpq %r14, %rdi
je 0x917b
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x2110
xorl %eax, %eax
addq $0x100, %rsp            # imm = 0x100
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq %rax, %rbx
movq 0x60(%rsp), %rdi
cmpq %r13, %rdi
je 0x91ad
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x2110
jmp 0x91ad
movq %rax, %rbx
movq 0x80(%rsp), %rdi
cmpq %r12, %rdi
je 0x9235
movq 0x90(%rsp), %rsi
jmp 0x9228
jmp 0x9232
movq %rax, %rbx
movq 0xa0(%rsp), %rdi
cmpq %r13, %rdi
je 0x91eb
movq 0xb0(%rsp), %rsi
incq %rsi
callq 0x2110
jmp 0x91eb
movq %rax, %rbx
movq 0xc0(%rsp), %rdi
cmpq %r12, %rdi
je 0x9250
movq 0xd0(%rsp), %rsi
jmp 0x9248
movq %rax, %rbx
jmp 0x9250
movq %rax, %rbx
jmp 0x9266
movq %rax, %rbx
leaq 0xf0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x9235
movq 0xf0(%rsp), %rsi
incq %rsi
callq 0x2110
jmp 0x9235
movq %rax, %rbx
leaq 0x50(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x9250
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x2110
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x9266
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x2110
movq 0x20(%rsp), %rdi
cmpq %r14, %rdi
je 0x927d
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x2110
movq %rbx, %rdi
callq 0x21b0
nop