// File: /workspace/github_cpp_makefile_star2_O3/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, %r12
callq 0x27f8
leaq 0x30(%rsp), %rdi
callq 0x27f8
leaq 0x8(%r12), %rdi
movb $0x30, 0xc8(%rsp)
movq 0x38(%r12), %rax
movq 0x48(%r12), %rcx
decq %rcx
cmpq %rcx, %rax
movq %rdi, 0x18(%rsp)
je 0x3937
movb $0x30, (%rax)
incq 0x38(%r12)
jmp 0x3944
leaq 0xc8(%rsp), %rsi
callq 0xb674
leaq 0x58(%r12), %rax
movq %rax, 0x10(%rsp)
leaq 0x60(%r12), %rax
movq %rax, 0x8(%rsp)
xorl %ebp, %ebp
movq %r12, 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 0x3c39
movq %rbp, %rbx
testq %rbp, %rbp
je 0x39d4
movb $0x30, 0xc8(%rsp)
movq 0x48(%rsp), %rax
cmpq 0x50(%rsp), %rax
je 0x39bd
movb $0x30, -0x1(%rax)
decq 0x48(%rsp)
jmp 0x39cf
leaq 0x38(%rsp), %rdi
leaq 0xc8(%rsp), %rsi
callq 0xb5ba
decq %rbx
jne 0x399e
xorl %ebx, %ebx
xorl %r13d, %r13d
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, %r13
jae 0x3b16
movq 0x18(%r14), %rdi
movq 0x30(%r14), %rsi
movq %rdi, %rdx
subq 0x20(%r14), %rdx
addq %rbp, %rdx
js 0x3a3b
cmpq $0x1ff, %rdx            # imm = 0x1FF
ja 0x3a44
addq %rbp, %rdi
movq %rdi, %rdx
jmp 0x3a59
movq %rdx, %rdi
sarq $0x9, %rdi
jmp 0x3a4b
movq %rdx, %rdi
shrq $0x9, %rdi
movq %rdi, %r8
shlq $0x9, %r8
subq %r8, %rdx
addq (%rsi,%rdi,8), %rdx
movq %rcx, %rsi
subq 0x20(%r15), %rsi
addq %r13, %rsi
js 0x3a76
cmpq $0x1ff, %rsi            # imm = 0x1FF
ja 0x3a7f
addq %r13, %rcx
movq %rcx, %rsi
jmp 0x3a94
movq %rsi, %rcx
sarq $0x9, %rcx
jmp 0x3a86
movq %rsi, %rcx
shrq $0x9, %rcx
movq %rcx, %rdi
shlq $0x9, %rdi
subq %rdi, %rsi
addq (%rax,%rcx,8), %rsi
movsbl (%rdx), %ecx
addl $-0x30, %ecx
movsbl (%rsi), %eax
addl $-0x30, %eax
imull %ecx, %eax
addl %ebx, %eax
xorl %ebx, %ebx
cmpl $0xa, %eax
jl 0x3ad8
cmpl $0x13, %eax
movl $0x13, %ecx
cmovbl %eax, %ecx
movl %eax, %ebx
subl %ecx, %ebx
addl $0x9, %ebx
movl $0xcccccccd, %ecx       # imm = 0xCCCCCCCD
imulq %rcx, %rbx
shrq $0x23, %rbx
leal (%rbx,%rbx), %ecx
leal (%rcx,%rcx,4), %ecx
incl %ebx
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 0x3afc
movb %al, (%rcx)
incq 0x68(%rsp)
jmp 0x3b0e
leaq 0x38(%rsp), %rdi
leaq 0xc8(%rsp), %rsi
callq 0xb674
incq %r13
jmp 0x39d9
testl %ebx, %ebx
je 0x3b51
addb $0x30, %bl
movb %bl, 0xc8(%rsp)
movq 0x68(%rsp), %rax
movq 0x78(%rsp), %rcx
decq %rcx
cmpq %rcx, %rax
je 0x3b3f
movb %bl, (%rax)
incq 0x68(%rsp)
jmp 0x3b51
leaq 0x38(%rsp), %rdi
leaq 0xc8(%rsp), %rsi
callq 0xb674
leaq 0xc8(%rsp), %rdi
movq %r12, %rsi
leaq 0x30(%rsp), %rdx
callq 0x34d8
movb 0xc8(%rsp), %al
movb %al, (%r12)
movq 0x18(%rsp), %rdi
leaq 0xd0(%rsp), %rbx
movq %rbx, %rsi
callq 0xb3ae
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 0x3bc2
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 0x3c0d
movq %rbx, %r13
movq 0x8(%r13), %rdi
addq $0x8, %r13
callq 0x2120
cmpq %r12, %r13
jb 0x3bfb
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), %r12
jmp 0x395f
leaq 0xa0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x3c4f
callq 0x2120
leaq 0x38(%rsp), %rdi
callq 0x28a2
movq %r12, %rax
addq $0x148, %rsp            # imm = 0x148
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x3c7b
movq %rax, %r14
jmp 0x3c88
jmp 0x3c7b
jmp 0x3c7b
jmp 0x3c7b
movq %rax, %r14
leaq 0x30(%rsp), %rdi
callq 0x2758
movq %r12, %rdi
callq 0x2758
movq %r14, %rdi
callq 0x2200