// File: /workspace/github_cpp_makefile_star2_O3/Merulo[P]CompilerJFTT/src/Register/RegisterBlock.cpp
// Function: RegisterBlock::generateNumberFrom(unsigned long long&, unsigned long long, Register&)
std::vector<Line> RegisterBlock::generateNumberFrom(unsigned long long& firstNumber, unsigned long long second, Register& usedRegister)
{
    if (firstNumber > second)
    {
        if (firstNumber - second < 15)
        {
            std::vector<Line> lines;
            while(firstNumber > second)
            {
                lines.push_back({"DEC", "A"});
                firstNumber--;
            }
            return lines;
        }
        else
        {            
            firstNumber = second;
            return NumberGenerator::generateConstFrom(second, {{"A", 0}});     
        }
    }
    else if (firstNumber < second )
    {
        if (second - firstNumber < 15)
        {
            std::vector<Line> lines;
            while( firstNumber < second)
            {
                lines.push_back({"INC", "A"});
                firstNumber++;
            }
            return lines;
        }
        else
        {         
            firstNumber = second;
            return NumberGenerator::generateConstFrom(second, {{"A", 0}});   
        }
    }
    return {{}};
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x178, %rsp            # imm = 0x178
movq %rcx, %rbx
movq %rdx, %r15
movq %rdi, 0x10(%rsp)
movq (%rdx), %rax
movq %rax, %rcx
subq %rbx, %rcx
jbe 0x6699
cmpq $0xe, %rcx
ja 0x684d
movq %rbx, 0x140(%rsp)
xorps %xmm0, %xmm0
movq 0x10(%rsp), %rax
movups %xmm0, (%rax)
movq $0x0, 0x10(%rax)
leaq 0x120(%rsp), %rbp
leaq 0x100(%rsp), %r13
leaq 0x30bbe(%rip), %rbx     # 0x370e3
leaq 0xe0(%rsp), %r12
leaq 0x18(%rsp), %r14
leaq 0x130(%rsp), %rax
movq %rax, 0x120(%rsp)
movq %rbp, %rdi
leaq 0x30b4e(%rip), %rsi     # 0x3709a
leaq 0x30b4a(%rip), %rdx     # 0x3709d
callq 0x53cc
leaq 0x110(%rsp), %rax
movq %rax, 0x100(%rsp)
movq %r13, %rdi
leaq 0x30b22(%rip), %rsi     # 0x37094
leaq 0x30b1c(%rip), %rdx     # 0x37095
callq 0x53cc
leaq 0xf0(%rsp), %rax
movq %rax, 0xe0(%rsp)
movq %r12, %rdi
movq %rbx, %rsi
movq %rbx, %rdx
callq 0x53cc
movq %r14, %rdi
movq %rbp, %rsi
movq %r13, %rdx
movq %r12, %rcx
callq 0xbbea
movq 0x10(%rsp), %rdi
movq %r14, %rsi
callq 0xccac
movq 0x58(%rsp), %rdi
leaq 0x68(%rsp), %rax
cmpq %rax, %rdi
je 0x65d6
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x42a0
movq 0x38(%rsp), %rdi
leaq 0x48(%rsp), %rax
cmpq %rax, %rdi
je 0x65f2
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x42a0
movq 0x18(%rsp), %rdi
leaq 0x28(%rsp), %rax
cmpq %rax, %rdi
je 0x660e
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x42a0
movq 0xe0(%rsp), %rdi
leaq 0xf0(%rsp), %rax
cmpq %rax, %rdi
je 0x6633
movq 0xf0(%rsp), %rsi
incq %rsi
callq 0x42a0
movq 0x100(%rsp), %rdi
leaq 0x110(%rsp), %rax
cmpq %rax, %rdi
je 0x6658
movq 0x110(%rsp), %rsi
incq %rsi
callq 0x42a0
movq 0x120(%rsp), %rdi
leaq 0x130(%rsp), %rax
cmpq %rax, %rdi
je 0x667d
movq 0x130(%rsp), %rsi
incq %rsi
callq 0x42a0
movq (%r15), %rax
decq %rax
movq %rax, (%r15)
cmpq 0x140(%rsp), %rax
ja 0x6532
jmp 0x69bf
jae 0x68b7
movq %rbx, %rcx
subq %rax, %rcx
cmpq $0xe, %rcx
ja 0x693e
movq %rbx, %r14
xorps %xmm0, %xmm0
movq 0x10(%rsp), %rax
movups %xmm0, (%rax)
movq $0x0, 0x10(%rax)
leaq 0xc0(%rsp), %r13
leaq 0x30a0f(%rip), %r12     # 0x370e3
leaq 0xa0(%rsp), %rbx
leaq 0x18(%rsp), %rbp
leaq 0x90(%rsp), %rax
movq %rax, 0x80(%rsp)
leaq 0x80(%rsp), %rdi
leaq 0x3099e(%rip), %rsi     # 0x3709e
leaq 0x3099a(%rip), %rdx     # 0x370a1
callq 0x53cc
leaq 0xd0(%rsp), %rax
movq %rax, 0xc0(%rsp)
movq %r13, %rdi
leaq 0x3096e(%rip), %rsi     # 0x37094
leaq 0x30968(%rip), %rdx     # 0x37095
callq 0x53cc
leaq 0xb0(%rsp), %rax
movq %rax, 0xa0(%rsp)
movq %rbx, %rdi
movq %r12, %rsi
movq %r12, %rdx
callq 0x53cc
movq %rbp, %rdi
leaq 0x80(%rsp), %rsi
movq %r13, %rdx
movq %rbx, %rcx
callq 0xbbea
movq 0x10(%rsp), %rdi
movq %rbp, %rsi
callq 0xccac
movq 0x58(%rsp), %rdi
leaq 0x68(%rsp), %rax
cmpq %rax, %rdi
je 0x678f
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x42a0
movq 0x38(%rsp), %rdi
leaq 0x48(%rsp), %rax
cmpq %rax, %rdi
je 0x67ab
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x42a0
movq 0x18(%rsp), %rdi
leaq 0x28(%rsp), %rax
cmpq %rax, %rdi
je 0x67c7
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x42a0
movq 0xa0(%rsp), %rdi
leaq 0xb0(%rsp), %rax
cmpq %rax, %rdi
je 0x67ec
movq 0xb0(%rsp), %rsi
incq %rsi
callq 0x42a0
movq 0xc0(%rsp), %rdi
leaq 0xd0(%rsp), %rax
cmpq %rax, %rdi
je 0x6811
movq 0xd0(%rsp), %rsi
incq %rsi
callq 0x42a0
movq 0x80(%rsp), %rdi
leaq 0x90(%rsp), %rax
cmpq %rax, %rdi
je 0x6836
movq 0x90(%rsp), %rsi
incq %rsi
callq 0x42a0
movq (%r15), %rax
incq %rax
movq %rax, (%r15)
cmpq %r14, %rax
jb 0x66e1
jmp 0x69bf
movq %rbx, (%r15)
leaq 0x28(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x30834(%rip), %rsi     # 0x37094
leaq 0x3082e(%rip), %rdx     # 0x37095
leaq 0x18(%rsp), %rdi
callq 0x53cc
leaq 0x18(%rsp), %rsi
movq $0x0, 0x20(%rsi)
leaq 0x160(%rsp), %rdi
leaq 0xf(%rsp), %rcx
movl $0x1, %edx
callq 0xbf14
leaq 0x160(%rsp), %rdx
movq 0x10(%rsp), %rdi
movq %rbx, %rsi
callq 0x185ac
leaq 0x160(%rsp), %rdi
jmp 0x69a3
leaq 0x28(%rsp), %rbx
movq %rbx, -0x10(%rbx)
xorl %eax, %eax
movq %rax, -0x8(%rbx)
movb %al, (%rbx)
leaq 0x48(%rsp), %r14
movq %r14, -0x10(%r14)
movq %rax, -0x8(%r14)
movb %al, (%r14)
leaq 0x68(%rsp), %r15
movq %r15, -0x10(%r15)
movq %rax, -0x8(%r15)
movb %al, (%r15)
leaq 0x18(%rsp), %rsi
leaq 0xf(%rsp), %rcx
movl $0x1, %edx
movq 0x10(%rsp), %rdi
callq 0xbecc
movq 0x58(%rsp), %rdi
cmpq %r15, %rdi
je 0x6918
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x42a0
movq 0x38(%rsp), %rdi
cmpq %r14, %rdi
je 0x692f
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x42a0
movq 0x18(%rsp), %rdi
cmpq %rbx, %rdi
jne 0x69b2
jmp 0x69bf
movq %rbx, (%r15)
leaq 0x28(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x30743(%rip), %rsi     # 0x37094
leaq 0x3073d(%rip), %rdx     # 0x37095
leaq 0x18(%rsp), %rdi
callq 0x53cc
leaq 0x18(%rsp), %rsi
movq $0x0, 0x20(%rsi)
leaq 0x148(%rsp), %rdi
leaq 0xf(%rsp), %rcx
movl $0x1, %edx
callq 0xbf14
leaq 0x148(%rsp), %rdx
movq 0x10(%rsp), %rdi
movq %rbx, %rsi
callq 0x185ac
leaq 0x148(%rsp), %rdi
callq 0xbf5e
movq 0x18(%rsp), %rdi
cmpq %r14, %rdi
je 0x69bf
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x42a0
movq 0x10(%rsp), %rax
addq $0x178, %rsp            # imm = 0x178
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x148(%rsp), %rdi
jmp 0x69f2
jmp 0x69f9
jmp 0x6a2e
movq %rax, %rbx
leaq 0x160(%rsp), %rdi
callq 0xbf5e
jmp 0x69fc
movq %rax, %rbx
movq 0x18(%rsp), %rdi
cmpq %r14, %rdi
je 0x6b64
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x42a0
jmp 0x6b64
movq %rax, %rbx
leaq 0x18(%rsp), %rdi
callq 0xbca2
jmp 0x6b64
movq %rax, %rbx
jmp 0x6b64
jmp 0x6ac7
movq %rax, %rbx
jmp 0x6aa1
movq %rax, %rbx
jmp 0x6a7c
movq %rax, %rbx
jmp 0x6a57
movq %rax, %rbx
leaq 0x18(%rsp), %rdi
callq 0xbca2
movq 0xa0(%rsp), %rdi
leaq 0xb0(%rsp), %rax
cmpq %rax, %rdi
je 0x6a7c
movq 0xb0(%rsp), %rsi
incq %rsi
callq 0x42a0
movq 0xc0(%rsp), %rdi
leaq 0xd0(%rsp), %rax
cmpq %rax, %rdi
je 0x6aa1
movq 0xd0(%rsp), %rsi
incq %rsi
callq 0x42a0
movq 0x80(%rsp), %rdi
leaq 0x90(%rsp), %rax
cmpq %rax, %rdi
je 0x6b5a
movq 0x90(%rsp), %rsi
jmp 0x6b52
movq %rax, %rbx
jmp 0x6b5a
movq %rax, %rbx
jmp 0x6b35
movq %rax, %rbx
jmp 0x6b10
movq %rax, %rbx
jmp 0x6aeb
movq %rax, %rbx
leaq 0x18(%rsp), %rdi
callq 0xbca2
movq 0xe0(%rsp), %rdi
leaq 0xf0(%rsp), %rax
cmpq %rax, %rdi
je 0x6b10
movq 0xf0(%rsp), %rsi
incq %rsi
callq 0x42a0
movq 0x100(%rsp), %rdi
leaq 0x110(%rsp), %rax
cmpq %rax, %rdi
je 0x6b35
movq 0x110(%rsp), %rsi
incq %rsi
callq 0x42a0
movq 0x120(%rsp), %rdi
leaq 0x130(%rsp), %rax
cmpq %rax, %rdi
je 0x6b5a
movq 0x130(%rsp), %rsi
incq %rsi
callq 0x42a0
movq 0x10(%rsp), %rdi
callq 0xbcf0
movq %rbx, %rdi
callq 0x44c0