// File: /workspace/github_cpp_makefile_star2_O3/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 0x60f5(%rip), %rdi      # 0xf148
callq 0x4c1e
leaq 0x30(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x134f(%rip), %rsi      # 0xa3b7
leaq 0x1358(%rip), %rdx      # 0xa3c7
leaq 0x20(%rsp), %rdi
callq 0x5182
leaq 0x10(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x133f(%rip), %rsi      # 0xa3c8
leaq 0x1348(%rip), %rdx      # 0xa3d8
movq %rsp, %rdi
callq 0x5182
leaq 0xd0(%rsp), %r12
movq %r12, -0x10(%r12)
movq 0x20(%rsp), %rsi
movq 0x28(%rsp), %rdx
addq %rsi, %rdx
leaq 0xc0(%rsp), %rdi
callq 0x939e
leaq 0xb0(%rsp), %r13
movq %r13, -0x10(%r13)
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
addq %rsi, %rdx
leaq 0xa0(%rsp), %rdi
callq 0x939e
leaq 0x40(%rsp), %rdi
leaq 0xc0(%rsp), %rsi
leaq 0xa0(%rsp), %rdx
movl $0x2, %ecx
callq 0x62ea
movq 0xa0(%rsp), %rdi
cmpq %r13, %rdi
je 0x9120
movq 0xb0(%rsp), %rsi
incq %rsi
callq 0x2110
movq 0xc0(%rsp), %rdi
cmpq %r12, %rdi
je 0x913d
movq 0xd0(%rsp), %rsi
incq %rsi
callq 0x2110
movq 0x40(%rsp), %rsi
movq 0x48(%rsp), %rdx
movq 0x5e82(%rip), %rdi      # 0xefd0
callq 0x2130
leaq 0x127f(%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 0x939e
leaq 0x70(%rsp), %r13
movq %r13, -0x10(%r13)
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
addq %rsi, %rdx
leaq 0x60(%rsp), %rdi
callq 0x939e
leaq 0xe0(%rsp), %rdi
leaq 0x80(%rsp), %rsi
leaq 0x60(%rsp), %rdx
movl $0x2, %ecx
callq 0x672c
movq 0x60(%rsp), %rdi
cmpq %r13, %rdi
je 0x91e3
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x2110
movq 0x80(%rsp), %rdi
cmpq %r12, %rdi
je 0x9200
movq 0x90(%rsp), %rsi
incq %rsi
callq 0x2110
movq 0x20(%rsp), %rsi
movq 0x28(%rsp), %rdx
movq 0x5dbf(%rip), %rdi      # 0xefd0
callq 0x2130
leaq 0x11bc(%rip), %rsi      # 0xa3d9
movl $0x1, %edx
movq %rax, %rdi
callq 0x2130
leaq 0xf0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x924b
movq 0xf0(%rsp), %rsi
incq %rsi
callq 0x2110
leaq 0x50(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x9266
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x2110
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x927c
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x2110
movq 0x20(%rsp), %rdi
cmpq %r14, %rdi
je 0x9293
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 0x92c5
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x2110
jmp 0x92c5
movq %rax, %rbx
movq 0x80(%rsp), %rdi
cmpq %r12, %rdi
je 0x934d
movq 0x90(%rsp), %rsi
jmp 0x9340
jmp 0x934a
movq %rax, %rbx
movq 0xa0(%rsp), %rdi
cmpq %r13, %rdi
je 0x9303
movq 0xb0(%rsp), %rsi
incq %rsi
callq 0x2110
jmp 0x9303
movq %rax, %rbx
movq 0xc0(%rsp), %rdi
cmpq %r12, %rdi
je 0x9368
movq 0xd0(%rsp), %rsi
jmp 0x9360
movq %rax, %rbx
jmp 0x9368
movq %rax, %rbx
jmp 0x937e
movq %rax, %rbx
leaq 0xf0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x934d
movq 0xf0(%rsp), %rsi
incq %rsi
callq 0x2110
jmp 0x934d
movq %rax, %rbx
leaq 0x50(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x9368
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x2110
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x937e
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x2110
movq 0x20(%rsp), %rdi
cmpq %r14, %rdi
je 0x9395
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x2110
movq %rbx, %rdi
callq 0x21b0
nop