// File: /workspace/github_cpp_makefile_star2_O3/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
movq 0x8(%rdi), %rdx
testq %rdx, %rdx
je 0x80a3
movq %rsi, %rbx
movq %rdi, %r14
leaq -0x80(%rbp), %r15
movq %r15, -0x10(%r15)
movq (%rdi), %rsi
addq %rsi, %rdx
leaq -0x90(%rbp), %rdi
callq 0x2a32
leaq -0xc0(%rbp), %r12
movq %r12, -0x10(%r12)
leaq 0x63e8(%rip), %rsi      # 0xe1fc
leaq 0x63e4(%rip), %rdx      # 0xe1ff
leaq -0xd0(%rbp), %rdi
callq 0x79c6
movq -0xc8(%rbp), %rax
cmpq %rax, -0x88(%rbp)
jae 0x7e43
movq -0xd0(%rbp), %rdi
xorl %r13d, %r13d
jmp 0x7e72
movq -0xd0(%rbp), %rdi
movb $0x1, %r13b
testq %rax, %rax
je 0x7e72
movq -0x90(%rbp), %rcx
xorl %edx, %edx
movb (%rcx,%rdx), %sil
cmpb (%rdi,%rdx), %sil
sete %sil
andb %sil, %r13b
incq %rdx
cmpq %rdx, %rax
jne 0x7e5b
cmpq %r12, %rdi
je 0x7e86
movq -0xc0(%rbp), %rsi
incq %rsi
callq 0x2170
movq -0x90(%rbp), %rdi
cmpq %r15, %rdi
je 0x7e9e
movq -0x80(%rbp), %rsi
incq %rsi
callq 0x2170
testb %r13b, %r13b
je 0x80a3
movq %rbx, -0x50(%rbp)
leaq -0x38(%rbp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
movq 0x8(%r14), %r12
testq %r12, %r12
je 0x80b2
movq (%r14), %r13
xorl %r15d, %r15d
leaq -0x48(%rbp), %r14
xorl %ebx, %ebx
testb $0x1, %bl
je 0x7eea
movsbl (%r13,%r15), %esi
movq %r14, %rdi
callq 0x2120
cmpb $0x20, (%r13,%r15)
sete %al
orb %al, %bl
incq %r15
cmpq %r15, %r12
jne 0x7ed7
movq -0x40(%rbp), %r13
testq %r13, %r13
je 0x80b2
movq -0x48(%rbp), %r12
cmpb $0x22, (%r12)
jne 0x7fc0
leaq -0x60(%rbp), %r14
movq %r14, -0x10(%r14)
movq $0x0, -0x8(%r14)
movb $0x0, (%r14)
negq %r13
movl $0x1, %r15d
leaq -0x70(%rbp), %rbx
cmpq $0x1, %r15
je 0x7f54
cmpq -0x40(%rbp), %r15
je 0x7f64
movsbl -0x1(%r12,%r15), %esi
movq %rbx, %rdi
callq 0x2120
leaq (%r15,%r13), %rax
incq %rax
incq %r15
cmpq $0x1, %rax
jne 0x7f3a
movq -0x70(%rbp), %rsi
movq -0x68(%rbp), %rdx
movq 0xa055(%rip), %rdi      # 0x11fc8
callq 0x2190
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x2150
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x20e0
movq -0x70(%rbp), %rdi
cmpq %r14, %rdi
je 0x808a
movq -0x60(%rbp), %rsi
incq %rsi
callq 0x2170
jmp 0x808a
movq %rsp, %r12
movq %rsp, %rbx
addq $0x10, %r13
andq $-0x10, %r13
movq %rbx, %rdi
subq %r13, %rdi
movq %rdi, %rsp
negq %r13
movq -0x48(%rbp), %r14
movq %r14, %rsi
callq 0x2140
movb (%rbx,%r13), %al
addb $-0x30, %al
cmpb $0x9, %al
ja 0x802f
movq -0x40(%rbp), %rdx
movq 0x9fcd(%rip), %rdi      # 0x11fc8
movq %r14, %rsi
callq 0x2190
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x2150
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x20e0
jmp 0x8087
movq -0x50(%rbp), %rdi
callq 0xa598
movq %rax, %rbx
leaq -0xa0(%rbp), %r14
movq %r14, -0x10(%r14)
movq -0x48(%rbp), %rsi
movq -0x40(%rbp), %rdx
addq %rsi, %rdx
leaq -0xb0(%rbp), %rdi
callq 0x2a32
leaq -0xb0(%rbp), %rsi
movq %rbx, %rdi
callq 0x36c6
movq -0xb0(%rbp), %rdi
cmpq %r14, %rdi
je 0x8087
movq -0xa0(%rbp), %rsi
incq %rsi
callq 0x2170
movq %r12, %rsp
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x80a3
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x2170
leaq -0x28(%rbp), %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x60cc(%rip), %rdi      # 0xe185
xorl %esi, %esi
xorl %edx, %edx
xorl %eax, %eax
callq 0x2210
movq %rax, %rbx
movq -0xb0(%rbp), %rdi
cmpq %r14, %rdi
je 0x8112
movq -0xa0(%rbp), %rsi
jmp 0x8105
jmp 0x80f5
movq %rax, %rbx
movq -0x90(%rbp), %rdi
cmpq %r15, %rdi
je 0x812b
movq -0x80(%rbp), %rsi
jmp 0x8123
jmp 0x810f
movq %rax, %rbx
movq -0x70(%rbp), %rdi
cmpq %r14, %rdi
je 0x8112
movq -0x60(%rbp), %rsi
incq %rsi
callq 0x2170
jmp 0x8112
movq %rax, %rbx
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x812b
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x2170
movq %rbx, %rdi
callq 0x2250