LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: reddragon[P]packed-memory-array/impl2.cpp
// Function: PMA::get_interval_stats(int, int, bool&, int&)
void
    get_interval_stats(int left, int level, bool &in_limit, int &sz) {
        double t = upper_threshold_at(level);
        int w = (1 << level) * this->chunk_size;
        sz = 0;
        for (int i = left; i < left + w; ++i) {
            sz += this->present[i] ? 1 : 0;
        }
        double q = (double)(sz+1) / double(w);
        dprintf("q: %f, t: %f\n", q, t);
        in_limit = q < t;
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movl %edx, -0x10(%rbp)
movq %rcx, -0x18(%rbp)
movq %r8, -0x20(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x50(%rbp)
movl -0x10(%rbp), %esi
callq 0x27d0
movsd %xmm0, -0x28(%rbp)
movl -0x10(%rbp), %ecx
movl $0x1, %eax
shll %cl, %eax
movq -0x50(%rbp), %rcx
imull 0x48(%rcx), %eax
movl %eax, -0x2c(%rbp)
movq -0x20(%rbp), %rax
movl $0x0, (%rax)
movl -0xc(%rbp), %eax
movl %eax, -0x30(%rbp)
movl -0x30(%rbp), %eax
movl -0xc(%rbp), %ecx
addl -0x2c(%rbp), %ecx
cmpl %ecx, %eax
jge 0x1ca5
movq -0x50(%rbp), %rdi
addq $0x20, %rdi
movslq -0x30(%rbp), %rsi
callq 0x1b70
movq %rax, -0x40(%rbp)
movq %rdx, -0x38(%rbp)
leaq -0x40(%rbp), %rdi
callq 0x1bd0
movb %al, %dl
xorl %ecx, %ecx
movl $0x1, %eax
testb $0x1, %dl
cmovnel %eax, %ecx
movq -0x20(%rbp), %rax
addl (%rax), %ecx
movl %ecx, (%rax)
movl -0x30(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x30(%rbp)
jmp 0x1c54
movq -0x20(%rbp), %rax
movl (%rax), %eax
addl $0x1, %eax
cvtsi2sd %eax, %xmm0
cvtsi2sdl -0x2c(%rbp), %xmm1
divsd %xmm1, %xmm0
movsd %xmm0, -0x48(%rbp)
movsd -0x48(%rbp), %xmm1
movsd -0x28(%rbp), %xmm0
ucomisd %xmm1, %xmm0
seta %cl
movq -0x18(%rbp), %rax
andb $0x1, %cl
movb %cl, (%rax)
addq $0x50, %rsp
popq %rbp
retq
// File: reddragon[P]packed-memory-array/impl2.cpp
// Function: PMA::lb_in_chunk(int, int)
int
    lb_in_chunk(int l, int v) {
        int i;
        for (i = l; i < l + chunk_size; ++i) {
            if (this->present[i]) {
                if (this->impl[i] >= v) {
                    return i;
                }
            }
        }
        return i;
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movl %edx, -0x18(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x38(%rbp)
movl -0x14(%rbp), %eax
movl %eax, -0x1c(%rbp)
movq -0x38(%rbp), %rdx
movl -0x1c(%rbp), %eax
movl -0x14(%rbp), %ecx
addl 0x48(%rdx), %ecx
cmpl %ecx, %eax
jge 0x2514
movq -0x38(%rbp), %rdi
addq $0x20, %rdi
movslq -0x1c(%rbp), %rsi
callq 0x1b70
movq %rax, -0x30(%rbp)
movq %rdx, -0x28(%rbp)
leaq -0x30(%rbp), %rdi
callq 0x1bd0
testb $0x1, %al
jne 0x24e9
jmp 0x2507
movq -0x38(%rbp), %rdi
movslq -0x1c(%rbp), %rsi
callq 0x2530
movl (%rax), %eax
cmpl -0x18(%rbp), %eax
jl 0x2505
movl -0x1c(%rbp), %eax
movl %eax, -0x4(%rbp)
jmp 0x251a
jmp 0x2507
jmp 0x2509
movl -0x1c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x1c(%rbp)
jmp 0x24b0
movl -0x1c(%rbp), %eax
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x40, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
nopl (%rax)
// File: reddragon[P]packed-memory-array/impl2.cpp
// Function: PMA::init_vars(int)
void
    init_vars(int capacity) {
        this->chunk_size = 1 << log2(log2(capacity) * 2);
        assert(this->chunk_size == (1 << log2(this->chunk_size)));
        this->nchunks = capacity / this->chunk_size;
        this->nlevels = log2(this->nchunks);
        this->lgn = log2(capacity);
        dprintf("init_vars::capacity: %d, nelems: %d, chunk_size: %d, nchunks: %d\n", capacity, nelems, chunk_size, nchunks);
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x18(%rbp)
movl -0xc(%rbp), %edi
callq 0x1290
movl %eax, %edi
shll %edi
callq 0x1290
movl %eax, %ecx
movq -0x18(%rbp), %rax
movl $0x1, %edx
shll %cl, %edx
movl %edx, %ecx
movl %ecx, 0x48(%rax)
movl 0x48(%rax), %ecx
movl %ecx, -0x10(%rbp)
movl 0x48(%rax), %edi
callq 0x1290
movl %eax, %ecx
movl -0x10(%rbp), %eax
movl $0x1, %edx
shll %cl, %edx
movl %edx, %ecx
cmpl %ecx, %eax
jne 0x3f4c
jmp 0x3f6b
leaq 0x32ac(%rip), %rdi      # 0x71ff
leaq 0x310f(%rip), %rsi      # 0x7069
movl $0x76, %edx
leaq 0x32cb(%rip), %rcx      # 0x7231
callq 0x1090
movq -0x18(%rbp), %rcx
movl -0xc(%rbp), %eax
cltd
idivl 0x48(%rcx)
movl %eax, %ecx
movq -0x18(%rbp), %rax
movl %ecx, 0x4c(%rax)
movl 0x4c(%rax), %edi
callq 0x1290
movl %eax, %ecx
movq -0x18(%rbp), %rax
movl %ecx, 0x50(%rax)
movl -0xc(%rbp), %edi
callq 0x1290
movl %eax, %ecx
movq -0x18(%rbp), %rax
movl %ecx, 0x54(%rax)
addq $0x20, %rsp
popq %rbp
retq
nopw (%rax,%rax)
// File: archit-p[P]bulletproofs-demo/src/num_theory.cpp
// Function: is_prime(long)
bool is_prime(long int n)
{
    if (n <= 1)  return false;
    if (n <= 3)  return true;

    if (n%2 == 0 || n%3 == 0) return false;
 
    for (int i=5; i*i<=n; i=i+6)
        if (n%i == 0 || n%(i+2) == 0)
           return false;
 
    return true;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x10(%rbp)
cmpq $0x1, -0x10(%rbp)
jg 0x13d8
movb $0x0, -0x1(%rbp)
jmp 0x146e
cmpq $0x3, -0x10(%rbp)
jg 0x13e8
movb $0x1, -0x1(%rbp)
jmp 0x146e
movq -0x10(%rbp), %rax
movl $0x2, %ecx
cqto
idivq %rcx
cmpq $0x0, %rdx
je 0x1410
movq -0x10(%rbp), %rax
movl $0x3, %ecx
cqto
idivq %rcx
cmpq $0x0, %rdx
jne 0x1416
movb $0x0, -0x1(%rbp)
jmp 0x146e
movl $0x5, -0x14(%rbp)
movl -0x14(%rbp), %eax
imull -0x14(%rbp), %eax
cltq
cmpq -0x10(%rbp), %rax
jg 0x146a
movq -0x10(%rbp), %rax
movslq -0x14(%rbp), %rcx
cqto
idivq %rcx
cmpq $0x0, %rdx
je 0x1457
movq -0x10(%rbp), %rax
movl -0x14(%rbp), %ecx
addl $0x2, %ecx
movslq %ecx, %rcx
cqto
idivq %rcx
cmpq $0x0, %rdx
jne 0x145d
movb $0x0, -0x1(%rbp)
jmp 0x146e
jmp 0x145f
movl -0x14(%rbp), %eax
addl $0x6, %eax
movl %eax, -0x14(%rbp)
jmp 0x141d
movb $0x1, -0x1(%rbp)
movb -0x1(%rbp), %al
andb $0x1, %al
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: archit-p[P]bulletproofs-demo/src/num_theory.cpp
// Function: large_mod(int, int, int)
int large_mod(int a, int b, int p)
{
    int q = 1;
    while(b > 0) {
        if(b%2 == 1) {
            q *= a;
            q = q%p;
        }
        b /= 2;
        a = (a*a)%p;
    }
    return q;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movl %edi, -0x4(%rbp)
movl %esi, -0x8(%rbp)
movl %edx, -0xc(%rbp)
movl $0x1, -0x10(%rbp)
cmpl $0x0, -0x8(%rbp)
jle 0x14fc
movl -0x8(%rbp), %eax
movl $0x2, %ecx
cltd
idivl %ecx
cmpl $0x1, %edx
jne 0x14de
movl -0x4(%rbp), %eax
imull -0x10(%rbp), %eax
movl %eax, -0x10(%rbp)
movl -0x10(%rbp), %eax
cltd
idivl -0xc(%rbp)
movl %edx, -0x10(%rbp)
movl -0x8(%rbp), %eax
movl $0x2, %ecx
cltd
idivl %ecx
movl %eax, -0x8(%rbp)
movl -0x4(%rbp), %eax
imull -0x4(%rbp), %eax
cltd
idivl -0xc(%rbp)
movl %edx, -0x4(%rbp)
jmp 0x14b4
movl -0x10(%rbp), %eax
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: archit-p[P]bulletproofs-demo/src/num_theory.cpp
// Function: haderson_product(std::vector<int, std::allocator<int>>, std::vector<int, std::allocator<int>>)
vector <int> haderson_product(vector <int> a, vector <int> b)
{
    vector <int> c;
    vector <int> :: iterator i = a.begin();
    vector <int> :: iterator j = b.begin();

    for(; i!= a.end(), j != b.end(); i++, j++)
        c.push_back((*i)*(*j));
    return c;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x90, %rsp
movq %rdx, -0x70(%rbp)
movq %rsi, -0x78(%rbp)
movq %rdi, -0x88(%rbp)
movq %rdi, %rax
movq %rax, -0x80(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movb $0x0, -0x19(%rbp)
callq 0x1b70
movq -0x78(%rbp), %rdi
callq 0x1b90
movq -0x70(%rbp), %rdi
movq %rax, -0x28(%rbp)
callq 0x1b90
movq %rax, -0x30(%rbp)
movq -0x78(%rbp), %rdi
callq 0x1c00
movq %rax, -0x38(%rbp)
leaq -0x28(%rbp), %rdi
leaq -0x38(%rbp), %rsi
callq 0x1bc0
movq -0x70(%rbp), %rdi
callq 0x1c00
movq %rax, -0x40(%rbp)
leaq -0x30(%rbp), %rdi
leaq -0x40(%rbp), %rsi
callq 0x1bc0
testb $0x1, %al
jne 0x159a
jmp 0x1616
leaq -0x28(%rbp), %rdi
callq 0x1c60
movl (%rax), %eax
movl %eax, -0x8c(%rbp)
leaq -0x30(%rbp), %rdi
callq 0x1c60
movq -0x88(%rbp), %rdi
movq %rax, %rcx
movl -0x8c(%rbp), %eax
movl (%rcx), %ecx
imull %ecx, %eax
movl %eax, -0x44(%rbp)
leaq -0x44(%rbp), %rsi
callq 0x1c30
jmp 0x15d7
jmp 0x15d9
leaq -0x28(%rbp), %rdi
xorl %esi, %esi
callq 0x1c80
movq %rax, -0x60(%rbp)
leaq -0x30(%rbp), %rdi
xorl %esi, %esi
callq 0x1c80
movq %rax, -0x68(%rbp)
jmp 0x1560
movq -0x88(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
callq 0x1cc0
jmp 0x1639
movb $0x1, -0x19(%rbp)
testb $0x1, -0x19(%rbp)
jne 0x162c
movq -0x88(%rbp), %rdi
callq 0x1cc0
movq -0x80(%rbp), %rax
addq $0x90, %rsp
popq %rbp
retq
movq -0x50(%rbp), %rdi
callq 0x1170
nopw %cs:(%rax,%rax)
// File: archit-p[P]bulletproofs-demo/src/num_theory.cpp
// Function: inner_product(std::vector<int, std::allocator<int>>, std::vector<int, std::allocator<int>>)
long inner_product(vector <int> a, vector <int> b)
{
    vector <int> :: iterator i;
    vector <int> :: iterator j;
    long prod = 0;
    int vali, valj;

    //assert (a.size() == b.size());
    for(i = a.begin(), j = b.begin(); i != a.end(), j != b.end(); i++, j++) {
        vali = *i;
        valj = *j;
        prod += vali * valj;
    }
    return prod;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x70, %rsp
movq %rdi, -0x70(%rbp)
movq %rsi, -0x68(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
leaq -0x18(%rbp), %rdi
callq 0x1d20
leaq -0x20(%rbp), %rdi
callq 0x1d20
movq -0x70(%rbp), %rdi
movq $0x0, -0x28(%rbp)
callq 0x1b90
movq -0x68(%rbp), %rdi
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rax
movq %rax, -0x18(%rbp)
callq 0x1b90
movq %rax, -0x40(%rbp)
movq -0x40(%rbp), %rax
movq %rax, -0x20(%rbp)
movq -0x70(%rbp), %rdi
callq 0x1c00
movq %rax, -0x48(%rbp)
leaq -0x18(%rbp), %rdi
leaq -0x48(%rbp), %rsi
callq 0x1bc0
movq -0x68(%rbp), %rdi
callq 0x1c00
movq %rax, -0x50(%rbp)
leaq -0x20(%rbp), %rdi
leaq -0x50(%rbp), %rsi
callq 0x1bc0
testb $0x1, %al
jne 0x16e6
jmp 0x1736
leaq -0x18(%rbp), %rdi
callq 0x1c60
movl (%rax), %eax
movl %eax, -0x2c(%rbp)
leaq -0x20(%rbp), %rdi
callq 0x1c60
movl (%rax), %eax
movl %eax, -0x30(%rbp)
movl -0x2c(%rbp), %eax
imull -0x30(%rbp), %eax
cltq
addq -0x28(%rbp), %rax
movq %rax, -0x28(%rbp)
leaq -0x18(%rbp), %rdi
xorl %esi, %esi
callq 0x1c80
movq %rax, -0x58(%rbp)
leaq -0x20(%rbp), %rdi
xorl %esi, %esi
callq 0x1c80
movq %rax, -0x60(%rbp)
jmp 0x16ac
movq -0x28(%rbp), %rax
addq $0x70, %rsp
popq %rbp
retq
// File: archit-p[P]bulletproofs-demo/src/num_theory.cpp
// Function: inner_product(std::vector<int, std::allocator<int>>, std::vector<int, std::allocator<int>>, int)
long inner_product(vector <int> a, vector <int> b, int order)
{
    vector <int> :: iterator i;
    vector <int> :: iterator j;
    long prod = 0;
    int vali, valj;

    //assert (a.size() == b.size());
    for(i = a.begin(), j = b.begin(); i != a.end(), j != b.end(); i++, j++) {
        vali = *i;
        valj = *j;
        prod += vali * valj;
    }
    return prod%order;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x80, %rsp
movq %rdi, -0x78(%rbp)
movq %rsi, -0x70(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
leaq -0x20(%rbp), %rdi
callq 0x1d20
leaq -0x28(%rbp), %rdi
callq 0x1d20
movq -0x78(%rbp), %rdi
movq $0x0, -0x30(%rbp)
callq 0x1b90
movq -0x70(%rbp), %rdi
movq %rax, -0x40(%rbp)
movq -0x40(%rbp), %rax
movq %rax, -0x20(%rbp)
callq 0x1b90
movq %rax, -0x48(%rbp)
movq -0x48(%rbp), %rax
movq %rax, -0x28(%rbp)
movq -0x78(%rbp), %rdi
callq 0x1c00
movq %rax, -0x50(%rbp)
leaq -0x20(%rbp), %rdi
leaq -0x50(%rbp), %rsi
callq 0x1bc0
movq -0x70(%rbp), %rdi
callq 0x1c00
movq %rax, -0x58(%rbp)
leaq -0x28(%rbp), %rdi
leaq -0x58(%rbp), %rsi
callq 0x1bc0
testb $0x1, %al
jne 0x17dc
jmp 0x182c
leaq -0x20(%rbp), %rdi
callq 0x1c60
movl (%rax), %eax
movl %eax, -0x34(%rbp)
leaq -0x28(%rbp), %rdi
callq 0x1c60
movl (%rax), %eax
movl %eax, -0x38(%rbp)
movl -0x34(%rbp), %eax
imull -0x38(%rbp), %eax
cltq
addq -0x30(%rbp), %rax
movq %rax, -0x30(%rbp)
leaq -0x20(%rbp), %rdi
xorl %esi, %esi
callq 0x1c80
movq %rax, -0x60(%rbp)
leaq -0x28(%rbp), %rdi
xorl %esi, %esi
callq 0x1c80
movq %rax, -0x68(%rbp)
jmp 0x17a2
movq -0x30(%rbp), %rax
movslq -0x14(%rbp), %rcx
cqto
idivq %rcx
movq %rdx, %rax
addq $0x80, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: archit-p[P]bulletproofs-demo/src/num_theory.cpp
// Function: vector_power(std::vector<int, std::allocator<int>>, std::vector<int, std::allocator<int>>)
int vector_power(vector <int> a, vector <int> b)
{
    vector <int> :: iterator i;
    vector <int> :: iterator j;

    int power = 1;
    int vali;
    int valj;

    //assert (a.size() == b.size());
    for(i = a.begin(), j = b.begin(); i != a.end(), j != b.end(); i++, j++) {
        vali = *i;
        valj = *j;
        power *= pow(vali, valj);
    }
    return power;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x70, %rsp
movq %rdi, -0x70(%rbp)
movq %rsi, -0x68(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
leaq -0x18(%rbp), %rdi
callq 0x1d20
leaq -0x20(%rbp), %rdi
callq 0x1d20
movq -0x70(%rbp), %rdi
movl $0x1, -0x24(%rbp)
callq 0x1b90
movq -0x68(%rbp), %rdi
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rax
movq %rax, -0x18(%rbp)
callq 0x1b90
movq %rax, -0x40(%rbp)
movq -0x40(%rbp), %rax
movq %rax, -0x20(%rbp)
movq -0x70(%rbp), %rdi
callq 0x1c00
movq %rax, -0x48(%rbp)
leaq -0x18(%rbp), %rdi
leaq -0x48(%rbp), %rsi
callq 0x1bc0
movq -0x68(%rbp), %rdi
callq 0x1c00
movq %rax, -0x50(%rbp)
leaq -0x20(%rbp), %rdi
leaq -0x50(%rbp), %rsi
callq 0x1bc0
testb $0x1, %al
jne 0x18e5
jmp 0x1946
leaq -0x18(%rbp), %rdi
callq 0x1c60
movl (%rax), %eax
movl %eax, -0x28(%rbp)
leaq -0x20(%rbp), %rdi
callq 0x1c60
movl (%rax), %eax
movl %eax, -0x2c(%rbp)
cvtsi2sdl -0x28(%rbp), %xmm0
cvtsi2sdl -0x2c(%rbp), %xmm1
callq 0x1160
movaps %xmm0, %xmm1
cvtsi2sdl -0x24(%rbp), %xmm0
mulsd %xmm1, %xmm0
cvttsd2si %xmm0, %eax
movl %eax, -0x24(%rbp)
leaq -0x18(%rbp), %rdi
xorl %esi, %esi
callq 0x1c80
movq %rax, -0x58(%rbp)
leaq -0x20(%rbp), %rdi
xorl %esi, %esi
callq 0x1c80
movq %rax, -0x60(%rbp)
jmp 0x18ab
movl -0x24(%rbp), %eax
addq $0x70, %rsp
popq %rbp
retq
nop
// File: archit-p[P]bulletproofs-demo/src/num_theory.cpp
// Function: vector_power(std::vector<int, std::allocator<int>>, std::vector<int, std::allocator<int>>, int)
int vector_power(vector <int> a, vector <int> b, int order)
{
    vector <int> :: iterator i;
    vector <int> :: iterator j;

    int power = 1;
    int vali;
    int valj;

    //assert (a.size() == b.size());
    for(i = a.begin(), j = b.begin(); i != a.end(), j != b.end(); i++, j++) {
        vali = *i;
        valj = *j;
        power *= (int(pow(vali, valj))%order);
    }
    return power;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x80, %rsp
movq %rdi, -0x78(%rbp)
movq %rsi, -0x70(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
leaq -0x20(%rbp), %rdi
callq 0x1d20
leaq -0x28(%rbp), %rdi
callq 0x1d20
movq -0x78(%rbp), %rdi
movl $0x1, -0x2c(%rbp)
callq 0x1b90
movq -0x70(%rbp), %rdi
movq %rax, -0x40(%rbp)
movq -0x40(%rbp), %rax
movq %rax, -0x20(%rbp)
callq 0x1b90
movq %rax, -0x48(%rbp)
movq -0x48(%rbp), %rax
movq %rax, -0x28(%rbp)
movq -0x78(%rbp), %rdi
callq 0x1c00
movq %rax, -0x50(%rbp)
leaq -0x20(%rbp), %rdi
leaq -0x50(%rbp), %rsi
callq 0x1bc0
movq -0x70(%rbp), %rdi
callq 0x1c00
movq %rax, -0x58(%rbp)
leaq -0x28(%rbp), %rdi
leaq -0x58(%rbp), %rsi
callq 0x1bc0
testb $0x1, %al
jne 0x19eb
jmp 0x1a48
leaq -0x20(%rbp), %rdi
callq 0x1c60
movl (%rax), %eax
movl %eax, -0x30(%rbp)
leaq -0x28(%rbp), %rdi
callq 0x1c60
movl (%rax), %eax
movl %eax, -0x34(%rbp)
cvtsi2sdl -0x30(%rbp), %xmm0
cvtsi2sdl -0x34(%rbp), %xmm1
callq 0x1160
cvttsd2si %xmm0, %eax
cltd
idivl -0x14(%rbp)
imull -0x2c(%rbp), %edx
movl %edx, -0x2c(%rbp)
leaq -0x20(%rbp), %rdi
xorl %esi, %esi
callq 0x1c80
movq %rax, -0x60(%rbp)
leaq -0x28(%rbp), %rdi
xorl %esi, %esi
callq 0x1c80
movq %rax, -0x68(%rbp)
jmp 0x19b1
movl -0x2c(%rbp), %eax
addq $0x80, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: archit-p[P]bulletproofs-demo/src/num_theory.cpp
// Function: modInverse(int, int)
int modInverse(int a, int m)
{
    int m0 = m;
    int y = 0, x = 1;
    if (m == 1)
      return 0;
    while (a > 1)
    {
        int q = a / m;
        int temp = m;
        m = a % m, a = temp;
        temp = y;
        y = x - q * y;
        x = temp;
    }
    if (x < 0)
       x += m0;
    return x;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movl %edi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movl -0xc(%rbp), %eax
movl %eax, -0x10(%rbp)
movl $0x0, -0x14(%rbp)
movl $0x1, -0x18(%rbp)
cmpl $0x1, -0xc(%rbp)
jne 0x1aad
movl $0x0, -0x4(%rbp)
jmp 0x1b07
jmp 0x1aaf
cmpl $0x1, -0x8(%rbp)
jle 0x1af2
movl -0x8(%rbp), %eax
cltd
idivl -0xc(%rbp)
movl %eax, -0x1c(%rbp)
movl -0xc(%rbp), %eax
movl %eax, -0x20(%rbp)
movl -0x8(%rbp), %eax
cltd
idivl -0xc(%rbp)
movl %edx, -0xc(%rbp)
movl -0x20(%rbp), %eax
movl %eax, -0x8(%rbp)
movl -0x14(%rbp), %eax
movl %eax, -0x20(%rbp)
movl -0x18(%rbp), %eax
movl -0x1c(%rbp), %ecx
imull -0x14(%rbp), %ecx
subl %ecx, %eax
movl %eax, -0x14(%rbp)
movl -0x20(%rbp), %eax
movl %eax, -0x18(%rbp)
jmp 0x1aaf
cmpl $0x0, -0x18(%rbp)
jge 0x1b01
movl -0x10(%rbp), %eax
addl -0x18(%rbp), %eax
movl %eax, -0x18(%rbp)
movl -0x18(%rbp), %eax
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
popq %rbp
retq
nopl (%rax)
// File: archit-p[P]bulletproofs-demo/src/vector_util.cpp
// Function: get_half(std::vector<int, std::allocator<int>>&, std::vector<int, std::allocator<int>>&, std::vector<int, std::allocator<int>>&)
void get_half(vector <int>& a, vector <int>& b, vector <int>& c)
{
    //function clears the values in b and c
    b.clear();
    c.clear();
    vector <int> :: iterator i;
    int l, vali;

    for(i = a.begin(), l = 0; l < a.size(); l++, i++) {
        vali = *i;
        if(l < a.size()/2)
            b.push_back(vali);
        else
            c.push_back(vali);
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x10(%rbp), %rdi
callq 0x2f90
movq -0x18(%rbp), %rdi
callq 0x2f90
leaq -0x20(%rbp), %rdi
callq 0x1d20
movq -0x8(%rbp), %rdi
callq 0x1b90
movq %rax, -0x30(%rbp)
movq -0x30(%rbp), %rax
movq %rax, -0x20(%rbp)
movl $0x0, -0x24(%rbp)
movslq -0x24(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0x8(%rbp), %rdi
callq 0x2450
movq %rax, %rcx
movq -0x40(%rbp), %rax
cmpq %rcx, %rax
jae 0x2861
leaq -0x20(%rbp), %rdi
callq 0x1c60
movl (%rax), %eax
movl %eax, -0x28(%rbp)
movslq -0x24(%rbp), %rax
movq %rax, -0x48(%rbp)
movq -0x8(%rbp), %rdi
callq 0x2450
movq %rax, %rcx
movq -0x48(%rbp), %rax
shrq %rcx
cmpq %rcx, %rax
jae 0x2835
movq -0x10(%rbp), %rdi
leaq -0x28(%rbp), %rsi
callq 0x2fb0
jmp 0x2842
movq -0x18(%rbp), %rdi
leaq -0x28(%rbp), %rsi
callq 0x2fb0
jmp 0x2844
movl -0x24(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x24(%rbp)
leaq -0x20(%rbp), %rdi
xorl %esi, %esi
callq 0x1c80
movq %rax, -0x38(%rbp)
jmp 0x27db
addq $0x50, %rsp
popq %rbp
retq
nopw (%rax,%rax)
// File: archit-p[P]bulletproofs-demo/src/vector_util.cpp
// Function: pprint_vector(std::vector<int, std::allocator<int>>)
void pprint_vector(vector <int> a)
{
    typename vector <int> :: iterator i;
    cout << "----------" << endl;
    for(i = a.begin(); i != a.end(); i++)
        cout << *i << " ";
    cout << endl << "----------" << endl;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x30(%rbp)
movq %rdi, -0x8(%rbp)
leaq -0x10(%rbp), %rdi
callq 0x1d20
movq 0x9748(%rip), %rdi      # 0xbfd8
leaq 0x5787(%rip), %rsi      # 0x801e
callq 0x10c0
movq %rax, %rdi
movq 0x9722(%rip), %rsi      # 0xbfc8
callq 0x10f0
movq -0x30(%rbp), %rdi
callq 0x1b90
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x30(%rbp), %rdi
callq 0x1c00
movq %rax, -0x20(%rbp)
leaq -0x10(%rbp), %rdi
leaq -0x20(%rbp), %rsi
callq 0x1bc0
testb $0x1, %al
jne 0x28e0
jmp 0x2917
leaq -0x10(%rbp), %rdi
callq 0x1c60
movl (%rax), %esi
movq 0x96e6(%rip), %rdi      # 0xbfd8
callq 0x1150
movq %rax, %rdi
leaq 0x5728(%rip), %rsi      # 0x8029
callq 0x10c0
leaq -0x10(%rbp), %rdi
xorl %esi, %esi
callq 0x1c80
movq %rax, -0x28(%rbp)
jmp 0x28c0
movq 0x96ba(%rip), %rdi      # 0xbfd8
movq 0x96a3(%rip), %rsi      # 0xbfc8
callq 0x10f0
movq %rax, %rdi
leaq 0x56ea(%rip), %rsi      # 0x801e
callq 0x10c0
movq %rax, %rdi
movq 0x9685(%rip), %rsi      # 0xbfc8
callq 0x10f0
addq $0x30, %rsp
popq %rbp
retq
nop
// File: archit-p[P]bulletproofs-demo/src/vector_util.cpp
// Function: get_k_vector(int, int)
vector <int> get_k_vector(int k, int n)
{
    vector <int> ret;
    for(int i = n-1; i >= 0; i--)
        ret.push_back(pow(k, i));
    return ret;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x40(%rbp)
movq %rdi, %rax
movq %rax, -0x38(%rbp)
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movl %edx, -0x10(%rbp)
movb $0x0, -0x11(%rbp)
callq 0x1b70
movl -0x10(%rbp), %eax
subl $0x1, %eax
movl %eax, -0x18(%rbp)
cmpl $0x0, -0x18(%rbp)
jl 0x29d6
movl -0xc(%rbp), %edi
movl -0x18(%rbp), %esi
callq 0x3020
movsd %xmm0, -0x48(%rbp)
jmp 0x2997
movq -0x40(%rbp), %rdi
movsd -0x48(%rbp), %xmm0
cvttsd2si %xmm0, %eax
movl %eax, -0x1c(%rbp)
leaq -0x1c(%rbp), %rsi
callq 0x1c30
jmp 0x29b2
jmp 0x29b4
movl -0x18(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x18(%rbp)
jmp 0x297f
movq -0x40(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
callq 0x1cc0
jmp 0x29f3
movb $0x1, -0x11(%rbp)
testb $0x1, -0x11(%rbp)
jne 0x29e9
movq -0x40(%rbp), %rdi
callq 0x1cc0
movq -0x38(%rbp), %rax
addq $0x50, %rsp
popq %rbp
retq
movq -0x28(%rbp), %rdi
callq 0x1170
nopl (%rax)
// File: archit-p[P]bulletproofs-demo/src/vector_util.cpp
// Function: get_bit_vector(long)
vector <int> get_bit_vector(long v)
{
    vector <int> ret;
    int bit;
    while(v > 0) {
        bit = v&1;
        ret.push_back(bit);
        v >>= 1;
    }
    reverse(ret.begin(), ret.end());
    return ret;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x48(%rbp)
movq %rdi, %rax
movq %rax, -0x40(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movb $0x0, -0x11(%rbp)
callq 0x1b70
cmpq $0x0, -0x10(%rbp)
jle 0x2a67
movq -0x48(%rbp), %rdi
movl -0x10(%rbp), %eax
andl $0x1, %eax
movl %eax, -0x18(%rbp)
leaq -0x18(%rbp), %rsi
callq 0x2fb0
jmp 0x2a43
movq -0x10(%rbp), %rax
sarq %rax
movq %rax, -0x10(%rbp)
jmp 0x2a24
movq -0x48(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x20(%rbp)
movl %eax, -0x24(%rbp)
callq 0x1cc0
jmp 0x2aad
movq -0x48(%rbp), %rdi
callq 0x1b90
movq -0x48(%rbp), %rdi
movq %rax, -0x30(%rbp)
callq 0x1c00
movq %rax, -0x38(%rbp)
movq -0x30(%rbp), %rdi
movq -0x38(%rbp), %rsi
callq 0x3050
jmp 0x2a90
movb $0x1, -0x11(%rbp)
testb $0x1, -0x11(%rbp)
jne 0x2aa3
movq -0x48(%rbp), %rdi
callq 0x1cc0
movq -0x40(%rbp), %rax
addq $0x50, %rsp
popq %rbp
retq
movq -0x20(%rbp), %rdi
callq 0x1170
nopw %cs:(%rax,%rax)
// File: archit-p[P]bulletproofs-demo/src/vector_util.cpp
// Function: k_product_vector(std::vector<int, std::allocator<int>>, int, int)
vector <int> k_product_vector(vector <int> vec, int k, int order)
{
    for(int i = 0; i < vec.size(); i++) {
        vec[i] *= k;
        vec[i] = vec[i]%order;
    }
    return vec;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rsi, -0x38(%rbp)
movq %rdi, -0x30(%rbp)
movq %rdi, %rax
movq %rax, -0x28(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
movl %ecx, -0x18(%rbp)
movl $0x0, -0x1c(%rbp)
movq -0x38(%rbp), %rdi
movslq -0x1c(%rbp), %rax
movq %rax, -0x40(%rbp)
callq 0x2450
movq %rax, %rcx
movq -0x40(%rbp), %rax
cmpq %rcx, %rax
jae 0x2be7
movq -0x38(%rbp), %rdi
movl -0x14(%rbp), %eax
movl %eax, -0x48(%rbp)
movslq -0x1c(%rbp), %rsi
callq 0x3090
movl -0x48(%rbp), %ecx
movq -0x38(%rbp), %rdi
imull (%rax), %ecx
movl %ecx, (%rax)
movslq -0x1c(%rbp), %rsi
callq 0x3090
movq -0x38(%rbp), %rdi
movl (%rax), %eax
cltd
idivl -0x18(%rbp)
movl %edx, -0x44(%rbp)
movslq -0x1c(%rbp), %rsi
callq 0x3090
movl -0x44(%rbp), %edx
movl %edx, (%rax)
movl -0x1c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x1c(%rbp)
jmp 0x2b7c
movq -0x38(%rbp), %rsi
movq -0x30(%rbp), %rdi
callq 0x30b0
movq -0x28(%rbp), %rax
addq $0x50, %rsp
popq %rbp
retq
nop
// File: archit-p[P]bulletproofs-demo/src/vector_util.cpp
// Function: vector_diff(std::vector<int, std::allocator<int>>, std::vector<int, std::allocator<int>>)
vector <int> vector_diff(vector <int> a, vector <int> b)
{
    vector <int> c;
    for(int i = 0; i < a.size(); i++) 
        c.push_back(a[i]-b[i]);
    return c;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x70, %rsp
movq %rdx, -0x58(%rbp)
movq %rsi, -0x50(%rbp)
movq %rdi, -0x48(%rbp)
movq %rdi, %rax
movq %rax, -0x40(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movb $0x0, -0x19(%rbp)
callq 0x1b70
movl $0x0, -0x20(%rbp)
movq -0x50(%rbp), %rdi
movslq -0x20(%rbp), %rax
movq %rax, -0x60(%rbp)
callq 0x2450
movq %rax, %rcx
movq -0x60(%rbp), %rax
cmpq %rcx, %rax
jae 0x2cb3
movq -0x50(%rbp), %rdi
movslq -0x20(%rbp), %rsi
callq 0x3090
movq -0x58(%rbp), %rdi
movl (%rax), %eax
movl %eax, -0x64(%rbp)
movslq -0x20(%rbp), %rsi
callq 0x3090
movq -0x48(%rbp), %rdi
movq %rax, %rcx
movl -0x64(%rbp), %eax
movl (%rcx), %ecx
subl %ecx, %eax
movl %eax, -0x24(%rbp)
leaq -0x24(%rbp), %rsi
callq 0x1c30
jmp 0x2c8f
jmp 0x2c91
movl -0x20(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x20(%rbp)
jmp 0x2c37
movq -0x48(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
callq 0x1cc0
jmp 0x2cd0
movb $0x1, -0x19(%rbp)
testb $0x1, -0x19(%rbp)
jne 0x2cc6
movq -0x48(%rbp), %rdi
callq 0x1cc0
movq -0x40(%rbp), %rax
addq $0x70, %rsp
popq %rbp
retq
movq -0x30(%rbp), %rdi
callq 0x1170
nopl (%rax)
// File: archit-p[P]bulletproofs-demo/src/vector_util.cpp
// Function: vector_sum(std::vector<int, std::allocator<int>>, std::vector<int, std::allocator<int>>)
vector <int> vector_sum(vector <int> a, vector <int> b)
{
    vector <int> c;
    for(int i = 0; i < a.size(); i++) 
        c.push_back(a[i]+b[i]);
    return c;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x70, %rsp
movq %rdx, -0x58(%rbp)
movq %rsi, -0x50(%rbp)
movq %rdi, -0x48(%rbp)
movq %rdi, %rax
movq %rax, -0x40(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movb $0x0, -0x19(%rbp)
callq 0x1b70
movl $0x0, -0x20(%rbp)
movq -0x50(%rbp), %rdi
movslq -0x20(%rbp), %rax
movq %rax, -0x60(%rbp)
callq 0x2450
movq %rax, %rcx
movq -0x60(%rbp), %rax
cmpq %rcx, %rax
jae 0x2d93
movq -0x50(%rbp), %rdi
movslq -0x20(%rbp), %rsi
callq 0x3090
movq -0x58(%rbp), %rdi
movl (%rax), %eax
movl %eax, -0x64(%rbp)
movslq -0x20(%rbp), %rsi
callq 0x3090
movq -0x48(%rbp), %rdi
movq %rax, %rcx
movl -0x64(%rbp), %eax
movl (%rcx), %ecx
addl %ecx, %eax
movl %eax, -0x24(%rbp)
leaq -0x24(%rbp), %rsi
callq 0x1c30
jmp 0x2d6f
jmp 0x2d71
movl -0x20(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x20(%rbp)
jmp 0x2d17
movq -0x48(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
callq 0x1cc0
jmp 0x2db0
movb $0x1, -0x19(%rbp)
testb $0x1, -0x19(%rbp)
jne 0x2da6
movq -0x48(%rbp), %rdi
callq 0x1cc0
movq -0x40(%rbp), %rax
addq $0x70, %rsp
popq %rbp
retq
movq -0x30(%rbp), %rdi
callq 0x1170
nopl (%rax)
// File: archit-p[P]bulletproofs-demo/src/vector_util.cpp
// Function: vector_sum(std::vector<int, std::allocator<int>>, std::vector<int, std::allocator<int>>, int)
vector <int> vector_sum(vector <int> a, vector <int> b, int order)
{
    vector <int> c;
    for(int i = 0; i < a.size(); i++) 
        c.push_back((a[i]+b[i])%order);
    return c;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x70, %rsp
movq %rdx, -0x58(%rbp)
movq %rsi, -0x50(%rbp)
movq %rdi, -0x48(%rbp)
movq %rdi, %rax
movq %rax, -0x40(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movl %ecx, -0x1c(%rbp)
movb $0x0, -0x1d(%rbp)
callq 0x1b70
movl $0x0, -0x24(%rbp)
movq -0x50(%rbp), %rdi
movslq -0x24(%rbp), %rax
movq %rax, -0x60(%rbp)
callq 0x2450
movq %rax, %rcx
movq -0x60(%rbp), %rax
cmpq %rcx, %rax
jae 0x2e7c
movq -0x50(%rbp), %rdi
movslq -0x24(%rbp), %rsi
callq 0x3090
movq -0x58(%rbp), %rdi
movl (%rax), %eax
movl %eax, -0x64(%rbp)
movslq -0x24(%rbp), %rsi
callq 0x3090
movq -0x48(%rbp), %rdi
movq %rax, %rcx
movl -0x64(%rbp), %eax
movl (%rcx), %ecx
addl %ecx, %eax
movl -0x1c(%rbp), %ecx
cltd
idivl %ecx
movl %edx, -0x28(%rbp)
leaq -0x28(%rbp), %rsi
callq 0x1c30
jmp 0x2e58
jmp 0x2e5a
movl -0x24(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x24(%rbp)
jmp 0x2dfa
movq -0x48(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
callq 0x1cc0
jmp 0x2e99
movb $0x1, -0x1d(%rbp)
testb $0x1, -0x1d(%rbp)
jne 0x2e8f
movq -0x48(%rbp), %rdi
callq 0x1cc0
movq -0x40(%rbp), %rax
addq $0x70, %rsp
popq %rbp
retq
movq -0x30(%rbp), %rdi
callq 0x1170
nopw %cs:(%rax,%rax)
// File: archit-p[P]bulletproofs-demo/src/vector_util.cpp
// Function: random_vector(int, int)
vector <int> random_vector(int len, int order)
{
    vector <int> ret;
    for(int i = 0; i < len; i++)
        ret.push_back(rand()%order);
    return ret;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x40(%rbp)
movq %rdi, %rax
movq %rax, -0x38(%rbp)
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movl %edx, -0x10(%rbp)
movb $0x0, -0x11(%rbp)
callq 0x1b70
movl $0x0, -0x18(%rbp)
movl -0x18(%rbp), %eax
cmpl -0xc(%rbp), %eax
jge 0x2f26
callq 0x1030
movq -0x40(%rbp), %rdi
movl -0x10(%rbp), %ecx
cltd
idivl %ecx
movl %edx, -0x1c(%rbp)
leaq -0x1c(%rbp), %rsi
callq 0x1c30
jmp 0x2f02
jmp 0x2f04
movl -0x18(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x18(%rbp)
jmp 0x2edd
movq -0x40(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
callq 0x1cc0
jmp 0x2f43
movb $0x1, -0x11(%rbp)
testb $0x1, -0x11(%rbp)
jne 0x2f39
movq -0x40(%rbp), %rdi
callq 0x1cc0
movq -0x38(%rbp), %rax
addq $0x40, %rsp
popq %rbp
retq
movq -0x28(%rbp), %rdi
callq 0x1170
nopl (%rax)
// File: archit-p[P]bulletproofs-demo/src/main.cpp
// Function: build_gen_vector(Group*, int)
vector <int> build_gen_vector(Group *g, int len)
{
    vector <int> ret;
    for(int i = 0; i < len; i++)
        ret.push_back(g->get_gen());
    return ret;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x40(%rbp)
movq %rdi, %rax
movq %rax, -0x38(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
movb $0x0, -0x15(%rbp)
callq 0x1b70
movl $0x0, -0x1c(%rbp)
movl -0x1c(%rbp), %eax
cmpl -0x14(%rbp), %eax
jge 0x367d
movq -0x10(%rbp), %rdi
callq 0x7510
movl %eax, -0x44(%rbp)
jmp 0x3644
movq -0x40(%rbp), %rdi
movl -0x44(%rbp), %eax
movl %eax, -0x20(%rbp)
leaq -0x20(%rbp), %rsi
callq 0x1c30
jmp 0x3659
jmp 0x365b
movl -0x1c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x1c(%rbp)
jmp 0x362e
movq -0x40(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
callq 0x1cc0
jmp 0x369a
movb $0x1, -0x15(%rbp)
testb $0x1, -0x15(%rbp)
jne 0x3690
movq -0x40(%rbp), %rdi
callq 0x1cc0
movq -0x38(%rbp), %rax
addq $0x50, %rsp
popq %rbp
retq
movq -0x28(%rbp), %rdi
callq 0x1170
nopw %cs:(%rax,%rax)
// File: archit-p[P]bulletproofs-demo/src/main.cpp
// Function: main
int main()
{
    //initialize a random number generator for future use
    srand(unsigned(std::time(NULL))); 
    Group *g = new Group(383);
    Prover *p = new Prover(9, 383, build_gen_vector(g, 4));
    return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movl $0x0, -0x4(%rbp)
xorl %eax, %eax
movl %eax, %edi
callq 0x10a0
movl %eax, %edi
callq 0x10b0
movl $0x38, %edi
callq 0x10d0
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0x50(%rbp)
movl $0x17f, %esi            # imm = 0x17F
callq 0x7300
jmp 0x36ef
movq -0x50(%rbp), %rax
movq %rax, -0x10(%rbp)
movl $0xd8, %edi
callq 0x10d0
movq %rax, -0x58(%rbp)
movb $0x1, -0x41(%rbp)
movq -0x10(%rbp), %rsi
leaq -0x40(%rbp), %rdi
movl $0x4, %edx
callq 0x3600
jmp 0x371d
movq -0x58(%rbp), %rdi
movl $0x9, %esi
movl $0x17f, %edx            # imm = 0x17F
leaq -0x40(%rbp), %rcx
callq 0x37c0
jmp 0x3736
movb $0x0, -0x41(%rbp)
leaq -0x40(%rbp), %rdi
callq 0x1cc0
movq -0x58(%rbp), %rax
movq %rax, -0x28(%rbp)
xorl %eax, %eax
addq $0x60, %rsp
popq %rbp
retq
movq -0x50(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x18(%rbp)
movl %eax, -0x1c(%rbp)
movl $0x38, %esi
callq 0x10e0
jmp 0x37aa
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x18(%rbp)
movl %eax, -0x1c(%rbp)
jmp 0x3792
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x18(%rbp)
movl %eax, -0x1c(%rbp)
leaq -0x40(%rbp), %rdi
callq 0x1cc0
testb $0x1, -0x41(%rbp)
jne 0x379a
jmp 0x37a8
movq -0x58(%rbp), %rdi
movl $0xd8, %esi
callq 0x10e0
jmp 0x37aa
movq -0x18(%rbp), %rdi
callq 0x1170
nopw %cs:(%rax,%rax)
nopl (%rax)
// File: archit-p[P]bulletproofs-demo/src/prover.cpp
// Function: Prover::get_complement_vector(std::vector<int, std::allocator<int>>)
vector <int> Prover::get_complement_vector(vector <int> al)
{
    vector <int> ar;
    for(int i = 0; i < n; i++) {
        ar.push_back(al[i]-1);
    }
    return ar;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movq %rdx, -0x58(%rbp)
movq %rdi, -0x50(%rbp)
movq %rdi, %rax
movq %rax, -0x48(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x40(%rbp)
movb $0x0, -0x19(%rbp)
callq 0x1b70
movl $0x0, -0x20(%rbp)
movq -0x40(%rbp), %rcx
movl -0x20(%rbp), %eax
cmpl (%rcx), %eax
jge 0x3ddd
movq -0x58(%rbp), %rdi
movslq -0x20(%rbp), %rsi
callq 0x3090
movq -0x50(%rbp), %rdi
movl (%rax), %eax
decl %eax
movl %eax, -0x24(%rbp)
leaq -0x24(%rbp), %rsi
callq 0x1c30
jmp 0x3db9
jmp 0x3dbb
movl -0x20(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x20(%rbp)
jmp 0x3d8b
movq -0x50(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
callq 0x1cc0
jmp 0x3dfa
movb $0x1, -0x19(%rbp)
testb $0x1, -0x19(%rbp)
jne 0x3df0
movq -0x50(%rbp), %rdi
callq 0x1cc0
movq -0x48(%rbp), %rax
addq $0x60, %rsp
popq %rbp
retq
movq -0x30(%rbp), %rdi
callq 0x1170
nopw %cs:(%rax,%rax)
// File: archit-p[P]bulletproofs-demo/src/prover.cpp
// Function: Prover::get_gen_vector(std::vector<int, std::allocator<int>>, int)
vector <int> Prover::get_gen_vector(vector <int> gens, int len)
{
    vector <int> ret;
    int gen;
    for(int i = 0; i < len; i++) {
        gen = gens[rand()%gens.size()];
        ret.push_back(gen);
    }
    return ret;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movq %rdx, -0x50(%rbp)
movq %rdi, -0x48(%rbp)
movq %rdi, %rax
movq %rax, -0x40(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movl %ecx, -0x1c(%rbp)
movb $0x0, -0x1d(%rbp)
callq 0x1b70
movl $0x0, -0x28(%rbp)
movl -0x28(%rbp), %eax
cmpl -0x1c(%rbp), %eax
jge 0x3eb2
callq 0x1030
movq -0x50(%rbp), %rdi
cltq
movq %rax, -0x58(%rbp)
callq 0x2450
movq -0x50(%rbp), %rdi
movq %rax, %rcx
movq -0x58(%rbp), %rax
xorl %edx, %edx
divq %rcx
movq %rdx, %rsi
callq 0x3090
movq -0x48(%rbp), %rdi
movl (%rax), %eax
movl %eax, -0x24(%rbp)
leaq -0x24(%rbp), %rsi
callq 0x2fb0
jmp 0x3e8e
jmp 0x3e90
movl -0x28(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x28(%rbp)
jmp 0x3e46
movq -0x48(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
callq 0x1cc0
jmp 0x3ecf
movb $0x1, -0x1d(%rbp)
testb $0x1, -0x1d(%rbp)
jne 0x3ec5
movq -0x48(%rbp), %rdi
callq 0x1cc0
movq -0x40(%rbp), %rax
addq $0x60, %rsp
popq %rbp
retq
movq -0x30(%rbp), %rdi
callq 0x1170
nopl (%rax,%rax)
// File: archit-p[P]bulletproofs-demo/src/prover.cpp
// Function: Prover::calc_tau_x()
int Prover::calc_tau_x()
{
    if(x == -1 || z == -1) {
        cout << "Set the x and z values before calling";
        return -1;
    }
    return tau[1]*(int)pow(x, 2)+tau[0]*x+z*p;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x10(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x18(%rbp)
cmpl $-0x1, 0xc(%rax)
je 0x4114
movq -0x18(%rbp), %rax
cmpl $-0x1, 0x14(%rax)
jne 0x4130
movq 0x7ebd(%rip), %rdi      # 0xbfd8
leaq 0x3f09(%rip), %rsi      # 0x802b
callq 0x10c0
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x4170
movq -0x18(%rbp), %rax
movl 0xd0(%rax), %ecx
movl %ecx, -0x1c(%rbp)
movl 0xc(%rax), %edi
movl $0x2, %esi
callq 0x3020
movl -0x1c(%rbp), %eax
movq -0x18(%rbp), %rdx
cvttsd2si %xmm0, %ecx
imull %ecx, %eax
movl 0xcc(%rdx), %ecx
imull 0xc(%rdx), %ecx
addl %ecx, %eax
movl 0x14(%rdx), %ecx
imull 0x4(%rdx), %ecx
addl %ecx, %eax
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x20, %rsp
popq %rbp
retq
nopl (%rax)
// File: archit-p[P]bulletproofs-demo/src/prover.cpp
// Function: Prover::calc_l()
vector <int> Prover::calc_l()
{
    if(x == -1 || z == -1) {
        cout << "Set the x and z values before calling";
        return {-1};
    }
    return vector_sum(vector_diff(al, k_product_vector(get_k_vector(1, n), z)), k_product_vector(sl, x));
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xf0, %rsp
movq %rdi, -0xe0(%rbp)
movq %rdi, %rax
movq %rax, -0xd8(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0xd0(%rbp)
cmpl $-0x1, 0xc(%rax)
je 0x41c2
movq -0xd0(%rbp), %rax
cmpl $-0x1, 0x14(%rax)
jne 0x4241
movq 0x7e0f(%rip), %rdi      # 0xbfd8
leaq 0x3e5b(%rip), %rsi      # 0x802b
callq 0x10c0
movl $0xffffffff, -0x24(%rbp) # imm = 0xFFFFFFFF
leaq -0x24(%rbp), %rax
movq %rax, -0x20(%rbp)
movq $0x1, -0x18(%rbp)
leaq -0x25(%rbp), %rdi
movq %rdi, -0xe8(%rbp)
callq 0x1d90
movq -0xe0(%rbp), %rdi
movq -0xe8(%rbp), %rcx
movq -0x20(%rbp), %rsi
movq -0x18(%rbp), %rdx
callq 0x53b0
jmp 0x4219
leaq -0x25(%rbp), %rdi
callq 0x1f80
jmp 0x43c8
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
leaq -0x25(%rbp), %rdi
callq 0x1f80
jmp 0x43d8
movq -0xd0(%rbp), %rsi
addq $0x18, %rsi
leaq -0x68(%rbp), %rdi
callq 0x52c0
movq -0xd0(%rbp), %rax
movl (%rax), %edx
leaq -0x98(%rbp), %rdi
movl $0x1, %esi
callq 0x2950
jmp 0x4271
movq -0xd0(%rbp), %rax
movl 0x14(%rax), %edx
leaq -0x80(%rbp), %rdi
leaq -0x98(%rbp), %rsi
callq 0x2ac0
jmp 0x428d
leaq -0x50(%rbp), %rdi
leaq -0x68(%rbp), %rsi
leaq -0x80(%rbp), %rdx
callq 0x2c00
jmp 0x42a0
movq -0xd0(%rbp), %rsi
addq $0x48, %rsi
leaq -0xc8(%rbp), %rdi
callq 0x52c0
jmp 0x42b9
movq -0xd0(%rbp), %rax
movl 0xc(%rax), %edx
leaq -0xb0(%rbp), %rdi
leaq -0xc8(%rbp), %rsi
callq 0x2ac0
jmp 0x42d8
movq -0xe0(%rbp), %rdi
leaq -0x50(%rbp), %rsi
leaq -0xb0(%rbp), %rdx
callq 0x2ce0
jmp 0x42f1
leaq -0xb0(%rbp), %rdi
callq 0x1cc0
leaq -0xc8(%rbp), %rdi
callq 0x1cc0
leaq -0x50(%rbp), %rdi
callq 0x1cc0
leaq -0x80(%rbp), %rdi
callq 0x1cc0
leaq -0x98(%rbp), %rdi
callq 0x1cc0
leaq -0x68(%rbp), %rdi
callq 0x1cc0
jmp 0x43c8
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
jmp 0x43bd
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
jmp 0x43b1
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
jmp 0x43a8
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
jmp 0x439f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
jmp 0x4393
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
leaq -0xb0(%rbp), %rdi
callq 0x1cc0
leaq -0xc8(%rbp), %rdi
callq 0x1cc0
leaq -0x50(%rbp), %rdi
callq 0x1cc0
leaq -0x80(%rbp), %rdi
callq 0x1cc0
leaq -0x98(%rbp), %rdi
callq 0x1cc0
leaq -0x68(%rbp), %rdi
callq 0x1cc0
jmp 0x43d8
movq -0xd8(%rbp), %rax
addq $0xf0, %rsp
popq %rbp
retq
movq -0x30(%rbp), %rdi
callq 0x1170
nopw %cs:(%rax,%rax)
// File: archit-p[P]bulletproofs-demo/src/serialize.hpp
// Function: conv_to_bytes(int)
char *conv_to_bytes(int n)
{
    char *temp = (char *)malloc(sizeof n);
    std::copy_n(static_cast<const char*>(static_cast<const void*>(&n)),
                    sizeof n,
                        temp);
    //printf("%x\n", temp[0]);
    return temp;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movl %edi, -0x4(%rbp)
movl $0x4, %edi
callq 0x1100
movq %rax, -0x10(%rbp)
movq -0x10(%rbp), %rdx
leaq -0x4(%rbp), %rdi
movl $0x4, %esi
callq 0x66e0
movq -0x10(%rbp), %rax
addq $0x10, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: archit-p[P]bulletproofs-demo/src/serialize.hpp
// Function: serialize(std::vector<int, std::allocator<int>>)
char *serialize(std::vector <int> nums)
{
    char *temp, *p, *bytes = (char *)malloc(sizeof(int)* nums.size());
    p = bytes;
    for(int i = 0; i < nums.size(); i++, p += sizeof(int)) {
        temp = conv_to_bytes(nums[i]);
        std::copy_n(temp,
                     sizeof(int),
                      p);
    }
    return bytes;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x30(%rbp)
movq %rdi, -0x8(%rbp)
callq 0x2450
movq %rax, %rdi
shlq $0x2, %rdi
callq 0x1100
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rax
movq %rax, -0x18(%rbp)
movl $0x0, -0x24(%rbp)
movq -0x30(%rbp), %rdi
movslq -0x24(%rbp), %rax
movq %rax, -0x38(%rbp)
callq 0x2450
movq %rax, %rcx
movq -0x38(%rbp), %rax
cmpq %rcx, %rax
jae 0x5eb2
movq -0x30(%rbp), %rdi
movslq -0x24(%rbp), %rsi
callq 0x3090
movl (%rax), %edi
callq 0x5de0
movq %rax, -0x10(%rbp)
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rdx
movl $0x4, %esi
callq 0x6760
movl -0x24(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x24(%rbp)
movq -0x18(%rbp), %rax
addq $0x4, %rax
movq %rax, -0x18(%rbp)
jmp 0x5e54
movq -0x20(%rbp), %rax
addq $0x40, %rsp
popq %rbp
retq
nopl (%rax)
// File: archit-p[P]bulletproofs-demo/src/serialize.hpp
// Function: deserialize(char*, int)
std::vector <int> deserialize(char *bytes, int num_bytes)
{
    std::vector <int> ret;
    int temp;
    num_bytes = num_bytes/sizeof(int);

    for(int i = 0; i < num_bytes; i++) {
        std::copy_n(static_cast<const int*>(static_cast<const void*>(bytes))+i,
                        1,
                            &temp);
        ret.push_back(temp);
    }

    return ret;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x40(%rbp)
movq %rdi, %rax
movq %rax, -0x38(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
movb $0x0, -0x15(%rbp)
callq 0x1b70
movslq -0x14(%rbp), %rax
shrq $0x2, %rax
movl %eax, -0x14(%rbp)
movl $0x0, -0x20(%rbp)
movl -0x20(%rbp), %eax
cmpl -0x14(%rbp), %eax
jge 0x5f50
movq -0x10(%rbp), %rax
movslq -0x20(%rbp), %rcx
leaq (%rax,%rcx,4), %rdi
movl $0x1, %esi
leaq -0x1c(%rbp), %rdx
callq 0x67e0
jmp 0x5f1d
movq -0x40(%rbp), %rdi
leaq -0x1c(%rbp), %rsi
callq 0x2fb0
jmp 0x5f2c
jmp 0x5f2e
movl -0x20(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x20(%rbp)
jmp 0x5ef9
movq -0x40(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
callq 0x1cc0
jmp 0x5f6d
movb $0x1, -0x15(%rbp)
testb $0x1, -0x15(%rbp)
jne 0x5f63
movq -0x40(%rbp), %rdi
callq 0x1cc0
movq -0x38(%rbp), %rax
addq $0x40, %rsp
popq %rbp
retq
movq -0x28(%rbp), %rdi
callq 0x1170
nopw %cs:(%rax,%rax)
// File: archit-p[P]bulletproofs-demo/src/inner_product_arg.cpp
// Function: InnerProdArg::InnerProdArg(std::vector<int, std::allocator<int>>, std::vector<int, std::allocator<int>>, int, int, int)
InnerProdArg::InnerProdArg(vector <int> a, vector <int> b, int c, int order, int x) {
    if(a.size() != b.size())
        return;
    InnerProdArg::a = a;
    InnerProdArg::b = b;
    InnerProdArg::c = c;
    InnerProdArg::x = x;
    InnerProdArg::order = order;
    generate_argument();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movq %rsi, -0x50(%rbp)
movq %rdx, -0x48(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movl %ecx, -0x1c(%rbp)
movl %r8d, -0x20(%rbp)
movl %r9d, -0x24(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x60(%rbp)
callq 0x1b70
movq -0x60(%rbp), %rdi
addq $0x18, %rdi
movq %rdi, -0x58(%rbp)
callq 0x1b70
movq -0x50(%rbp), %rdi
callq 0x2450
movq -0x48(%rbp), %rdi
movq %rax, -0x40(%rbp)
callq 0x2450
movq %rax, %rcx
movq -0x40(%rbp), %rax
cmpq %rcx, %rax
je 0x5fe9
jmp 0x6028
movq -0x50(%rbp), %rsi
movq -0x60(%rbp), %rdi
callq 0x6850
jmp 0x5ff8
movq -0x48(%rbp), %rsi
movq -0x60(%rbp), %rdi
addq $0x18, %rdi
callq 0x6850
jmp 0x600b
movq -0x60(%rbp), %rdi
movl -0x1c(%rbp), %eax
movl %eax, 0x3c(%rdi)
movl -0x24(%rbp), %eax
movl %eax, 0x40(%rdi)
movl -0x20(%rbp), %eax
movl %eax, 0x38(%rdi)
callq 0x6060
jmp 0x6028
addq $0x60, %rsp
popq %rbp
retq
movq -0x58(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
callq 0x1cc0
movq -0x60(%rbp), %rdi
callq 0x1cc0
movq -0x30(%rbp), %rdi
callq 0x1170
nopw %cs:(%rax,%rax)
// File: archit-p[P]bulletproofs-demo/src/group.cpp
// Function: Group::Group(int)
Group::Group(int p) 
{
    order = p;
    for(long i = 1; i <= p; i++)
        group.push_back(i);
    generators = find_gens(p);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x50(%rbp)
addq $0x8, %rdi
movq %rdi, -0x60(%rbp)
callq 0x1b70
movq -0x50(%rbp), %rdi
addq $0x20, %rdi
movq %rdi, -0x58(%rbp)
callq 0x1b70
movq -0x50(%rbp), %rax
movl -0xc(%rbp), %ecx
movl %ecx, (%rax)
movq $0x1, -0x18(%rbp)
movq -0x18(%rbp), %rax
movslq -0xc(%rbp), %rcx
cmpq %rcx, %rax
jg 0x739c
movq -0x50(%rbp), %rdi
addq $0x8, %rdi
movl -0x18(%rbp), %eax
movl %eax, -0x1c(%rbp)
leaq -0x1c(%rbp), %rsi
callq 0x1c30
jmp 0x736c
jmp 0x736e
movq -0x18(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x18(%rbp)
jmp 0x7346
movq -0x58(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
callq 0x1cc0
movq -0x60(%rbp), %rdi
callq 0x1cc0
jmp 0x73ce
movq -0x50(%rbp), %rsi
movl -0xc(%rbp), %edx
leaq -0x48(%rbp), %rdi
callq 0x73e0
jmp 0x73ae
movq -0x50(%rbp), %rdi
addq $0x20, %rdi
leaq -0x48(%rbp), %rsi
callq 0x5290
leaq -0x48(%rbp), %rdi
callq 0x1cc0
addq $0x60, %rsp
popq %rbp
retq
movq -0x28(%rbp), %rdi
callq 0x1170
nopw (%rax,%rax)
// File: archit-p[P]bulletproofs-demo/src/group.cpp
// Function: Group::find_gens(int)
vector <int> Group::find_gens(int p)
{
    int q = (p-1)/2;
    int power_check_2, power_check_q;
    vector <int> gens;
    for(int i = 2; i < p; i++) {
        power_check_2 = large_mod(i, 2, p);
        power_check_q = large_mod(i, q, p);
        if(power_check_2 != 1 && power_check_q != 1)
            gens.push_back(i);
        }
    return gens;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x48(%rbp)
movq %rdi, %rax
movq %rax, -0x40(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
movl -0x14(%rbp), %eax
subl $0x1, %eax
movl $0x2, %ecx
cltd
idivl %ecx
movl %eax, -0x18(%rbp)
movb $0x0, -0x21(%rbp)
callq 0x1b70
movl $0x2, -0x28(%rbp)
movl -0x28(%rbp), %eax
cmpl -0x14(%rbp), %eax
jge 0x749c
movl -0x28(%rbp), %edi
movl -0x14(%rbp), %edx
movl $0x2, %esi
callq 0x14a0
movl %eax, -0x4c(%rbp)
jmp 0x743c
movl -0x4c(%rbp), %eax
movl %eax, -0x1c(%rbp)
movl -0x28(%rbp), %edi
movl -0x18(%rbp), %esi
movl -0x14(%rbp), %edx
callq 0x14a0
movl %eax, -0x50(%rbp)
jmp 0x7455
movl -0x50(%rbp), %eax
movl %eax, -0x20(%rbp)
cmpl $0x1, -0x1c(%rbp)
je 0x748f
cmpl $0x1, -0x20(%rbp)
je 0x748f
movq -0x48(%rbp), %rdi
leaq -0x28(%rbp), %rsi
callq 0x2fb0
jmp 0x7476
jmp 0x748f
movq -0x48(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
callq 0x1cc0
jmp 0x74b9
jmp 0x7491
movl -0x28(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x28(%rbp)
jmp 0x741f
movb $0x1, -0x21(%rbp)
testb $0x1, -0x21(%rbp)
jne 0x74af
movq -0x48(%rbp), %rdi
callq 0x1cc0
movq -0x40(%rbp), %rax
addq $0x50, %rsp
popq %rbp
retq
movq -0x30(%rbp), %rdi
callq 0x1170
nopw %cs:(%rax,%rax)