// File: /workspace/github_cpp_makefile_star2_O1/Mariotti94[P]BigFloat/BigFloat.cc
// Function: BigFloat::Multiply(BigFloat const&, BigFloat const&)
BigFloat BigFloat::Multiply(const BigFloat& left, const BigFloat& right)
{
    BigFloat ris;
    BigFloat tmp;
    ris.number.push_back('0');
    int carry = 0;

    for(size_t i = 0; i < right.number.size(); ++i) {
        for(size_t k = 0; k < i; ++k) {
            tmp.number.push_front('0');
        }

        for(size_t j = 0; j < left.number.size(); ++j) {
            int aus = CharToInt(right.number[i]) * CharToInt(left.number[j]) + carry;
            carry = 0;
            if(aus > 9) {
                while(aus > 9) {
                    carry++;
                    aus -= 10;
                }
            }
            tmp.number.push_back(IntToChar(aus));
        }

        if(carry != 0)
            tmp.number.push_back(IntToChar(carry));
        carry = 0;

        ris = Sum(ris, tmp);
        tmp.number.clear();
    }

    return ris;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x148, %rsp            # imm = 0x148
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
callq 0x27f8
leaq 0x30(%rsp), %rdi
callq 0x27f8
leaq 0x8(%rbx), %rdi
movb $0x30, 0xc8(%rsp)
movq 0x38(%rbx), %rax
movq 0x48(%rbx), %rcx
decq %rcx
cmpq %rcx, %rax
movq %rdi, 0x18(%rsp)
je 0x3941
movb $0x30, (%rax)
incq 0x38(%rbx)
jmp 0x394e
leaq 0xc8(%rsp), %rsi
callq 0xb79a
leaq 0x58(%rbx), %rax
movq %rax, 0x10(%rsp)
leaq 0x60(%rbx), %rax
movq %rax, 0x8(%rsp)
xorl %ebp, %ebp
movq %rbx, 0x20(%rsp)
movq 0x38(%r14), %rax
movq 0x50(%r14), %rcx
movq %rcx, %rdx
subq 0x30(%r14), %rdx
shrq $0x3, %rdx
cmpq $0x1, %rcx
adcq $-0x1, %rdx
shlq $0x9, %rdx
subq 0x40(%r14), %rax
addq 0x28(%r14), %rax
addq %rdx, %rax
subq 0x18(%r14), %rax
cmpq %rax, %rbp
jae 0x3c67
movq %rbp, %r12
testq %rbp, %rbp
je 0x39dc
movb $0x30, 0xc8(%rsp)
movq 0x48(%rsp), %rax
cmpq 0x50(%rsp), %rax
je 0x39c5
movb $0x30, -0x1(%rax)
decq 0x48(%rsp)
jmp 0x39d7
leaq 0x38(%rsp), %rdi
leaq 0xc8(%rsp), %rsi
callq 0xb6e0
decq %r12
jne 0x39a6
xorl %r13d, %r13d
xorl %r12d, %r12d
movq 0x50(%r15), %rdx
movq 0x18(%r15), %rcx
movq 0x30(%r15), %rax
movq %rdx, %rsi
subq %rax, %rsi
shrq $0x3, %rsi
cmpq $0x1, %rdx
adcq $-0x1, %rsi
movq 0x38(%r15), %rdx
subq 0x40(%r15), %rdx
addq 0x28(%r15), %rdx
shlq $0x9, %rsi
addq %rsi, %rdx
subq %rcx, %rdx
cmpq %rdx, %r12
jae 0x3b42
movq 0x18(%r14), %rdx
movq %rdx, %rsi
subq 0x20(%r14), %rsi
addq %rbp, %rsi
cmpq $0x1ff, %rsi            # imm = 0x1FF
ja 0x3a3b
addq %rbp, %rdx
jmp 0x3a6e
movq 0x30(%r14), %rdx
movq %rsi, %rdi
shrq $0x9, %rdi
movq %rdi, %r8
movabsq $-0x80000000000000, %r9 # imm = 0xFF80000000000000
orq %r9, %r8
testq %rsi, %rsi
cmovgq %rdi, %r8
movq %r8, %rdi
shlq $0x9, %rdi
subq %rdi, %rsi
addq (%rdx,%r8,8), %rsi
movq %rsi, %rdx
movq %rcx, %rsi
subq 0x20(%r15), %rsi
addq %r12, %rsi
cmpq $0x1ff, %rsi            # imm = 0x1FF
ja 0x3a86
addq %r12, %rcx
jmp 0x3ab5
movq %rsi, %rcx
shrq $0x9, %rcx
movq %rcx, %rdi
movabsq $-0x80000000000000, %r8 # imm = 0xFF80000000000000
orq %r8, %rdi
testq %rsi, %rsi
cmovgq %rcx, %rdi
movq %rdi, %rcx
shlq $0x9, %rcx
subq %rcx, %rsi
addq (%rax,%rdi,8), %rsi
movq %rsi, %rcx
movsbl (%rdx), %edx
addl $-0x30, %edx
movsbl (%rcx), %eax
addl $-0x30, %eax
imull %edx, %eax
addl %r13d, %eax
xorl %r13d, %r13d
cmpl $0xa, %eax
jl 0x3b04
cmpl $0x13, %eax
movl $0x13, %ecx
cmovll %eax, %ecx
movl %eax, %r13d
subl %ecx, %r13d
addl $0x9, %r13d
movl $0xcccccccd, %ecx       # imm = 0xCCCCCCCD
imulq %rcx, %r13
shrq $0x23, %r13
leal (,%r13,2), %ecx
leal (%rcx,%rcx,4), %ecx
incl %r13d
subl %ecx, %eax
addl $-0xa, %eax
addb $0x30, %al
movb %al, 0xc8(%rsp)
movq 0x68(%rsp), %rcx
movq 0x78(%rsp), %rdx
decq %rdx
cmpq %rdx, %rcx
je 0x3b28
movb %al, (%rcx)
incq 0x68(%rsp)
jmp 0x3b3a
leaq 0x38(%rsp), %rdi
leaq 0xc8(%rsp), %rsi
callq 0xb79a
incq %r12
jmp 0x39e2
testl %r13d, %r13d
je 0x3b81
addb $0x30, %r13b
movb %r13b, 0xc8(%rsp)
movq 0x68(%rsp), %rax
movq 0x78(%rsp), %rcx
decq %rcx
cmpq %rcx, %rax
je 0x3b6f
movb %r13b, (%rax)
incq 0x68(%rsp)
jmp 0x3b81
leaq 0x38(%rsp), %rdi
leaq 0xc8(%rsp), %rsi
callq 0xb79a
leaq 0xc8(%rsp), %rdi
movq %rbx, %rsi
leaq 0x30(%rsp), %rdx
callq 0x34ba
movb 0xc8(%rsp), %al
movb %al, (%rbx)
movq 0x18(%rsp), %rdi
leaq 0xd0(%rsp), %rbx
movq %rbx, %rsi
callq 0xb4d4
movb 0x54(%rbx), %al
movq 0x10(%rsp), %rcx
movb %al, 0x4(%rcx)
movl 0x50(%rbx), %eax
movl %eax, (%rcx)
movq 0x8(%rsp), %rdi
leaq 0x128(%rsp), %rsi
callq 0x2170
movq 0x128(%rsp), %rdi
leaq 0x138(%rsp), %rax
cmpq %rax, %rdi
je 0x3bf0
callq 0x2120
leaq 0xd0(%rsp), %rdi
callq 0x28a2
movups 0x48(%rsp), %xmm0
movaps %xmm0, 0xb0(%rsp)
movq 0x58(%rsp), %rax
movq %rax, 0x28(%rsp)
movq 0x60(%rsp), %rbx
movq 0x80(%rsp), %r12
cmpq %r12, %rbx
jae 0x3c3b
movq %rbx, %r13
movq 0x8(%r13), %rdi
addq $0x8, %r13
callq 0x2120
cmpq %r12, %r13
jb 0x3c29
movaps 0xb0(%rsp), %xmm0
movups %xmm0, 0x68(%rsp)
movq 0x28(%rsp), %rax
movq %rax, 0x78(%rsp)
movq %rbx, 0x80(%rsp)
incq %rbp
movq 0x20(%rsp), %rbx
jmp 0x3967
leaq 0xa0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x3c7d
callq 0x2120
leaq 0x38(%rsp), %rdi
callq 0x28a2
movq %rbx, %rax
addq $0x148, %rsp            # imm = 0x148
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x3ca9
movq %rax, %r14
jmp 0x3cb6
jmp 0x3ca9
jmp 0x3ca9
jmp 0x3ca9
movq %rax, %r14
leaq 0x30(%rsp), %rdi
callq 0x2758
movq %rbx, %rdi
callq 0x2758
movq %r14, %rdi
callq 0x2200