// File: asd00012334[P]Abstract-Algebra-2018/main.cpp
// Function: Polynomial<prime::Zp, prime::ZpElement>::operator*(Polynomial<prime::Zp, prime::ZpElement> const&) const
Polynomial operator*(Polynomial const& p2)const{
        Polynomial out;
        out.canonicalType.scalar = canonicalType.scalar;
        out.coef.resize(coef.size()+p2.coef.size()-1,canonicalType.scalar->__zero__());
        for(int i=0;i<coef.size();++i)
        for(int j=0;j<p2.coef.size();++j){
            assert(i+j<out.coef.size());
            out.coef[i+j] = out.coef[i+j] + coef[i] * p2.coef[j];
        }
        out.reduce();
        return out;
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xe0, %rsp
movq %rdi, -0xa8(%rbp)
movq %rdi, %rax
movq %rax, -0xb0(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x90(%rbp)
movb $0x0, -0x19(%rbp)
callq 0x4870
movq -0xa8(%rbp), %rax
movq -0x90(%rbp), %rdi
movq (%rdi), %rcx
movq %rcx, (%rax)
addq $0x10, %rax
movq %rax, -0xa0(%rbp)
addq $0x10, %rdi
callq 0x95a0
movq %rax, -0x98(%rbp)
movq -0x18(%rbp), %rdi
addq $0x10, %rdi
callq 0x95a0
movq -0x98(%rbp), %rcx
movq %rax, %rdx
movq -0x90(%rbp), %rax
leaq -0x1(%rcx,%rdx), %rcx
movq %rcx, -0x88(%rbp)
movq (%rax), %rsi
leaq -0x38(%rbp), %rdi
callq 0x2750
jmp 0xcf93
movq -0x88(%rbp), %rsi
movq -0xa0(%rbp), %rdi
leaq -0x38(%rbp), %rdx
callq 0xdd80
jmp 0xcfac
movl $0x0, -0x48(%rbp)
movq -0x90(%rbp), %rdi
movslq -0x48(%rbp), %rax
movq %rax, -0xb8(%rbp)
addq $0x10, %rdi
callq 0x95a0
movq %rax, %rcx
movq -0xb8(%rbp), %rax
cmpq %rcx, %rax
jae 0xd146
movl $0x0, -0x4c(%rbp)
movslq -0x4c(%rbp), %rax
movq %rax, -0xc0(%rbp)
movq -0x18(%rbp), %rdi
addq $0x10, %rdi
callq 0x95a0
movq %rax, %rcx
movq -0xc0(%rbp), %rax
cmpq %rcx, %rax
jae 0xd136
movq -0xa8(%rbp), %rdi
movl -0x48(%rbp), %eax
addl -0x4c(%rbp), %eax
cltq
movq %rax, -0xc8(%rbp)
addq $0x10, %rdi
callq 0x95a0
movq %rax, %rcx
movq -0xc8(%rbp), %rax
cmpq %rcx, %rax
jae 0xd043
jmp 0xd07f
leaq 0x809f(%rip), %rdi      # 0x150e9
leaq 0x80ac(%rip), %rsi      # 0x150fd
movl $0x51, %edx
leaq 0x80a9(%rip), %rcx      # 0x15106
callq 0x2140
movq -0xa8(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
callq 0x49b0
jmp 0xd17a
movq -0xa8(%rbp), %rdi
addq $0x10, %rdi
movl -0x48(%rbp), %eax
movl -0x4c(%rbp), %ecx
addl %ecx, %eax
movslq %eax, %rsi
callq 0xd3e0
movq -0x90(%rbp), %rdi
movq %rax, -0xd8(%rbp)
addq $0x10, %rdi
movslq -0x48(%rbp), %rsi
callq 0xcb10
movq %rax, -0xd0(%rbp)
movq -0x18(%rbp), %rdi
addq $0x10, %rdi
movslq -0x4c(%rbp), %rsi
callq 0xcb10
movq -0xd0(%rbp), %rsi
movq %rax, %rdx
leaq -0x80(%rbp), %rdi
callq 0xd580
jmp 0xd0e2
movq -0xd8(%rbp), %rsi
leaq -0x68(%rbp), %rdi
leaq -0x80(%rbp), %rdx
callq 0xde30
jmp 0xd0f8
movq -0xa8(%rbp), %rdi
addq $0x10, %rdi
movl -0x48(%rbp), %eax
addl -0x4c(%rbp), %eax
movslq %eax, %rsi
callq 0xd3e0
movq -0x68(%rbp), %rcx
movq %rcx, (%rax)
movq -0x60(%rbp), %rcx
movq %rcx, 0x8(%rax)
movq -0x58(%rbp), %rcx
movq %rcx, 0x10(%rax)
movl -0x4c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x4c(%rbp)
jmp 0xcfe8
jmp 0xd138
movl -0x48(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x48(%rbp)
jmp 0xcfb3
movq -0xa8(%rbp), %rdi
callq 0x4920
jmp 0xd154
movb $0x1, -0x19(%rbp)
testb $0x1, -0x19(%rbp)
jne 0xd16a
movq -0xa8(%rbp), %rdi
callq 0x49b0
movq -0xb0(%rbp), %rax
addq $0xe0, %rsp
popq %rbp
retq
movq -0x40(%rbp), %rdi
callq 0x22f0
nopw %cs:(%rax,%rax)
nopl (%rax)