// 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;
        int siz = std::max(coef.size(), p2.coef.size());
        out.coef.resize(siz,canonicalType.scalar->__zero__());
        for(int i=0;i<coef.size();++i) out.coef[i] = out.coef[i]+coef[i];
        for(int i=0;i<p2.coef.size();++i) out.coef[i] = out.coef[i]-p2.coef[i];
        out.reduce();
        return out;
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xe0, %rsp
movq %rdi, -0xb0(%rbp)
movq %rdi, %rax
movq %rax, -0xb8(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0xa8(%rbp)
movb $0x0, -0x19(%rbp)
callq 0x4870
movq -0xb0(%rbp), %rax
movq -0xa8(%rbp), %rdi
movq (%rdi), %rcx
movq %rcx, (%rax)
addq $0x10, %rdi
callq 0x95a0
movq %rax, -0x28(%rbp)
movq -0x18(%rbp), %rdi
addq $0x10, %rdi
callq 0x95a0
movq %rax, -0x30(%rbp)
leaq -0x28(%rbp), %rdi
leaq -0x30(%rbp), %rsi
callq 0x95d0
movq -0xb0(%rbp), %rdi
movq %rax, %rcx
movq -0xa8(%rbp), %rax
movl (%rcx), %ecx
movl %ecx, -0x20(%rbp)
addq $0x10, %rdi
movq %rdi, -0xa0(%rbp)
movslq -0x20(%rbp), %rcx
movq %rcx, -0x98(%rbp)
movq (%rax), %rsi
leaq -0x48(%rbp), %rdi
callq 0x2750
jmp 0x5755
movq -0x98(%rbp), %rsi
movq -0xa0(%rbp), %rdi
leaq -0x48(%rbp), %rdx
callq 0xdd80
jmp 0x576e
movl $0x0, -0x58(%rbp)
movq -0xa8(%rbp), %rdi
movslq -0x58(%rbp), %rax
movq %rax, -0xc0(%rbp)
addq $0x10, %rdi
callq 0x95a0
movq %rax, %rcx
movq -0xc0(%rbp), %rax
cmpq %rcx, %rax
jae 0x583d
movq -0xb0(%rbp), %rdi
addq $0x10, %rdi
movslq -0x58(%rbp), %rsi
callq 0xd3e0
movq -0xa8(%rbp), %rdi
movq %rax, -0xc8(%rbp)
addq $0x10, %rdi
movslq -0x58(%rbp), %rsi
callq 0xcb10
movq -0xc8(%rbp), %rsi
movq %rax, %rdx
leaq -0x70(%rbp), %rdi
callq 0xde30
jmp 0x57e7
movq -0xb0(%rbp), %rdi
addq $0x10, %rdi
movslq -0x58(%rbp), %rsi
callq 0xd3e0
movq -0x70(%rbp), %rcx
movq %rcx, (%rax)
movq -0x68(%rbp), %rcx
movq %rcx, 0x8(%rax)
movq -0x60(%rbp), %rcx
movq %rcx, 0x10(%rax)
movl -0x58(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x58(%rbp)
jmp 0x5775
movq -0xb0(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
callq 0x49b0
jmp 0x5926
movl $0x0, -0x74(%rbp)
movslq -0x74(%rbp), %rax
movq %rax, -0xd0(%rbp)
movq -0x18(%rbp), %rdi
addq $0x10, %rdi
callq 0x95a0
movq %rax, %rcx
movq -0xd0(%rbp), %rax
cmpq %rcx, %rax
jae 0x58f2
movq -0xb0(%rbp), %rdi
addq $0x10, %rdi
movslq -0x74(%rbp), %rsi
callq 0xd3e0
movq %rax, -0xd8(%rbp)
movq -0x18(%rbp), %rdi
addq $0x10, %rdi
movslq -0x74(%rbp), %rsi
callq 0xcb10
movq -0xd8(%rbp), %rsi
movq %rax, %rdx
leaq -0x90(%rbp), %rdi
callq 0xd480
jmp 0x58b3
movq -0xb0(%rbp), %rdi
addq $0x10, %rdi
movslq -0x74(%rbp), %rsi
callq 0xd3e0
movq -0x90(%rbp), %rcx
movq %rcx, (%rax)
movq -0x88(%rbp), %rcx
movq %rcx, 0x8(%rax)
movq -0x80(%rbp), %rcx
movq %rcx, 0x10(%rax)
movl -0x74(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x74(%rbp)
jmp 0x5844
movq -0xb0(%rbp), %rdi
callq 0x4920
jmp 0x5900
movb $0x1, -0x19(%rbp)
testb $0x1, -0x19(%rbp)
jne 0x5916
movq -0xb0(%rbp), %rdi
callq 0x49b0
movq -0xb8(%rbp), %rax
addq $0xe0, %rsp
popq %rbp
retq
movq -0x50(%rbp), %rdi
callq 0x22f0
nop