LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: lmclaramunt[P]AES-Crypto/Sequence.cpp
// Function: Sequence::setSize(int)
void Sequence::setSize(int _size) {
    if(_size > 16 || _size < 0) throw "Invalid capacity\n";
    if(size != _size) {
        unsigned char* temp = new unsigned char[_size];
        for(int i=0; i< _size; i++)
            temp[i] = sq[i];
        delete[] sq;
        sq = temp;
        size = _size;
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x28(%rbp)
cmpl $0x10, -0xc(%rbp)
jg 0x4ac3
cmpl $0x0, -0xc(%rbp)
jge 0x4aea
movl $0x8, %edi
callq 0x3120
movq %rax, %rdi
leaq 0xa8af(%rip), %rax      # 0xf386
movq %rax, (%rdi)
movq 0x114df(%rip), %rsi     # 0x15fc0
xorl %eax, %eax
movl %eax, %edx
callq 0x3490
movq -0x28(%rbp), %rax
movl 0x8(%rax), %eax
cmpl -0xc(%rbp), %eax
je 0x4b61
movslq -0xc(%rbp), %rdi
callq 0x3030
movq %rax, -0x18(%rbp)
movl $0x0, -0x1c(%rbp)
movl -0x1c(%rbp), %eax
cmpl -0xc(%rbp), %eax
jge 0x4b36
movq -0x28(%rbp), %rax
movq (%rax), %rax
movslq -0x1c(%rbp), %rcx
movb (%rax,%rcx), %dl
movq -0x18(%rbp), %rax
movslq -0x1c(%rbp), %rcx
movb %dl, (%rax,%rcx)
movl -0x1c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x1c(%rbp)
jmp 0x4b0a
movq -0x28(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x30(%rbp)
cmpq $0x0, %rax
je 0x4b50
movq -0x30(%rbp), %rdi
callq 0x3350
movq -0x28(%rbp), %rax
movq -0x18(%rbp), %rcx
movq %rcx, (%rax)
movl -0xc(%rbp), %ecx
movl %ecx, 0x8(%rax)
addq $0x30, %rsp
popq %rbp
retq
nopw (%rax,%rax)
// File: lmclaramunt[P]AES-Crypto/Sequence.cpp
// Function: Sequence::updateSequence(Sequence)
void Sequence::updateSequence(Sequence seq) {
    if(size == (seq).getSize()) {
        for(int i=0; i < (seq).getSize(); i++)
            sq[i] = (seq).getSequence()[i];
    } else
        throw "Sequences of different size";   
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rsi, -0x10(%rbp)
movl %edx, -0x8(%rbp)
movq %rdi, -0x18(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x28(%rbp)
movl 0x8(%rax), %eax
movl %eax, -0x20(%rbp)
leaq -0x10(%rbp), %rdi
callq 0x4a60
movl %eax, %ecx
movl -0x20(%rbp), %eax
cmpl %ecx, %eax
jne 0x4bf3
movl $0x0, -0x1c(%rbp)
movl -0x1c(%rbp), %eax
movl %eax, -0x2c(%rbp)
leaq -0x10(%rbp), %rdi
callq 0x4a60
movl %eax, %ecx
movl -0x2c(%rbp), %eax
cmpl %ecx, %eax
jge 0x4bf1
leaq -0x10(%rbp), %rdi
callq 0x4a50
movq %rax, %rcx
movq -0x28(%rbp), %rax
movq (%rcx), %rcx
movslq -0x1c(%rbp), %rdx
movb (%rcx,%rdx), %dl
movq (%rax), %rax
movslq -0x1c(%rbp), %rcx
movb %dl, (%rax,%rcx)
movl -0x1c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x1c(%rbp)
jmp 0x4baa
jmp 0x4c1a
movl $0x8, %edi
callq 0x3120
movq %rax, %rdi
leaq 0xa791(%rip), %rax      # 0xf398
movq %rax, (%rdi)
movq 0x113af(%rip), %rsi     # 0x15fc0
xorl %eax, %eax
movl %eax, %edx
callq 0x3490
addq $0x30, %rsp
popq %rbp
retq
// File: lmclaramunt[P]AES-Crypto/Sequence.cpp
// Function: operator<<(std::ostream&, Sequence&)
ostream& operator<<(ostream& os, Sequence& seq) {
    for (int i=0; i < seq.getSize(); i++) 
        os << hex <<(int)seq.getSequence()[i]<< ' ';
    os << endl;
    return os;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl $0x0, -0x14(%rbp)
movl -0x14(%rbp), %eax
movl %eax, -0x18(%rbp)
movq -0x10(%rbp), %rdi
callq 0x4a60
movl %eax, %ecx
movl -0x18(%rbp), %eax
cmpl %ecx, %eax
jge 0x4c98
movq -0x8(%rbp), %rdi
leaq 0x106(%rip), %rsi       # 0x4d60
callq 0x3090
movq %rax, -0x20(%rbp)
movq -0x10(%rbp), %rdi
callq 0x4a50
movq -0x20(%rbp), %rdi
movq (%rax), %rax
movslq -0x14(%rbp), %rcx
movzbl (%rax,%rcx), %esi
callq 0x34a0
movq %rax, %rdi
movl $0x20, %esi
callq 0x3300
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0x4c37
movq -0x8(%rbp), %rdi
movq 0x11315(%rip), %rsi     # 0x15fb8
callq 0x32a0
movq -0x8(%rbp), %rax
addq $0x20, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: lmclaramunt[P]AES-Crypto/Sequence.cpp
// Function: operator^(Sequence&, Sequence&)
Sequence& operator^(Sequence& a, Sequence& b) {
    int m = min(a.getSize(), b.getSize());
    for (int i=0; i < m; i++) {
        a.getSequence()[i] ^= b.getSequence()[i];
    }
    return a;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rdi
callq 0x4a60
movl %eax, -0x18(%rbp)
movq -0x10(%rbp), %rdi
callq 0x4a60
movl %eax, -0x1c(%rbp)
leaq -0x18(%rbp), %rdi
leaq -0x1c(%rbp), %rsi
callq 0x4d90
movl (%rax), %eax
movl %eax, -0x14(%rbp)
movl $0x0, -0x20(%rbp)
movl -0x20(%rbp), %eax
cmpl -0x14(%rbp), %eax
jge 0x4d47
movq -0x10(%rbp), %rdi
callq 0x4a50
movq (%rax), %rax
movslq -0x20(%rbp), %rcx
movzbl (%rax,%rcx), %eax
movl %eax, -0x24(%rbp)
movq -0x8(%rbp), %rdi
callq 0x4a50
movl -0x24(%rbp), %esi
movq (%rax), %rax
movslq -0x20(%rbp), %rcx
movzbl (%rax,%rcx), %edx
xorl %esi, %edx
movb %dl, (%rax,%rcx)
movl -0x20(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x20(%rbp)
jmp 0x4d01
movq -0x8(%rbp), %rax
addq $0x30, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
nopl (%rax,%rax)
// File: lmclaramunt[P]AES-Crypto/Block.cpp
// Function: Block::Block(std::vector<unsigned char, std::allocator<unsigned char>>*, bool)
Block::Block(vector<unsigned char>* input, bool pad) {
    if(pad) padding(input);
    Sequence sq = ((*input).size() >= 16) ? Sequence(16) : Sequence((*input).size());
    int j = 0;
    for (int i=0; i < (*input).size(); i++) {
        sq.getSequence()[j] = (unsigned) (*input).at(i);
        if (i%16==15) {
            sequenceVct.push_back(sq);      //Append 128 bits, and restart
            sq = (((*input).size()-(i+1)) >= 16) ? Sequence(16) : Sequence(((*input).size()-(i+1)));
            j = -1;
        }
        j++;
    }
    if (j != 0) sequenceVct.push_back(sq);       //Left over is padding was avoided
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x80, %rsp
movb %dl, %al
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
andb $0x1, %al
movb %al, -0x11(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x58(%rbp)
callq 0x52a0
testb $0x1, -0x11(%rbp)
je 0x4f38
movq -0x58(%rbp), %rdi
movq -0x10(%rbp), %rsi
callq 0x50a0
jmp 0x4f1c
jmp 0x4f38
movq -0x58(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x20(%rbp)
movl %eax, -0x24(%rbp)
callq 0x5390
jmp 0x5091
movq -0x10(%rbp), %rdi
callq 0x52c0
cmpq $0x10, %rax
jb 0x4f59
leaq -0x38(%rbp), %rdi
movl $0x10, %esi
callq 0x4a10
jmp 0x4f57
jmp 0x4f71
movq -0x10(%rbp), %rdi
callq 0x52c0
movl %eax, %esi
leaq -0x38(%rbp), %rdi
callq 0x4a10
jmp 0x4f6f
jmp 0x4f71
movl $0x0, -0x3c(%rbp)
movl $0x0, -0x40(%rbp)
movslq -0x40(%rbp), %rax
movq %rax, -0x60(%rbp)
movq -0x10(%rbp), %rdi
callq 0x52c0
movq %rax, %rcx
movq -0x60(%rbp), %rax
cmpq %rcx, %rax
jae 0x5071
movq -0x10(%rbp), %rdi
movslq -0x40(%rbp), %rsi
callq 0x52e0
movq %rax, -0x68(%rbp)
jmp 0x4fb3
movq -0x68(%rbp), %rax
movb (%rax), %al
movb %al, -0x71(%rbp)
leaq -0x38(%rbp), %rdi
callq 0x4a50
movq %rax, -0x70(%rbp)
jmp 0x4fcb
movb -0x71(%rbp), %dl
movq -0x70(%rbp), %rax
movq (%rax), %rax
movslq -0x3c(%rbp), %rcx
movb %dl, (%rax,%rcx)
movl -0x40(%rbp), %eax
movl $0x10, %ecx
cltd
idivl %ecx
cmpl $0xf, %edx
jne 0x505a
movq -0x58(%rbp), %rdi
leaq -0x38(%rbp), %rsi
callq 0x5320
jmp 0x4ffb
movq -0x10(%rbp), %rdi
callq 0x52c0
movl -0x40(%rbp), %ecx
addl $0x1, %ecx
movslq %ecx, %rcx
subq %rcx, %rax
cmpq $0x10, %rax
jb 0x5028
leaq -0x50(%rbp), %rdi
movl $0x10, %esi
callq 0x4a10
jmp 0x5026
jmp 0x5045
movq -0x10(%rbp), %rdi
callq 0x52c0
movl -0x40(%rbp), %esi
notl %esi
addl %eax, %esi
leaq -0x50(%rbp), %rdi
callq 0x4a10
jmp 0x5043
jmp 0x5045
movq -0x50(%rbp), %rax
movq %rax, -0x38(%rbp)
movl -0x48(%rbp), %eax
movl %eax, -0x30(%rbp)
movl $0xffffffff, -0x3c(%rbp) # imm = 0xFFFFFFFF
movl -0x3c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x3c(%rbp)
movl -0x40(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x40(%rbp)
jmp 0x4f7f
cmpl $0x0, -0x3c(%rbp)
je 0x5088
movq -0x58(%rbp), %rdi
leaq -0x38(%rbp), %rsi
callq 0x5320
jmp 0x5086
jmp 0x5088
addq $0x80, %rsp
popq %rbp
retq
movq -0x20(%rbp), %rdi
callq 0x34d0
nopw (%rax,%rax)
// File: lmclaramunt[P]AES-Crypto/Block.cpp
// Function: Block::~Block()
Block::~Block() {
    try {
        sequenceVct.clear();
        sequenceVct.shrink_to_fit();
    } catch (...) {
        cout<<"Could not clear the vector from memory!"<<endl;
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x20(%rbp)
callq 0x53f0
movq -0x20(%rbp), %rdi
callq 0x5410
jmp 0x5124
jmp 0x516f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x10(%rbp)
movl %eax, -0x14(%rbp)
movq -0x10(%rbp), %rdi
callq 0x30b0
movq 0x10e8e(%rip), %rdi     # 0x15fd0
leaq 0xa26b(%rip), %rsi      # 0xf3b4
callq 0x3270
movq %rax, -0x28(%rbp)
jmp 0x5154
movq -0x28(%rbp), %rdi
movq 0x10e59(%rip), %rsi     # 0x15fb8
callq 0x32a0
jmp 0x5166
callq 0x3450
jmp 0x516d
jmp 0x516f
movq -0x20(%rbp), %rdi
callq 0x5390
addq $0x30, %rsp
popq %rbp
retq
movq %rax, %rdi
callq 0x49d0
nopw %cs:(%rax,%rax)
// File: lmclaramunt[P]AES-Crypto/Block.cpp
// Function: operator<<(std::ostream&, Block const&)
ostream& operator<<(ostream& os, const Block& block) {
    for (Sequence sq: block.sequenceVct) {
        for (int i = 0; i < sq.getSize(); i++) {
            os << hex << (int)sq.getSequence()[i]<<" ";
        }
        os << endl;
    }
    return os;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rdi
callq 0x5460
movq %rax, -0x20(%rbp)
movq -0x18(%rbp), %rdi
callq 0x5490
movq %rax, -0x28(%rbp)
leaq -0x20(%rbp), %rdi
leaq -0x28(%rbp), %rsi
callq 0x54c0
testb $0x1, %al
jne 0x51e8
jmp 0x5288
leaq -0x20(%rbp), %rdi
callq 0x5500
movq (%rax), %rcx
movq %rcx, -0x38(%rbp)
movq 0x8(%rax), %rax
movq %rax, -0x30(%rbp)
movl $0x0, -0x3c(%rbp)
movl -0x3c(%rbp), %eax
movl %eax, -0x40(%rbp)
leaq -0x38(%rbp), %rdi
callq 0x4a60
movl %eax, %ecx
movl -0x40(%rbp), %eax
cmpl %ecx, %eax
jge 0x526a
movq -0x8(%rbp), %rdi
leaq -0x4ca(%rip), %rsi      # 0x4d60
callq 0x3090
movq %rax, -0x48(%rbp)
leaq -0x38(%rbp), %rdi
callq 0x4a50
movq -0x48(%rbp), %rdi
movq (%rax), %rax
movslq -0x3c(%rbp), %rcx
movzbl (%rax,%rcx), %esi
callq 0x34a0
movq %rax, %rdi
leaq 0x9fb3(%rip), %rsi      # 0xf20d
callq 0x3270
movl -0x3c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x3c(%rbp)
jmp 0x5207
movq -0x8(%rbp), %rdi
movq 0x10d43(%rip), %rsi     # 0x15fb8
callq 0x32a0
leaq -0x20(%rbp), %rdi
callq 0x5520
jmp 0x51d2
movq -0x8(%rbp), %rax
addq $0x50, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
nopl (%rax)
// File: lmclaramunt[P]AES-Crypto/State.cpp
// Function: State::State(Sequence*)
State::State(Sequence* sq): s(new unsigned char*[4]) {
    for (int i=0; i < 4; i++) {
        s[i] = new unsigned char[4];
    }
    for (int i=0; i < 4; i++) {
        for (int j=0; j < 4; j++) {
            s[i][j] = sq->getSequence()[i + 4*j];
        }
    }
}

/*
 * Destructor for cleanup
 */
State::~State() {
    try {
        for (int i=0; i < 4; i++) 
            for (int j=0; j < 4; j++) s[i][j] = 0;
    } catch (...) {
        throw "Failed to override the used State!\n";
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x28(%rbp)
movl $0x20, %edi
callq 0x3030
movq %rax, %rcx
movq -0x28(%rbp), %rax
movq %rcx, (%rax)
movl $0x0, -0x14(%rbp)
cmpl $0x4, -0x14(%rbp)
jge 0x72e0
movl $0x4, %edi
callq 0x3030
movq %rax, %rdx
movq -0x28(%rbp), %rax
movq (%rax), %rax
movslq -0x14(%rbp), %rcx
movq %rdx, (%rax,%rcx,8)
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0x72b3
movl $0x0, -0x18(%rbp)
cmpl $0x4, -0x18(%rbp)
jge 0x7348
movl $0x0, -0x1c(%rbp)
cmpl $0x4, -0x1c(%rbp)
jge 0x733b
movq -0x10(%rbp), %rdi
callq 0x4a50
movq %rax, %rcx
movq -0x28(%rbp), %rax
movq (%rcx), %rcx
movl -0x18(%rbp), %edx
movl -0x1c(%rbp), %esi
shll $0x2, %esi
addl %esi, %edx
movslq %edx, %rdx
movb (%rcx,%rdx), %dl
movq (%rax), %rax
movslq -0x18(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq -0x1c(%rbp), %rcx
movb %dl, (%rax,%rcx)
movl -0x1c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x1c(%rbp)
jmp 0x72f4
jmp 0x733d
movl -0x18(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x18(%rbp)
jmp 0x72e7
addq $0x30, %rsp
popq %rbp
retq
nop
// File: lmclaramunt[P]AES-Crypto/State.cpp
// Function: State::toSequence() const
Sequence State::toSequence() const {
    Sequence sq(16);
    for(int column = 0; column < 4; column++) {
        for(int row = 0; row < 4; row++){    
            sq.getSequence()[row + 4*column] = s[row][column];
        }
    }
    return sq;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x18(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x28(%rbp)
leaq -0x10(%rbp), %rdi
movl $0x10, %esi
callq 0x4a10
movl $0x0, -0x1c(%rbp)
cmpl $0x4, -0x1c(%rbp)
jge 0x745d
movl $0x0, -0x20(%rbp)
cmpl $0x4, -0x20(%rbp)
jge 0x7450
movq -0x28(%rbp), %rax
movq (%rax), %rax
movslq -0x20(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq -0x1c(%rbp), %rcx
movb (%rax,%rcx), %al
movb %al, -0x29(%rbp)
leaq -0x10(%rbp), %rdi
callq 0x4a50
movb -0x29(%rbp), %dl
movq (%rax), %rax
movl -0x20(%rbp), %ecx
movl -0x1c(%rbp), %esi
shll $0x2, %esi
addl %esi, %ecx
movslq %ecx, %rcx
movb %dl, (%rax,%rcx)
movl -0x20(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x20(%rbp)
jmp 0x7406
jmp 0x7452
movl -0x1c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x1c(%rbp)
jmp 0x73f9
movq -0x10(%rbp), %rax
movl -0x8(%rbp), %edx
addq $0x30, %rsp
popq %rbp
retq
nopw (%rax,%rax)
// File: lmclaramunt[P]AES-Crypto/State.cpp
// Function: operator<<(std::ostream&, State const&)
ostream& operator<<(ostream& os, const State& state) {
    for (int i=0; i < 4; i++) {
        for (int j=0; j < 4; j++) {
            os << hex <<(int)state.s[i][j] << ' ';
        }
        os << endl;
    }
    return os;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl $0x0, -0x14(%rbp)
cmpl $0x4, -0x14(%rbp)
jge 0x751c
movl $0x0, -0x18(%rbp)
cmpl $0x4, -0x18(%rbp)
jge 0x7501
movq -0x8(%rbp), %rdi
leaq -0x2765(%rip), %rsi     # 0x4d60
callq 0x3090
movq %rax, %rdi
movq -0x10(%rbp), %rax
movq (%rax), %rax
movslq -0x14(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq -0x18(%rbp), %rcx
movzbl (%rax,%rcx), %esi
callq 0x34a0
movq %rax, %rdi
movl $0x20, %esi
callq 0x3300
movl -0x18(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x18(%rbp)
jmp 0x74b4
movq -0x8(%rbp), %rdi
movq 0xeaac(%rip), %rsi      # 0x15fb8
callq 0x32a0
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0x74a7
movq -0x8(%rbp), %rax
addq $0x20, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: lmclaramunt[P]AES-Crypto/State.cpp
// Function: operator^(State&, State&)
State& operator^(State& a, State& b) {
    for (int i=0; i < 4; i++) {
        for (int j=0; j < 4; j++) {
            a.s[i][j] ^= b.s[i][j];
        }
    }
    return a;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl $0x0, -0x14(%rbp)
cmpl $0x4, -0x14(%rbp)
jge 0x75a1
movl $0x0, -0x18(%rbp)
cmpl $0x4, -0x18(%rbp)
jge 0x7594
movq -0x10(%rbp), %rax
movq (%rax), %rax
movslq -0x14(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq -0x18(%rbp), %rcx
movzbl (%rax,%rcx), %esi
movq -0x8(%rbp), %rax
movq (%rax), %rax
movslq -0x14(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq -0x18(%rbp), %rcx
movzbl (%rax,%rcx), %edx
xorl %esi, %edx
movb %dl, (%rax,%rcx)
movl -0x18(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x18(%rbp)
jmp 0x7550
jmp 0x7596
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0x7543
movq -0x8(%rbp), %rax
popq %rbp
retq
nopw (%rax,%rax)
// File: lmclaramunt[P]AES-Crypto/Cipher.cpp
// Function: Cipher::cryptoDir()
void Cipher::cryptoDir() {
    struct stat info;
    home = getenv("HOME");
    home += "/.crypto";
    char *pathname = &home[0];
    if(stat(pathname, &info) != 0) {
        mkdir(pathname, 0770);
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xb0, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0xa8(%rbp)
leaq 0x7f0b(%rip), %rdi      # 0xf74c
callq 0x3320
movq -0xa8(%rbp), %rdi
movq %rax, %rsi
addq $0x30, %rdi
callq 0x3380
movq -0xa8(%rbp), %rdi
addq $0x30, %rdi
leaq 0x7ee6(%rip), %rsi      # 0xf751
callq 0x3260
movq -0xa8(%rbp), %rdi
addq $0x30, %rdi
xorl %eax, %eax
movl %eax, %esi
callq 0x3540
movq %rax, -0xa0(%rbp)
movq -0xa0(%rbp), %rdi
leaq -0x98(%rbp), %rsi
callq 0x3230
cmpl $0x0, %eax
je 0x78b4
movq -0xa0(%rbp), %rdi
movl $0x1f8, %esi            # imm = 0x1F8
callq 0x3100
addq $0xb0, %rsp
popq %rbp
retq
nopl (%rax)
// File: lmclaramunt[P]AES-Crypto/Cipher.cpp
// Function: Cipher::readText(std::vector<unsigned char, std::allocator<unsigned char>>*)
void Cipher::readText(vector<unsigned char>* inpVct) {
    ifstream input(*textPath, ios::binary);
    streampos textSize;             //Size of the file
    input.seekg(0, ios::end);
    textSize = input.tellg();
    input.seekg(0, ios::beg);
    inpVct->reserve(textSize);      //The vector will have enough space for all elements
    inpVct->insert(inpVct->begin(), 
        (istreambuf_iterator<char>(input)),
        (istreambuf_iterator<char>()));
    input.close();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x2c0, %rsp            # imm = 0x2C0
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq 0x28(%rax), %rsi
leaq -0x218(%rbp), %rdi
movl $0x4, %edx
callq 0x3430
leaq -0x230(%rbp), %rdi
callq 0xb260
jmp 0x7e9a
xorl %eax, %eax
movl %eax, %esi
leaq -0x218(%rbp), %rdi
movl $0x2, %edx
callq 0x3370
jmp 0x7eb1
leaq -0x218(%rbp), %rdi
callq 0x34b0
movq %rdx, -0x298(%rbp)
movq %rax, -0x290(%rbp)
jmp 0x7ecd
movq -0x298(%rbp), %rax
movq -0x290(%rbp), %rcx
movq %rcx, -0x250(%rbp)
movq %rax, -0x248(%rbp)
movups -0x250(%rbp), %xmm0
movaps %xmm0, -0x230(%rbp)
xorl %edx, %edx
movl %edx, %esi
leaq -0x218(%rbp), %rdi
callq 0x3370
jmp 0x7f09
movq -0x10(%rbp), %rax
movq %rax, -0x2a8(%rbp)
leaq -0x230(%rbp), %rdi
callq 0xb000
movq %rax, -0x2a0(%rbp)
jmp 0x7f29
movq -0x2a0(%rbp), %rsi
movq -0x2a8(%rbp), %rdi
callq 0xb290
jmp 0x7f3e
movq -0x10(%rbp), %rdi
movq %rdi, -0x2b8(%rbp)
callq 0x6dd0
movq %rax, -0x260(%rbp)
leaq -0x258(%rbp), %rdi
leaq -0x260(%rbp), %rsi
callq 0xb450
leaq -0x270(%rbp), %rdi
leaq -0x218(%rbp), %rsi
callq 0xb490
leaq -0x280(%rbp), %rdi
callq 0xb4f0
movq -0x2b8(%rbp), %rdi
movq -0x258(%rbp), %rsi
movq -0x270(%rbp), %rdx
movl -0x268(%rbp), %ecx
movq -0x280(%rbp), %r8
movl -0x278(%rbp), %r9d
callq 0xb370
movq %rax, -0x2b0(%rbp)
jmp 0x7fbe
movq -0x2b0(%rbp), %rax
movq %rax, -0x288(%rbp)
leaq -0x218(%rbp), %rdi
callq 0x3050
jmp 0x7fda
leaq -0x218(%rbp), %rdi
callq 0x3060
addq $0x2c0, %rsp            # imm = 0x2C0
popq %rbp
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x238(%rbp)
movl %eax, -0x23c(%rbp)
leaq -0x218(%rbp), %rdi
callq 0x3060
movq -0x238(%rbp), %rdi
callq 0x34d0
nopl (%rax)
// File: lmclaramunt[P]AES-Crypto/Cipher.cpp
// Function: Cipher::getKeySize(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>*)
int Cipher::getKeySize(string* aesKey, string* macKey){
    ifstream aes(*aesKey, ios::binary);
    aes.seekg(0, ios::end);
    int aes_size = aes.tellg();
    ifstream mac(*macKey, ios::binary);
    mac.seekg(0, ios::end);
    int mac_size = mac.tellg();
    if(aes_size != mac_size)
        throw "AES and MAC key must be of the same size\n";
    return aes_size*8;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x4a0, %rsp            # imm = 0x4A0
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x10(%rbp), %rsi
leaq -0x220(%rbp), %rdi
movq %rdi, -0x468(%rbp)
movl $0x4, %edx
callq 0x3430
movq -0x468(%rbp), %rdi
xorl %eax, %eax
movl %eax, %esi
movl $0x2, %edx
callq 0x3370
jmp 0x83da
leaq -0x220(%rbp), %rdi
callq 0x34b0
movq %rdx, -0x478(%rbp)
movq %rax, -0x470(%rbp)
jmp 0x83f6
movq -0x478(%rbp), %rax
movq -0x470(%rbp), %rcx
movq %rcx, -0x240(%rbp)
movq %rax, -0x238(%rbp)
leaq -0x240(%rbp), %rdi
callq 0xb000
movq %rax, -0x480(%rbp)
jmp 0x8427
movq -0x480(%rbp), %rax
movl %eax, -0x230(%rbp)
movq -0x18(%rbp), %rsi
leaq -0x448(%rbp), %rdi
movl $0x4, %edx
callq 0x3430
jmp 0x844b
xorl %eax, %eax
movl %eax, %esi
leaq -0x448(%rbp), %rdi
movl $0x2, %edx
callq 0x3370
jmp 0x8462
leaq -0x448(%rbp), %rdi
callq 0x34b0
movq %rdx, -0x490(%rbp)
movq %rax, -0x488(%rbp)
jmp 0x847e
movq -0x490(%rbp), %rax
movq -0x488(%rbp), %rcx
movq %rcx, -0x460(%rbp)
movq %rax, -0x458(%rbp)
leaq -0x460(%rbp), %rdi
callq 0xb000
movq %rax, -0x498(%rbp)
jmp 0x84af
movq -0x498(%rbp), %rax
movl %eax, -0x44c(%rbp)
movl -0x230(%rbp), %eax
cmpl -0x44c(%rbp), %eax
je 0x852a
movl $0x8, %edi
callq 0x3120
movq %rax, %rdi
leaq 0x7244(%rip), %rax      # 0xf722
movq %rax, (%rdi)
movq 0xdad8(%rip), %rsi      # 0x15fc0
xorl %eax, %eax
movl %eax, %edx
callq 0x3490
jmp 0x8578
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x228(%rbp)
movl %eax, -0x22c(%rbp)
jmp 0x8560
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x228(%rbp)
movl %eax, -0x22c(%rbp)
leaq -0x448(%rbp), %rdi
callq 0x3060
jmp 0x8560
movl -0x230(%rbp), %eax
shll $0x3, %eax
movl %eax, -0x49c(%rbp)
leaq -0x448(%rbp), %rdi
callq 0x3060
leaq -0x220(%rbp), %rdi
callq 0x3060
movl -0x49c(%rbp), %eax
addq $0x4a0, %rsp            # imm = 0x4A0
popq %rbp
retq
leaq -0x220(%rbp), %rdi
callq 0x3060
movq -0x228(%rbp), %rdi
callq 0x34d0
nopl (%rax,%rax)
// File: lmclaramunt[P]AES-Crypto/Cipher.cpp
// Function: Cipher::~Cipher()
Cipher::~Cipher() {
    try {
        inputBlock->~Block();
        for(int j=0; j<4*(Nr+1); j++) {
            std::fill_n(aesKeyExp[j], 4, 0);
            delete[] aesKeyExp[j];
            std::fill_n(macKeyExp[j], 4, 0);
            delete[] macKeyExp[j];
        }
        delete[] aesKeyExp, macKeyExp;
    } catch (...) {
        cout<<"Could not clear the keyExpansion from memory!"<<endl;
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x28(%rbp)
movq 0x10(%rax), %rdi
callq 0x5100
movl $0x0, -0xc(%rbp)
movq -0x28(%rbp), %rcx
movl -0xc(%rbp), %eax
movl 0x1c(%rcx), %ecx
addl $0x1, %ecx
shll $0x2, %ecx
cmpl %ecx, %eax
jge 0x8984
movq -0x28(%rbp), %rax
movq (%rax), %rax
movslq -0xc(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
movl $0x0, -0x10(%rbp)
movl $0x4, %esi
leaq -0x10(%rbp), %rdx
callq 0xafb0
jmp 0x8892
movq -0x28(%rbp), %rax
movq (%rax), %rax
movslq -0xc(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, -0x30(%rbp)
cmpq $0x0, %rax
je 0x88b4
movq -0x30(%rbp), %rdi
callq 0x3350
movq -0x28(%rbp), %rax
movq 0x8(%rax), %rax
movslq -0xc(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
movl $0x0, -0x20(%rbp)
movl $0x4, %esi
leaq -0x20(%rbp), %rdx
callq 0xafb0
jmp 0x88db
movq -0x28(%rbp), %rax
movq 0x8(%rax), %rax
movslq -0xc(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, -0x38(%rbp)
cmpq $0x0, %rax
je 0x88fe
movq -0x38(%rbp), %rdi
callq 0x3350
jmp 0x8900
movl -0xc(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xc(%rbp)
jmp 0x8854
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x18(%rbp)
movl %eax, -0x1c(%rbp)
movq -0x18(%rbp), %rdi
callq 0x30b0
movq 0xd6a6(%rip), %rdi      # 0x15fd0
leaq 0x6dc3(%rip), %rsi      # 0xf6f4
callq 0x3270
movq %rax, -0x40(%rbp)
jmp 0x893c
movq -0x40(%rbp), %rdi
movq 0xd671(%rip), %rsi      # 0x15fb8
callq 0x32a0
jmp 0x894e
callq 0x3450
jmp 0x8955
jmp 0x8957
movq -0x28(%rbp), %rdi
addq $0x70, %rdi
callq 0x3180
movq -0x28(%rbp), %rdi
addq $0x50, %rdi
callq 0x3180
movq -0x28(%rbp), %rdi
addq $0x30, %rdi
callq 0x3180
addq $0x50, %rsp
popq %rbp
retq
movq -0x28(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x48(%rbp)
cmpq $0x0, %rax
je 0x899e
movq -0x48(%rbp), %rdi
callq 0x3350
jmp 0x8957
movq %rax, %rdi
callq 0x49d0
nopl (%rax,%rax)
// File: lmclaramunt[P]AES-Crypto/Cipher.cpp
// Function: Cipher::shiftColumnsByOne(unsigned char**, int*, bool)
void Cipher::shiftColumnsByOne(unsigned char** st, int* row, bool leftDir) {
    if(leftDir) {
        for(int column = 0; column < 3; column++) {
            unsigned char temp = st[*row][column];
            int next = (column + 1) % 4;
            st[*row][column] = st[*row][next];
            st[*row][next] = temp;
        }
    } else {
        for(int column = 3; column > 0; column--) {
            unsigned char temp = st[*row][column];
            int next = (column + 1) % 4;
            st[*row][column] = st[*row][next];
            st[*row][next] = temp;
        }
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movb %cl, %al
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
andb $0x1, %al
movb %al, -0x19(%rbp)
testb $0x1, -0x19(%rbp)
je 0x908d
movl $0x0, -0x20(%rbp)
cmpl $0x3, -0x20(%rbp)
jge 0x9088
movq -0x10(%rbp), %rax
movq -0x18(%rbp), %rcx
movslq (%rcx), %rcx
movq (%rax,%rcx,8), %rax
movslq -0x20(%rbp), %rcx
movb (%rax,%rcx), %al
movb %al, -0x21(%rbp)
movl -0x20(%rbp), %eax
addl $0x1, %eax
movl $0x4, %ecx
cltd
idivl %ecx
movl %edx, -0x28(%rbp)
movq -0x10(%rbp), %rax
movq -0x18(%rbp), %rcx
movslq (%rcx), %rcx
movq (%rax,%rcx,8), %rax
movslq -0x28(%rbp), %rcx
movb (%rax,%rcx), %dl
movq -0x10(%rbp), %rax
movq -0x18(%rbp), %rcx
movslq (%rcx), %rcx
movq (%rax,%rcx,8), %rax
movslq -0x20(%rbp), %rcx
movb %dl, (%rax,%rcx)
movb -0x21(%rbp), %dl
movq -0x10(%rbp), %rax
movq -0x18(%rbp), %rcx
movslq (%rcx), %rcx
movq (%rax,%rcx,8), %rax
movslq -0x28(%rbp), %rcx
movb %dl, (%rax,%rcx)
movl -0x20(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x20(%rbp)
jmp 0x9008
jmp 0x9116
movl $0x3, -0x2c(%rbp)
cmpl $0x0, -0x2c(%rbp)
jle 0x9114
movq -0x10(%rbp), %rax
movq -0x18(%rbp), %rcx
movslq (%rcx), %rcx
movq (%rax,%rcx,8), %rax
movslq -0x2c(%rbp), %rcx
movb (%rax,%rcx), %al
movb %al, -0x2d(%rbp)
movl -0x2c(%rbp), %eax
addl $0x1, %eax
movl $0x4, %ecx
cltd
idivl %ecx
movl %edx, -0x34(%rbp)
movq -0x10(%rbp), %rax
movq -0x18(%rbp), %rcx
movslq (%rcx), %rcx
movq (%rax,%rcx,8), %rax
movslq -0x34(%rbp), %rcx
movb (%rax,%rcx), %dl
movq -0x10(%rbp), %rax
movq -0x18(%rbp), %rcx
movslq (%rcx), %rcx
movq (%rax,%rcx,8), %rax
movslq -0x2c(%rbp), %rcx
movb %dl, (%rax,%rcx)
movb -0x2d(%rbp), %dl
movq -0x10(%rbp), %rax
movq -0x18(%rbp), %rcx
movslq (%rcx), %rcx
movq (%rax,%rcx,8), %rax
movslq -0x34(%rbp), %rcx
movb %dl, (%rax,%rcx)
movl -0x2c(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x2c(%rbp)
jmp 0x9094
jmp 0x9116
popq %rbp
retq
nopl (%rax,%rax)
// File: lmclaramunt[P]AES-Crypto/Cipher.cpp
// Function: Cipher::shiftColumnsByTwo(unsigned char**, int*)
void Cipher::shiftColumnsByTwo(unsigned char** st, int* row) {
    for(int column = 0; column < 2; column++) {
        unsigned char temp = st[*row][column];
        st[*row][column] = st[*row][column+2];
        st[*row][column+2] = temp;
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movl $0x0, -0x1c(%rbp)
cmpl $0x2, -0x1c(%rbp)
jge 0x91b0
movq -0x10(%rbp), %rax
movq -0x18(%rbp), %rcx
movslq (%rcx), %rcx
movq (%rax,%rcx,8), %rax
movslq -0x1c(%rbp), %rcx
movb (%rax,%rcx), %al
movb %al, -0x1d(%rbp)
movq -0x10(%rbp), %rax
movq -0x18(%rbp), %rcx
movslq (%rcx), %rcx
movq (%rax,%rcx,8), %rax
movl -0x1c(%rbp), %ecx
addl $0x2, %ecx
movslq %ecx, %rcx
movb (%rax,%rcx), %dl
movq -0x10(%rbp), %rax
movq -0x18(%rbp), %rcx
movslq (%rcx), %rcx
movq (%rax,%rcx,8), %rax
movslq -0x1c(%rbp), %rcx
movb %dl, (%rax,%rcx)
movb -0x1d(%rbp), %dl
movq -0x10(%rbp), %rax
movq -0x18(%rbp), %rcx
movslq (%rcx), %rcx
movq (%rax,%rcx,8), %rax
movl -0x1c(%rbp), %ecx
addl $0x2, %ecx
movslq %ecx, %rcx
movb %dl, (%rax,%rcx)
movl -0x1c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x1c(%rbp)
jmp 0x9137
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: lmclaramunt[P]AES-Crypto/Cipher.cpp
// Function: Cipher::shiftRows(unsigned char**)
void Cipher::shiftRows(unsigned char** st) {
    int row = 1;
    shiftColumnsByOne(st, &row, true);
    shiftColumnsByTwo(st, &(++row));
    shiftColumnsByOne(st, &(++row), false);   //Shift to the right by 1 is equivalent to shift to the left by 3
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x20(%rbp)
movl $0x1, -0x14(%rbp)
movq -0x10(%rbp), %rsi
leaq -0x14(%rbp), %rdx
movl $0x1, %ecx
callq 0x8fe0
movq -0x20(%rbp), %rdi
movq -0x10(%rbp), %rsi
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
leaq -0x14(%rbp), %rdx
callq 0x9120
movq -0x20(%rbp), %rdi
movq -0x10(%rbp), %rsi
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
leaq -0x14(%rbp), %rdx
xorl %ecx, %ecx
callq 0x8fe0
addq $0x20, %rsp
popq %rbp
retq
nopl (%rax)
// File: lmclaramunt[P]AES-Crypto/Cipher.cpp
// Function: Cipher::gFMultiply(unsigned char, unsigned char)
unsigned char Cipher::gFMultiply(unsigned char matrixValue, unsigned char st) {
    unsigned char mul = 0x00;
    if (matrixValue%0x02) {
        mul = st;
        matrixValue -= 0x01;
    }
    while (matrixValue) {
        unsigned char xt = st;
        for (int i=0; i < (int)log2(matrixValue); i++){
            xt = xTime(xt);
        }
        mul ^= xt;
        matrixValue %= (unsigned)(int)pow(2, (int)log2(matrixValue));
    }
    return mul;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movb %dl, %al
movb %sil, %cl
movq %rdi, -0x8(%rbp)
movb %cl, -0x9(%rbp)
movb %al, -0xa(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x18(%rbp)
movb $0x0, -0xb(%rbp)
movzbl -0x9(%rbp), %eax
movl $0x2, %ecx
cltd
idivl %ecx
cmpl $0x0, %edx
je 0x92b4
movb -0xa(%rbp), %al
movb %al, -0xb(%rbp)
movzbl -0x9(%rbp), %eax
subl $0x1, %eax
movb %al, -0x9(%rbp)
jmp 0x92b6
cmpb $0x0, -0x9(%rbp)
je 0x9335
movb -0xa(%rbp), %al
movb %al, -0xc(%rbp)
movl $0x0, -0x10(%rbp)
movl -0x10(%rbp), %eax
movl %eax, -0x1c(%rbp)
movzbl -0x9(%rbp), %edi
callq 0xb520
movl -0x1c(%rbp), %eax
cvttsd2si %xmm0, %ecx
cmpl %ecx, %eax
jge 0x92fe
movq -0x18(%rbp), %rdi
movzbl -0xc(%rbp), %esi
callq 0x9230
movb %al, -0xc(%rbp)
movl -0x10(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x10(%rbp)
jmp 0x92c9
movzbl -0xc(%rbp), %ecx
movzbl -0xb(%rbp), %eax
xorl %ecx, %eax
movb %al, -0xb(%rbp)
movzbl -0x9(%rbp), %edi
callq 0xb520
cvttsd2si %xmm0, %esi
movl $0x2, %edi
callq 0xb550
cvttsd2si %xmm0, %ecx
movzbl -0x9(%rbp), %eax
xorl %edx, %edx
divl %ecx
movb %dl, %al
movb %al, -0x9(%rbp)
jmp 0x92b6
movb -0xb(%rbp), %al
addq $0x20, %rsp
popq %rbp
retq
nop
// File: lmclaramunt[P]AES-Crypto/Cipher.cpp
// Function: Cipher::mixColumns(unsigned char**, unsigned char**)
void Cipher::mixColumns(unsigned char** st, unsigned char** s2){
    unsigned char matrixValues[4] = {0x02, 0x03, 0x01, 0x01};
    for (int i=0; i < 4; i++) {
        for (unsigned int j=0; j < 4; j++) {
            if (i==0) {
                s2[j] = new unsigned char[4];
            }
            unsigned int temp = 0;
            for (unsigned int k=0; k < 4; k++) {
                temp ^= gFMultiply(matrixValues[(k-j)%4], st[k][i]);
            }
            s2[j][i] = temp;
        }
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x38(%rbp)
movl 0x64d0(%rip), %eax      # 0xf832
movl %eax, -0x1c(%rbp)
movl $0x0, -0x20(%rbp)
cmpl $0x4, -0x20(%rbp)
jge 0x9430
movl $0x0, -0x24(%rbp)
cmpl $0x4, -0x24(%rbp)
jae 0x9420
cmpl $0x0, -0x20(%rbp)
jne 0x93a5
movl $0x4, %edi
callq 0x3030
movq %rax, %rdx
movq -0x18(%rbp), %rax
movl -0x24(%rbp), %ecx
movq %rdx, (%rax,%rcx,8)
movl $0x0, -0x28(%rbp)
movl $0x0, -0x2c(%rbp)
cmpl $0x4, -0x2c(%rbp)
jae 0x93fb
movq -0x38(%rbp), %rdi
movl -0x2c(%rbp), %eax
subl -0x24(%rbp), %eax
andl $0x3, %eax
movl %eax, %eax
movb -0x1c(%rbp,%rax), %dl
movq -0x10(%rbp), %rax
movl -0x2c(%rbp), %ecx
movq (%rax,%rcx,8), %rax
movslq -0x20(%rbp), %rcx
movzbl %dl, %esi
movzbl (%rax,%rcx), %edx
callq 0x9270
movzbl %al, %eax
xorl -0x28(%rbp), %eax
movl %eax, -0x28(%rbp)
movl -0x2c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x2c(%rbp)
jmp 0x93b3
movl -0x28(%rbp), %eax
movb %al, %dl
movq -0x18(%rbp), %rax
movl -0x24(%rbp), %ecx
movq (%rax,%rcx,8), %rax
movslq -0x20(%rbp), %rcx
movb %dl, (%rax,%rcx)
movl -0x24(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x24(%rbp)
jmp 0x937d
jmp 0x9422
movl -0x20(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x20(%rbp)
jmp 0x936c
addq $0x40, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: lmclaramunt[P]AES-Crypto/Cipher.cpp
// Function: Cipher::invSubBytes(unsigned char**)
void Cipher::invSubBytes(unsigned char** st) {
    for(int i = 0; i < 4; i++) {
        for(int j=0; j < 4; j++) {
            int k = (int)st[i][j];
            st[i][j] = sboxInv[k/16][k%16];
        }
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl $0x0, -0x14(%rbp)
cmpl $0x4, -0x14(%rbp)
jge 0x9904
movl $0x0, -0x18(%rbp)
cmpl $0x4, -0x18(%rbp)
jge 0x98f4
movq -0x10(%rbp), %rax
movslq -0x14(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq -0x18(%rbp), %rcx
movzbl (%rax,%rcx), %eax
movl %eax, -0x1c(%rbp)
movl -0x1c(%rbp), %eax
movl $0x10, %ecx
cltd
idivl %ecx
movslq %eax, %rcx
leaq 0x5cca(%rip), %rax      # 0xf580
shlq $0x4, %rcx
addq %rcx, %rax
movq %rax, -0x28(%rbp)
movl -0x1c(%rbp), %eax
movl $0x10, %ecx
cltd
idivl %ecx
movq -0x28(%rbp), %rax
movslq %edx, %rcx
movb (%rax,%rcx), %dl
movq -0x10(%rbp), %rax
movslq -0x14(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq -0x18(%rbp), %rcx
movb %dl, (%rax,%rcx)
movl -0x18(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x18(%rbp)
jmp 0x9884
jmp 0x98f6
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0x9873
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: lmclaramunt[P]AES-Crypto/Cipher.cpp
// Function: Cipher::invMixColumns(unsigned char**, unsigned char**)
void Cipher::invMixColumns(unsigned char** st, unsigned char** s2) {
    unsigned char matrixValues[4] = {0x0e, 0x0b, 0x0d, 0x09};
    for (int i=0; i < 4; i++) {
        for (unsigned int j=0; j < 4; j++) {
            if (i==0) {
                s2[j] = new unsigned char[4];
            }
            unsigned int temp = 0;
            for (unsigned int k=0; k < 4; k++) {
                temp ^= gFMultiply(matrixValues[(k-j)%4], st[k][i]);
            }
            s2[j][i] = temp;
        }
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x38(%rbp)
movl 0x5f04(%rip), %eax      # 0xf836
movl %eax, -0x1c(%rbp)
movl $0x0, -0x20(%rbp)
cmpl $0x4, -0x20(%rbp)
jge 0x9a00
movl $0x0, -0x24(%rbp)
cmpl $0x4, -0x24(%rbp)
jae 0x99f0
cmpl $0x0, -0x20(%rbp)
jne 0x9975
movl $0x4, %edi
callq 0x3030
movq %rax, %rdx
movq -0x18(%rbp), %rax
movl -0x24(%rbp), %ecx
movq %rdx, (%rax,%rcx,8)
movl $0x0, -0x28(%rbp)
movl $0x0, -0x2c(%rbp)
cmpl $0x4, -0x2c(%rbp)
jae 0x99cb
movq -0x38(%rbp), %rdi
movl -0x2c(%rbp), %eax
subl -0x24(%rbp), %eax
andl $0x3, %eax
movl %eax, %eax
movb -0x1c(%rbp,%rax), %dl
movq -0x10(%rbp), %rax
movl -0x2c(%rbp), %ecx
movq (%rax,%rcx,8), %rax
movslq -0x20(%rbp), %rcx
movzbl %dl, %esi
movzbl (%rax,%rcx), %edx
callq 0x9270
movzbl %al, %eax
xorl -0x28(%rbp), %eax
movl %eax, -0x28(%rbp)
movl -0x2c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x2c(%rbp)
jmp 0x9983
movl -0x28(%rbp), %eax
movb %al, %dl
movq -0x18(%rbp), %rax
movl -0x24(%rbp), %ecx
movq (%rax,%rcx,8), %rax
movslq -0x20(%rbp), %rcx
movb %dl, (%rax,%rcx)
movl -0x24(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x24(%rbp)
jmp 0x994d
jmp 0x99f2
movl -0x20(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x20(%rbp)
jmp 0x993c
addq $0x40, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: lmclaramunt[P]AES-Crypto/Cipher.cpp
// Function: Cipher::CBC_MAC(Block, bool, bool)
Sequence Cipher::CBC_MAC(Block block, bool encrypting, bool padding){
    Sequence tag(16);
    unsigned char* mssgLength;
    getMessageLength(&mssgLength, encrypting, padding);
    tag.setSequence(mssgLength);
    encrypt(&tag, macKeyExp);
    int i = -1;
    for(Sequence sq: block.getSequenceVector()){
        i++;
        if(!encrypting && (i < 1)) continue;    //First block of ciphertext contains MAC Tag, so ommit it
        tag = tag ^ sq;
        encrypt(&tag, macKeyExp);               //Using a different key than authorization!!
    }
    return tag;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x70, %rsp
movq %rsi, -0x68(%rbp)
movb %cl, %al
movb %dl, %cl
movq %rdi, -0x18(%rbp)
movq %rsi, -0x20(%rbp)
andb $0x1, %cl
movb %cl, -0x21(%rbp)
andb $0x1, %al
movb %al, -0x22(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x70(%rbp)
leaq -0x10(%rbp), %rdi
movl $0x10, %esi
callq 0x4a10
movq -0x70(%rbp), %rdi
movb -0x21(%rbp), %cl
movb -0x22(%rbp), %al
leaq -0x30(%rbp), %rsi
andb $0x1, %cl
andb $0x1, %al
movzbl %cl, %edx
movzbl %al, %ecx
callq 0x9dc0
movq -0x30(%rbp), %rsi
leaq -0x10(%rbp), %rdi
callq 0x4a80
movq -0x70(%rbp), %rdi
movq 0x8(%rdi), %rdx
leaq -0x10(%rbp), %rsi
callq 0x9570
movq -0x68(%rbp), %rdi
movl $0xffffffff, -0x34(%rbp) # imm = 0xFFFFFFFF
callq 0x5190
movq %rax, -0x40(%rbp)
movq -0x40(%rbp), %rdi
callq 0x5b00
movq %rax, -0x48(%rbp)
movq -0x40(%rbp), %rdi
callq 0x5980
movq %rax, -0x50(%rbp)
leaq -0x48(%rbp), %rdi
leaq -0x50(%rbp), %rsi
callq 0xb6a0
testb $0x1, %al
jne 0x9d46
jmp 0x9dab
leaq -0x48(%rbp), %rdi
callq 0x68c0
movq (%rax), %rcx
movq %rcx, -0x60(%rbp)
movq 0x8(%rax), %rax
movq %rax, -0x58(%rbp)
movl -0x34(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x34(%rbp)
testb $0x1, -0x21(%rbp)
jne 0x9d75
cmpl $0x1, -0x34(%rbp)
jge 0x9d75
jmp 0x9da0
leaq -0x10(%rbp), %rdi
leaq -0x60(%rbp), %rsi
callq 0x4cc0
movq -0x70(%rbp), %rdi
movq (%rax), %rcx
movq %rcx, -0x10(%rbp)
movl 0x8(%rax), %eax
movl %eax, -0x8(%rbp)
movq 0x8(%rdi), %rdx
leaq -0x10(%rbp), %rsi
callq 0x9570
leaq -0x48(%rbp), %rdi
callq 0x68e0
jmp 0x9d33
movq -0x10(%rbp), %rax
movl -0x8(%rbp), %edx
addq $0x70, %rsp
popq %rbp
retq
nopl (%rax,%rax)
// File: lmclaramunt[P]AES-Crypto/Cipher.cpp
// Function: Cipher::authenticateSequences(Sequence*, Sequence*)
bool Cipher::authenticateSequences(Sequence* first, Sequence* second){
    bool same = true;
    for(int i=0; i < 16; i++){
        if(first->getSequence()[i] != second->getSequence()[i]){
            same = false;
            break;
        }
    }
    return same;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movb $0x1, -0x19(%rbp)
movl $0x0, -0x20(%rbp)
cmpl $0x10, -0x20(%rbp)
jge 0xa04d
movq -0x10(%rbp), %rdi
callq 0x4a50
movq (%rax), %rax
movslq -0x20(%rbp), %rcx
movzbl (%rax,%rcx), %eax
movl %eax, -0x24(%rbp)
movq -0x18(%rbp), %rdi
callq 0x4a50
movq %rax, %rcx
movl -0x24(%rbp), %eax
movq (%rcx), %rcx
movslq -0x20(%rbp), %rdx
movzbl (%rcx,%rdx), %ecx
cmpl %ecx, %eax
je 0xa040
movb $0x0, -0x19(%rbp)
jmp 0xa04d
jmp 0xa042
movl -0x20(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x20(%rbp)
jmp 0x9fff
movb -0x19(%rbp), %al
andb $0x1, %al
addq $0x30, %rsp
popq %rbp
retq
nopl (%rax,%rax)
// File: lmclaramunt[P]AES-Crypto/Cipher.cpp
// Function: Cipher::removePadding(Sequence*)
void Cipher::removePadding(Sequence* lastPlainText) { 
    int paddingValue = lastPlainText->getSequence()[15];    //Last byte tells how many bytes to remove      
    bool error = false;
    for(int i = 15; i > 16-paddingValue; i--){
        if(lastPlainText->getSequence()[i] != paddingValue){
            error = true;
            break;
        }
    }
    if(!error){
        lastPlainText->setSize(16-paddingValue);
    }else
        throw "Padding error!\n";   //Error if the last block doesn't containt `10` in its last bytes
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x10(%rbp), %rdi
callq 0x4a50
movq (%rax), %rax
movzbl 0xf(%rax), %eax
movl %eax, -0x14(%rbp)
movb $0x0, -0x15(%rbp)
movl $0xf, -0x1c(%rbp)
movl -0x1c(%rbp), %eax
movl $0x10, %ecx
subl -0x14(%rbp), %ecx
cmpl %ecx, %eax
jle 0xa0c9
movq -0x10(%rbp), %rdi
callq 0x4a50
movq (%rax), %rax
movslq -0x1c(%rbp), %rcx
movzbl (%rax,%rcx), %eax
cmpl -0x14(%rbp), %eax
je 0xa0bc
movb $0x1, -0x15(%rbp)
jmp 0xa0c9
jmp 0xa0be
movl -0x1c(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x1c(%rbp)
jmp 0xa08e
testb $0x1, -0x15(%rbp)
jne 0xa0e2
movq -0x10(%rbp), %rdi
movl $0x10, %esi
subl -0x14(%rbp), %esi
callq 0x4aa0
jmp 0xa109
movl $0x8, %edi
callq 0x3120
movq %rax, %rdi
leaq 0x56cb(%rip), %rax      # 0xf7c1
movq %rax, (%rdi)
movq 0xbec0(%rip), %rsi      # 0x15fc0
xorl %eax, %eax
movl %eax, %edx
callq 0x3490
addq $0x20, %rsp
popq %rbp
retq
nop
// File: lmclaramunt[P]AES-Crypto/Cipher.cpp
// Function: Cipher::writePlainText()
void Cipher::writePlainText(){
    ofstream plaintext;
    plaintext.open(*textPath, ios::binary);
    int i = -1;
    for(Sequence sq: inputBlock->getSequenceVector()){
        i++;
        if(i <= 1) continue;           //Don't write neither IV nor MAC Tag in Plaintext
        plaintext.write((const char*)sq.getSequence(), sq.getSize());
    }
    plaintext.close();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x270, %rsp            # imm = 0x270
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x250(%rbp)
leaq -0x208(%rbp), %rdi
movq %rdi, -0x248(%rbp)
callq 0x3480
movq -0x250(%rbp), %rax
movq -0x248(%rbp), %rdi
movq 0x28(%rax), %rsi
movl $0x4, %edx
callq 0x3110
jmp 0xa15b
movq -0x250(%rbp), %rax
movl $0xffffffff, -0x218(%rbp) # imm = 0xFFFFFFFF
movq 0x10(%rax), %rdi
callq 0x5190
movq %rax, -0x258(%rbp)
jmp 0xa17e
movq -0x258(%rbp), %rax
movq %rax, -0x220(%rbp)
movq -0x220(%rbp), %rdi
callq 0x5b00
movq %rax, -0x228(%rbp)
movq -0x220(%rbp), %rdi
callq 0x5980
movq %rax, -0x230(%rbp)
leaq -0x228(%rbp), %rdi
leaq -0x230(%rbp), %rsi
callq 0xb6a0
testb $0x1, %al
jne 0xa1ce
jmp 0xa297
leaq -0x228(%rbp), %rdi
callq 0x68c0
movq (%rax), %rcx
movq %rcx, -0x240(%rbp)
movq 0x8(%rax), %rax
movq %rax, -0x238(%rbp)
movl -0x218(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x218(%rbp)
cmpl $0x1, -0x218(%rbp)
jg 0xa22c
jmp 0xa286
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x210(%rbp)
movl %eax, -0x214(%rbp)
leaq -0x208(%rbp), %rdi
callq 0x33d0
jmp 0xa2ba
leaq -0x240(%rbp), %rdi
callq 0x4a50
movq %rax, -0x260(%rbp)
jmp 0xa241
movq -0x260(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x270(%rbp)
leaq -0x240(%rbp), %rdi
callq 0x4a60
movl %eax, -0x264(%rbp)
jmp 0xa266
movq -0x270(%rbp), %rsi
movl -0x264(%rbp), %eax
movslq %eax, %rdx
leaq -0x208(%rbp), %rdi
callq 0x3360
jmp 0xa284
jmp 0xa286
leaq -0x228(%rbp), %rdi
callq 0x68e0
jmp 0xa1b2
leaq -0x208(%rbp), %rdi
callq 0x33b0
jmp 0xa2a5
leaq -0x208(%rbp), %rdi
callq 0x33d0
addq $0x270, %rsp            # imm = 0x270
popq %rbp
retq
movq -0x210(%rbp), %rdi
callq 0x34d0
nopw %cs:(%rax,%rax)
// File: lmclaramunt[P]AES-Crypto/Cipher.cpp
// Function: Cipher::writeCipherText(Sequence*)
void Cipher::writeCipherText(Sequence* tag){
    ofstream ciphertext;
    ciphertext.open(*textPath, ios::binary);
    ciphertext.write((const char*)tag->getSequence(), tag->getSize());
    for(Sequence sq: inputBlock->getSequenceVector()){
    ciphertext.write((const char*)sq.getSequence(), sq.getSize());
    }
    ciphertext.close();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x2a0, %rsp            # imm = 0x2A0
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x260(%rbp)
leaq -0x210(%rbp), %rdi
movq %rdi, -0x258(%rbp)
callq 0x3480
movq -0x260(%rbp), %rax
movq -0x258(%rbp), %rdi
movq 0x28(%rax), %rsi
movl $0x4, %edx
callq 0x3110
jmp 0xa31f
movq -0x10(%rbp), %rdi
callq 0x4a50
movq %rax, -0x268(%rbp)
jmp 0xa331
movq -0x268(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x278(%rbp)
movq -0x10(%rbp), %rdi
callq 0x4a60
movl %eax, -0x26c(%rbp)
jmp 0xa353
movq -0x278(%rbp), %rsi
movl -0x26c(%rbp), %eax
movslq %eax, %rdx
leaq -0x210(%rbp), %rdi
callq 0x3360
jmp 0xa371
movq -0x260(%rbp), %rax
movq 0x10(%rax), %rdi
callq 0x5190
movq %rax, -0x280(%rbp)
jmp 0xa38a
movq -0x280(%rbp), %rax
movq %rax, -0x228(%rbp)
movq -0x228(%rbp), %rdi
callq 0x5b00
movq %rax, -0x230(%rbp)
movq -0x228(%rbp), %rdi
callq 0x5980
movq %rax, -0x238(%rbp)
leaq -0x230(%rbp), %rdi
leaq -0x238(%rbp), %rsi
callq 0xb6a0
testb $0x1, %al
jne 0xa3da
jmp 0xa47b
leaq -0x230(%rbp), %rdi
callq 0x68c0
movups (%rax), %xmm0
movaps %xmm0, -0x250(%rbp)
leaq -0x250(%rbp), %rdi
callq 0x4a50
movq %rax, -0x288(%rbp)
jmp 0xa405
movq -0x288(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x298(%rbp)
leaq -0x250(%rbp), %rdi
callq 0x4a60
movl %eax, -0x28c(%rbp)
jmp 0xa42a
movq -0x298(%rbp), %rsi
movl -0x28c(%rbp), %eax
movslq %eax, %rdx
leaq -0x210(%rbp), %rdi
callq 0x3360
jmp 0xa448
jmp 0xa44a
leaq -0x230(%rbp), %rdi
callq 0x68e0
jmp 0xa3be
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x218(%rbp)
movl %eax, -0x21c(%rbp)
leaq -0x210(%rbp), %rdi
callq 0x33d0
jmp 0xa49e
leaq -0x210(%rbp), %rdi
callq 0x33b0
jmp 0xa489
leaq -0x210(%rbp), %rdi
callq 0x33d0
addq $0x2a0, %rsp            # imm = 0x2A0
popq %rbp
retq
movq -0x218(%rbp), %rdi
callq 0x34d0
nopw (%rax,%rax)
// File: lmclaramunt[P]AES-Crypto/Cipher.cpp
// Function: Cipher::CBC_encrypt()
void Cipher::CBC_encrypt(){
    Sequence ivSq(16), ivOriginal(16);      //ivOriginal keeps track of IV, to write it in ciphertext
    generateKey(ivSq.getSequence(), 4);
    ivOriginal.updateSequence(ivSq);
    
    //Encrypt
    for(Sequence sq: inputBlock->getSequenceVector()){  
        ivSq = sq ^ ivSq;
        encrypt(&ivSq, aesKeyExp);
    }

    //Authenticate
    inputBlock->getSequenceVector().
        insert(inputBlock->getSequenceVector().begin(), ivOriginal);    //Append IV to Ciphertext
    Sequence tag = CBC_MAC(*inputBlock, true, true);    // both bool true since we are encrypting with padding
    
    //Write ciphertext after encryption and authentication
    writeCipherText(&tag);
    /* Sequence cleanup as it can leave traces in memory */
    ivSq.~Sequence();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xf0, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0xc8(%rbp)
leaq -0x18(%rbp), %rdi
movl $0x10, %esi
callq 0x4a10
leaq -0x28(%rbp), %rdi
movl $0x10, %esi
callq 0x4a10
leaq -0x18(%rbp), %rdi
callq 0x4a50
movq -0xc8(%rbp), %rdi
movq (%rax), %rsi
movl $0x4, %edx
callq 0x89b0
movq -0x18(%rbp), %rax
movq %rax, -0x38(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x30(%rbp)
movq -0x38(%rbp), %rsi
movl -0x30(%rbp), %edx
leaq -0x28(%rbp), %rdi
callq 0x4b70
movq -0xc8(%rbp), %rax
movq 0x10(%rax), %rdi
callq 0x5190
movq %rax, -0x40(%rbp)
movq -0x40(%rbp), %rdi
callq 0x5b00
movq %rax, -0x48(%rbp)
movq -0x40(%rbp), %rdi
callq 0x5980
movq %rax, -0x50(%rbp)
leaq -0x48(%rbp), %rdi
leaq -0x50(%rbp), %rsi
callq 0xb6a0
testb $0x1, %al
jne 0xa564
jmp 0xa5b4
leaq -0x48(%rbp), %rdi
callq 0x68c0
movq (%rax), %rcx
movq %rcx, -0x60(%rbp)
movq 0x8(%rax), %rax
movq %rax, -0x58(%rbp)
leaq -0x60(%rbp), %rdi
leaq -0x18(%rbp), %rsi
callq 0x4cc0
movq -0xc8(%rbp), %rdi
movq (%rax), %rcx
movq %rcx, -0x18(%rbp)
movl 0x8(%rax), %eax
movl %eax, -0x10(%rbp)
movq (%rdi), %rdx
leaq -0x18(%rbp), %rsi
callq 0x9570
leaq -0x48(%rbp), %rdi
callq 0x68e0
jmp 0xa551
movq -0xc8(%rbp), %rax
movq 0x10(%rax), %rdi
callq 0x5190
movq %rax, %rcx
movq -0xc8(%rbp), %rax
movq %rcx, -0xe8(%rbp)
movq 0x10(%rax), %rdi
callq 0x5190
movq %rax, %rdi
callq 0x5b00
movq %rax, -0x70(%rbp)
leaq -0x68(%rbp), %rdi
leaq -0x70(%rbp), %rsi
callq 0xb920
movq -0xe8(%rbp), %rdi
movq -0x68(%rbp), %rsi
leaq -0x28(%rbp), %rdx
callq 0xb720
movq %rax, %rcx
movq -0xc8(%rbp), %rax
movq %rcx, -0x78(%rbp)
movq 0x10(%rax), %rsi
leaq -0xa0(%rbp), %rdi
movq %rdi, -0xe0(%rbp)
callq 0xb960
movq -0xc8(%rbp), %rdi
movq -0xe0(%rbp), %rsi
movl $0x1, %ecx
movl %ecx, %edx
callq 0x9c90
movl %edx, -0xd4(%rbp)
movq %rax, -0xd0(%rbp)
jmp 0xa659
movl -0xd4(%rbp), %eax
movq -0xd0(%rbp), %rcx
movq %rcx, -0xc0(%rbp)
movl %eax, -0xb8(%rbp)
movq -0xc0(%rbp), %rax
movq %rax, -0x88(%rbp)
movl -0xb8(%rbp), %eax
movl %eax, -0x80(%rbp)
leaq -0xa0(%rbp), %rdi
callq 0x5100
movq -0xc8(%rbp), %rdi
leaq -0x88(%rbp), %rsi
callq 0xa2d0
addq $0xf0, %rsp
popq %rbp
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xa8(%rbp)
movl %eax, -0xac(%rbp)
leaq -0xa0(%rbp), %rdi
callq 0x5100
movq -0xa8(%rbp), %rdi
callq 0x34d0
nopl (%rax)
// File: Chaircrusher[P]primeratiogen/Bjorklund.cpp
// Function: Bjorklund::init()
void Bjorklund::init(){
    try{
        iter();
        
    }catch(out_of_range){
        cerr<<"pulse::out_of_range"<<'\n';
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rdi
callq 0x5e50
jmp 0x5da7
jmp 0x5e1a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x10(%rbp)
movl %eax, -0x14(%rbp)
movl -0x14(%rbp), %eax
movl $0x1, %ecx
cmpl %ecx, %eax
jne 0x5e3e
movq -0x10(%rbp), %rdi
movq %rdi, -0x38(%rbp)
callq 0x2130
movq %rax, %rsi
leaq -0x28(%rbp), %rdi
callq 0x6520
movq -0x38(%rbp), %rdi
callq 0x2070
movq 0x9206(%rip), %rdi      # 0xeff0
leaq 0x42aa(%rip), %rsi      # 0xa09b
callq 0x20e0
movq %rax, -0x30(%rbp)
jmp 0x5dfc
movq -0x30(%rbp), %rdi
movl $0xa, %esi
callq 0x2120
jmp 0x5e0c
leaq -0x28(%rbp), %rdi
callq 0x21f8
callq 0x2180
addq $0x40, %rsp
popq %rbp
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x10(%rbp)
movl %eax, -0x14(%rbp)
leaq -0x28(%rbp), %rdi
callq 0x21f8
callq 0x2180
jmp 0x5e3c
jmp 0x5e3e
movq -0x10(%rbp), %rdi
callq 0x21c0
movq %rax, %rdi
callq 0x3370
nop