// File: /workspace/github_cpp_makefile_star2_O2/bothaynahazem[P]AsuMathLabG13/main.cpp
// Function: concatenate(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
string concatenate (string s){

        string z =s;
        addcomma(z);
        Matrix matarr[2];
        int commapos,closedbracket,openedbracket;
        string tempconstruct;
        while (z.find(',') != string::npos)
        {
        commapos = z.find(',', 0);
        openedbracket=z.find_last_of('[',commapos);
        closedbracket=z.find_last_of(']',commapos);
        tempconstruct=z.substr(openedbracket, closedbracket - openedbracket+1);
        z.replace(openedbracket, closedbracket - openedbracket+1," ");
        matarr[0]=Matrix(tempconstruct);
        commapos = z.find(',', 0);
        openedbracket=z.find_first_of('[',commapos);
        closedbracket=z.find_first_of(']',commapos);
        tempconstruct=z.substr(openedbracket, closedbracket - openedbracket+1);
        z.replace(openedbracket, closedbracket - openedbracket+1," ");
        matarr[1]=Matrix(tempconstruct);
        matarr[0].addColumn(matarr[1]);
        string y = matarr[0].getAltString();
        z.replace(commapos,1,y);
        }
        return z;
        }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x198, %rsp            # imm = 0x198
movq %rdi, %r12
callq 0x3410
movq %r12, %rdi
callq 0x3857
leaq -0xf0(%rbp), %rdi
callq 0x89d6
leaq -0xb8(%rbp), %rdi
callq 0x89d6
leaq -0x48(%rbp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movb $0x0, (%rax)
pushq $0x2c
popq %r13
leaq -0x128(%rbp), %r14
movq %r12, -0x30(%rbp)
movq %r12, %rdi
movl %r13d, %esi
xorl %edx, %edx
callq 0x33e0
cmpq $-0x1, %rax
je 0x3b92
movq %r12, %rdi
movl %r13d, %esi
xorl %edx, %edx
callq 0x33e0
movslq %eax, %r15
movq %r12, %rdi
pushq $0x5b
popq %rsi
movq %r15, %rdx
callq 0x35d0
movq %rax, %r12
movq -0x30(%rbp), %rdi
pushq $0x5d
popq %rsi
movq %r15, %rdx
callq 0x35d0
movq %rax, %r15
movslq %r12d, %r13
movq -0x30(%rbp), %r12
subl %r13d, %r15d
shlq $0x20, %r15
movabsq $0x100000000, %rax      # imm = 0x100000000
addq %rax, %r15
sarq $0x20, %r15
movq %r14, %rdi
movq %r12, %rsi
movq %r13, %rdx
movq %r15, %rcx
callq 0x3360
leaq -0x58(%rbp), %rbx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x3380
movq %r14, %rdi
callq 0x3170
movq %r12, %rdi
movq %r13, %rsi
movq %r15, %rdx
leaq 0xb6e5(%rip), %rcx      # 0xf0f4
callq 0x3240
pushq $0x2c
popq %r15
leaq -0x78(%rbp), %r12
movq %r12, %rdi
movq %rbx, %rsi
callq 0x3410
movq %r14, %rdi
movq %r12, %rsi
movq %r14, %rbx
movq -0x30(%rbp), %r14
callq 0x8fdc
leaq -0x1b8(%rbp), %r12
movq %r12, %rdi
leaq -0xf0(%rbp), %rsi
movq %rbx, %rdx
callq 0x9e42
movq %r12, %rdi
callq 0x8a24
movq %rbx, %rdi
callq 0x8a24
leaq -0x78(%rbp), %rdi
callq 0x3170
movq %r14, %rdi
movl %r15d, %esi
xorl %edx, %edx
callq 0x33e0
movslq %eax, %r15
movq %r14, %rdi
pushq $0x5b
popq %rsi
movq %r15, %rdx
callq 0x33e0
movq %rax, %r12
movq %r14, %rdi
pushq $0x5d
popq %rsi
movq %r15, -0x38(%rbp)
movq %r15, %rdx
callq 0x33e0
movq %rax, %r13
movslq %r12d, %r12
subl %r12d, %r13d
shlq $0x20, %r13
movabsq $0x100000000, %rax      # imm = 0x100000000
addq %rax, %r13
sarq $0x20, %r13
movq %rbx, %rdi
movq %r14, %rsi
movq %r12, %rdx
movq %r13, %rcx
callq 0x3360
leaq -0x58(%rbp), %r15
movq %r15, %rdi
movq %rbx, %rsi
callq 0x3380
movq %rbx, %rdi
callq 0x3170
movq %r14, %rdi
movq %r12, %rsi
movq %r13, %rdx
leaq 0xb600(%rip), %rcx      # 0xf0f4
callq 0x3240
leaq -0xb8(%rbp), %r12
pushq $0x2c
popq %r13
movq %rbx, %r14
leaq -0x148(%rbp), %rbx
movq %rbx, %rdi
movq %r15, %rsi
callq 0x3410
movq %r14, %rdi
movq %rbx, %rsi
callq 0x8fdc
leaq -0x180(%rbp), %r15
movq %r15, %rdi
movq %r12, %rsi
movq %r14, %rdx
callq 0x9e42
movq %r15, %rdi
callq 0x8a24
movq %r14, %rdi
callq 0x8a24
movq %rbx, %rdi
callq 0x3170
leaq -0xf0(%rbp), %rdi
movq %r12, %rsi
callq 0x97c4
movq %r14, %rdi
leaq -0xf0(%rbp), %rsi
callq 0x9c7a
movq -0x30(%rbp), %r12
movq %r12, %rdi
movq -0x38(%rbp), %rsi
pushq $0x1
popq %rdx
movq %r14, %rcx
callq 0x3130
movq %r14, %rdi
callq 0x3170
jmp 0x396e
leaq -0x58(%rbp), %rdi
callq 0x3170
pushq $0x38
popq %r14
leaq (%r14,%rbp), %rdi
addq $-0xf0, %rdi
callq 0x8a24
addq $-0x38, %r14
cmpq $-0x38, %r14
jne 0x3b9f
movq %r12, %rax
addq $0x198, %rsp            # imm = 0x198
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq -0xf0(%rbp), %rdi
callq 0x8a24
jmp 0x3c7a
jmp 0x3be4
movq %rax, %rbx
jmp 0x3c7a
jmp 0x3c4c
movq %rax, %rbx
jmp 0x3c04
jmp 0x3c4c
movq %rax, %rbx
leaq -0x128(%rbp), %rdi
callq 0x8a24
leaq -0x78(%rbp), %rdi
jmp 0x3c40
movq %rax, %rbx
leaq -0x128(%rbp), %rdi
callq 0x3170
jmp 0x3c53
movq %rax, %rbx
movq %r14, %r12
jmp 0x3c53
jmp 0x3c4c
movq %rax, %rbx
jmp 0x3c39
movq %rax, %rbx
leaq -0x128(%rbp), %rdi
callq 0x8a24
leaq -0x148(%rbp), %rdi
callq 0x3170
jmp 0x3c4f
movq %rax, %rbx
jmp 0x3c53
movq %rax, %rbx
movq -0x30(%rbp), %r12
leaq -0x58(%rbp), %rdi
callq 0x3170
pushq $0x38
popq %r15
leaq (%r15,%rbp), %rdi
addq $-0xf0, %rdi
callq 0x8a24
addq $-0x38, %r15
cmpq $-0x38, %r15
jne 0x3c60
movq %r12, %rdi
callq 0x3170
movq %rbx, %rdi
callq 0x3520