// File: /workspace/github_cpp_makefile_star2_O2/Manuel123cool[P]smiley/regex.cpp
// Function: MyRegex::testComandPrint(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, Stack&)
void MyRegex::testComandPrint(std::string code, Stack &stack)
{
    if (code.length() <= 0)
        return;  

    if (!MyRegex::testString(code, "B) "))
        return;
    std::string value;
    bool start{ false };
    for(const auto &c : code)
    {
        if (start)
        {
            value += c;
        } 
        if (c == ' ' && !start)
            start = true;
    }
    if (value.at(0) == '"')
    {
        std::string printValue;
        int count{ -1 };
        for(const auto &c : value)
        {
            ++count;
            if (count == 0)
                continue;
            if (count == value.length() - 1)
                break;
            printValue += c; 
        }
        std::cout << printValue << std::endl; 
        return;
    }
    char testNum[value.length() + 1];
    std::strcpy(testNum, value.c_str());    
    if (static_cast<int>(testNum[0]) <= 57 && static_cast<int>(testNum[0]) >= 48)
    {
        std::cout << value << std::endl; 
        return;
    }
    stack().printValue(value);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xa8, %rsp
cmpq $0x0, 0x8(%rdi)
je 0x6011
movq %rsi, %rbx
movq %rdi, %r14
leaq -0xd0(%rbp), %rdi
movq %r14, %rsi
callq 0x21e0
leaq 0x4345(%rip), %rsi      # 0xa1b8
leaq -0xb0(%rbp), %rdi
leaq -0x48(%rbp), %rdx
callq 0x57ec
leaq -0xd0(%rbp), %rdi
leaq -0xb0(%rbp), %rsi
callq 0x5ddc
movl %eax, %r15d
leaq -0xb0(%rbp), %rdi
callq 0x20c0
leaq -0xd0(%rbp), %rdi
callq 0x20c0
testb %r15b, %r15b
je 0x6011
movq %rbx, -0x50(%rbp)
leaq -0x38(%rbp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movb $0x0, (%rax)
movq (%r14), %r15
movq 0x8(%r14), %r12
xorl %r13d, %r13d
leaq -0x48(%rbp), %r14
xorl %ebx, %ebx
cmpq %r13, %r12
je 0x5f04
testb $0x1, %bl
je 0x5ef5
movsbl (%r15,%r13), %esi
movq %r14, %rdi
callq 0x2140
cmpb $0x20, (%r15,%r13)
sete %al
orb %al, %bl
incq %r13
jmp 0x5ede
leaq -0x48(%rbp), %rdi
xorl %esi, %esi
callq 0x2290
cmpb $0x22, (%rax)
jne 0x5f60
leaq -0x60(%rbp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movb $0x0, (%rax)
movq -0x48(%rbp), %r14
xorl %r15d, %r15d
subq -0x40(%rbp), %r15
pushq $0x1
popq %r12
leaq -0x70(%rbp), %rbx
leaq (%r15,%r12), %rax
cmpq $0x1, %rax
je 0x5fab
cmpq $0x1, %r12
je 0x5f5b
cmpq -0x40(%rbp), %r12
je 0x5fab
movsbl -0x1(%r14,%r12), %esi
movq %rbx, %rdi
callq 0x2140
incq %r12
jmp 0x5f37
movq %rsp, %r14
movq -0x40(%rbp), %rbx
movq %rsp, %r15
addq $0x10, %rbx
andq $-0x10, %rbx
movq %r15, %rdi
subq %rbx, %rdi
movq %rdi, %rsp
negq %rbx
movq -0x48(%rbp), %rsi
callq 0x2170
movb (%r15,%rbx), %al
addb $-0x30, %al
cmpb $0x9, %al
ja 0x5fce
movq 0x8020(%rip), %rdi      # 0xdfb8
leaq -0x48(%rbp), %rsi
callq 0x2160
movq %rax, %rdi
callq 0x20d0
jmp 0x6005
movq 0x8006(%rip), %rdi      # 0xdfb8
leaq -0x70(%rbp), %rsi
callq 0x2160
movq %rax, %rdi
callq 0x20d0
leaq -0x70(%rbp), %rdi
callq 0x20c0
jmp 0x6008
movq -0x50(%rbp), %rdi
callq 0x77fe
movq %rax, %rbx
leaq -0x90(%rbp), %rdi
leaq -0x48(%rbp), %rsi
callq 0x21e0
leaq -0x90(%rbp), %rsi
movq %rbx, %rdi
callq 0x2f9e
leaq -0x90(%rbp), %rdi
callq 0x20c0
movq %r14, %rsp
leaq -0x48(%rbp), %rdi
callq 0x20c0
leaq -0x28(%rbp), %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq -0x90(%rbp), %rdi
jmp 0x6054
jmp 0x604d
jmp 0x605b
movq %rax, %rbx
leaq -0xb0(%rbp), %rdi
callq 0x20c0
jmp 0x6044
movq %rax, %rbx
leaq -0xd0(%rbp), %rdi
jmp 0x6062
movq %rax, %rbx
leaq -0x70(%rbp), %rdi
callq 0x20c0
jmp 0x605e
movq %rax, %rbx
leaq -0x48(%rbp), %rdi
callq 0x20c0
movq %rbx, %rdi
callq 0x2250