// File: /workspace/github_cpp_makefile_star2_O1/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 0x8352
movq %rsi, %rbx
movq %rdi, %r14
leaq -0xc0(%rbp), %r12
movq %r12, -0x10(%r12)
movq (%rdi), %rsi
addq %rsi, %rdx
leaq -0xd0(%rbp), %rdi
callq 0x2a3e
leaq -0xa0(%rbp), %r13
movq %r13, -0x10(%r13)
leaq 0x612b(%rip), %rsi      # 0xe1fc
leaq 0x6127(%rip), %rdx      # 0xe1ff
leaq -0xb0(%rbp), %rdi
callq 0x7c60
leaq -0xd0(%rbp), %rdi
leaq -0xb0(%rbp), %rsi
callq 0x801c
movl %eax, %r15d
movq -0xb0(%rbp), %rdi
cmpq %r13, %rdi
je 0x8115
movq -0xa0(%rbp), %rsi
incq %rsi
callq 0x2170
movq -0xd0(%rbp), %rdi
cmpq %r12, %rdi
je 0x8130
movq -0xc0(%rbp), %rsi
incq %rsi
callq 0x2170
testb %r15b, %r15b
je 0x8352
movq %rbx, -0x70(%rbp)
leaq -0x38(%rbp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
movq 0x8(%r14), %r15
testq %r15, %r15
je 0x8191
movq (%r14), %r12
xorl %r13d, %r13d
leaq -0x48(%rbp), %r14
xorl %ebx, %ebx
movb $0x1, %al
testb $0x1, %bl
je 0x817b
movsbl (%r12,%r13), %esi
movq %r14, %rdi
callq 0x2120
movb %bl, %al
cmpb $0x20, (%r12,%r13)
movzbl %al, %eax
movzbl %bl, %ebx
cmovel %eax, %ebx
incq %r13
cmpq %r13, %r15
jne 0x8165
movq -0x40(%rbp), %r14
testq %r14, %r14
je 0x8361
movq -0x48(%rbp), %r13
cmpb $0x22, (%r13)
jne 0x8275
leaq -0x58(%rbp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
negq %r14
movl $0x1, %r12d
leaq -0x68(%rbp), %rbx
movl $0x5, %r15d
cmpq $0x1, %r12
je 0x81f6
movl $0x4, %r15d
cmpq -0x40(%rbp), %r12
je 0x81f6
movsbl -0x1(%r13,%r12), %esi
xorl %r15d, %r15d
movq %rbx, %rdi
callq 0x2120
cmpl $0x5, %r15d
je 0x8201
testl %r15d, %r15d
jne 0x8211
leaq (%r14,%r12), %rax
incq %rax
incq %r12
cmpq $0x1, %rax
jne 0x81cd
movq -0x68(%rbp), %rsi
movq -0x60(%rbp), %rdx
movq 0x9da8(%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 -0x68(%rbp), %rdi
leaq -0x58(%rbp), %rax
cmpq %rax, %rdi
leaq -0x38(%rbp), %rbx
je 0x833d
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x2170
jmp 0x833d
movq %rsp, %r13
movq %rsp, %rbx
addq $0x10, %r14
andq $-0x10, %r14
movq %rbx, %rdi
subq %r14, %rdi
movq %rdi, %rsp
negq %r14
movq -0x48(%rbp), %r15
movq %r15, %rsi
callq 0x2140
movb (%rbx,%r14), %al
addb $-0x30, %al
cmpb $0x9, %al
ja 0x82e4
movq -0x40(%rbp), %rdx
movq 0x9d18(%rip), %rdi      # 0x11fc8
movq %r15, %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 0x8336
movq -0x70(%rbp), %rdi
callq 0xa8f4
movq %rax, %rbx
leaq -0x80(%rbp), %r14
movq %r14, -0x10(%r14)
movq -0x48(%rbp), %rsi
movq -0x40(%rbp), %rdx
addq %rsi, %rdx
leaq -0x90(%rbp), %rdi
callq 0x2a3e
leaq -0x90(%rbp), %rsi
movq %rbx, %rdi
callq 0x3790
movq -0x90(%rbp), %rdi
cmpq %r14, %rdi
je 0x8336
movq -0x80(%rbp), %rsi
incq %rsi
callq 0x2170
movq %r13, %rsp
leaq -0x38(%rbp), %rbx
movq -0x48(%rbp), %rdi
cmpq %rbx, %rdi
je 0x8352
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 0x5e1d(%rip), %rdi      # 0xe185
xorl %esi, %esi
movq %r14, %rdx
xorl %eax, %eax
callq 0x2210
movq %rax, %rbx
movq -0x90(%rbp), %rdi
cmpq %r14, %rdi
je 0x83e6
movq -0x80(%rbp), %rsi
jmp 0x83d9
jmp 0x83c5
movq %rax, %rbx
movq -0xb0(%rbp), %rdi
cmpq %r13, %rdi
je 0x83ae
movq -0xa0(%rbp), %rsi
incq %rsi
callq 0x2170
jmp 0x83ae
movq %rax, %rbx
movq -0xd0(%rbp), %rdi
cmpq %r12, %rdi
je 0x83ff
movq -0xc0(%rbp), %rsi
jmp 0x83f7
jmp 0x83e3
movq %rax, %rbx
movq -0x68(%rbp), %rdi
leaq -0x58(%rbp), %rax
cmpq %rax, %rdi
je 0x83e6
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x2170
jmp 0x83e6
movq %rax, %rbx
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x83ff
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x2170
movq %rbx, %rdi
callq 0x2250