// File: /workspace/github_cpp_makefile_star2_O3/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 $0x188, %rsp            # imm = 0x188
movq %rdi, %rbx
leaq 0x10(%rdi), %r15
movq %r15, (%rdi)
movq (%rsi), %rax
movq 0x8(%rsi), %rdx
addq %rax, %rdx
movq %rax, %rsi
callq 0x934c
movq %rbx, %rdi
callq 0x3888
leaq -0x140(%rbp), %rdi
movq %r15, -0xc8(%rbp)
callq 0xa11a
leaq -0x108(%rbp), %rdi
callq 0xa11a
leaq -0x38(%rbp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
movq %rbx, %rdi
movl $0x2c, %esi
xorl %edx, %edx
callq 0x33b0
cmpq $-0x1, %rax
je 0x3cc4
leaq 0xd6ec(%rip), %r13      # 0x110f4
movq %rbx, %rdi
movl $0x2c, %esi
xorl %edx, %edx
callq 0x33b0
movslq %eax, %r14
movq %rbx, %rdi
movl $0x5b, %esi
movq %r14, %rdx
callq 0x35b0
movq %rax, %r12
movq %rbx, %rdi
movl $0x5d, %esi
movq %r14, %rdx
callq 0x35b0
movq %rax, %r14
movslq %r12d, %r12
subl %r12d, %r14d
shlq $0x20, %r14
movabsq $0x100000000, %rax      # imm = 0x100000000
addq %rax, %r14
sarq $0x20, %r14
leaq -0x80(%rbp), %r15
movq %r15, %rdi
movq %rbx, %rsi
movq %r12, %rdx
movq %r14, %rcx
callq 0x3320
leaq -0x48(%rbp), %rdi
movq %r15, %rsi
callq 0x3360
movq -0x80(%rbp), %rdi
leaq -0x70(%rbp), %rax
cmpq %rax, %rdi
je 0x3a95
movq -0x70(%rbp), %rsi
incq %rsi
callq 0x3300
movl $0x1, %r8d
movq %rbx, %rdi
movq %r12, %rsi
movq %r14, %rdx
movq %r13, %rcx
callq 0x3330
leaq -0xb0(%rbp), %rax
movq %rax, -0xc0(%rbp)
movq -0x48(%rbp), %rsi
movq -0x40(%rbp), %rdx
addq %rsi, %rdx
leaq -0xc0(%rbp), %r15
movq %r15, %rdi
callq 0x934c
leaq -0x80(%rbp), %r14
movq %r14, %rdi
movq %r15, %rsi
callq 0xa83c
leaq -0x1b0(%rbp), %r15
movq %r15, %rdi
leaq -0x140(%rbp), %rsi
movq %r14, %rdx
callq 0xb8f2
movq %r15, %rdi
callq 0xa186
movq %r14, %rdi
callq 0xa186
movq -0xc0(%rbp), %rdi
leaq -0xb0(%rbp), %rax
cmpq %rax, %rdi
je 0x3b2e
movq -0xb0(%rbp), %rsi
incq %rsi
callq 0x3300
movq %rbx, %rdi
movl $0x2c, %esi
xorl %edx, %edx
callq 0x33b0
movslq %eax, %r14
movq %rbx, %rdi
movl $0x5b, %esi
movq %r14, %rdx
callq 0x33b0
movq %rax, %r13
movq %rbx, %rdi
movl $0x5d, %esi
movq %r14, %rdx
callq 0x33b0
movq %rax, %r12
movslq %r13d, %r13
subl %r13d, %r12d
shlq $0x20, %r12
movabsq $0x100000000, %rax      # imm = 0x100000000
addq %rax, %r12
sarq $0x20, %r12
leaq -0x80(%rbp), %r15
movq %r15, %rdi
movq %rbx, %rsi
movq %r13, %rdx
movq %r12, %rcx
callq 0x3320
leaq -0x48(%rbp), %rdi
movq %r15, %rsi
callq 0x3360
movq -0x80(%rbp), %rdi
leaq -0x70(%rbp), %rax
cmpq %rax, %rdi
je 0x3bbb
movq -0x70(%rbp), %rsi
incq %rsi
callq 0x3300
movl $0x1, %r8d
movq %rbx, %rdi
movq %r13, %rsi
movq %r12, %rdx
leaq 0xd523(%rip), %r13      # 0x110f4
movq %r13, %rcx
callq 0x3330
leaq -0x90(%rbp), %rax
movq %rax, -0xa0(%rbp)
movq -0x48(%rbp), %rsi
movq -0x40(%rbp), %rdx
addq %rsi, %rdx
leaq -0xa0(%rbp), %r12
movq %r12, %rdi
callq 0x934c
movq %r15, %rdi
movq %r12, %rsi
callq 0xa83c
leaq -0x178(%rbp), %r12
movq %r12, %rdi
leaq -0x108(%rbp), %rsi
movq %r15, %rdx
callq 0xb8f2
movq %r12, %rdi
callq 0xa186
movq %r15, %rdi
callq 0xa186
movq -0xa0(%rbp), %rdi
leaq -0x90(%rbp), %rax
cmpq %rax, %rdi
je 0x3c57
movq -0x90(%rbp), %rsi
incq %rsi
callq 0x3300
leaq -0x140(%rbp), %rdi
leaq -0x108(%rbp), %rsi
callq 0xb178
leaq -0x80(%rbp), %rdi
leaq -0x140(%rbp), %rsi
callq 0xb6c4
movq -0x80(%rbp), %rcx
movq -0x78(%rbp), %r8
movl $0x1, %edx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x3330
movq -0x80(%rbp), %rdi
leaq -0x70(%rbp), %rax
cmpq %rax, %rdi
je 0x3cab
movq -0x70(%rbp), %rsi
incq %rsi
callq 0x3300
movq %rbx, %rdi
movl $0x2c, %esi
xorl %edx, %edx
callq 0x33b0
cmpq $-0x1, %rax
jne 0x3a08
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x3cdd
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x3300
movl $0x38, %r14d
leaq (%r14,%rbp), %rdi
addq $-0x140, %rdi           # imm = 0xFEC0
callq 0xa186
addq $-0x38, %r14
cmpq $-0x38, %r14
jne 0x3ce3
movq %rbx, %rax
addq $0x188, %rsp            # imm = 0x188
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
leaq -0x140(%rbp), %rdi
callq 0xa186
jmp 0x3df7
movq %rax, %r14
jmp 0x3df7
movq %rax, %r14
jmp 0x3dfe
jmp 0x3dbb
jmp 0x3dbb
movq %rax, %r14
jmp 0x3d4e
movq %rax, %r14
leaq -0x80(%rbp), %rdi
callq 0xa186
movq -0xc0(%rbp), %rdi
leaq -0xb0(%rbp), %rax
cmpq %rax, %rdi
je 0x3dbe
movq -0xb0(%rbp), %rsi
jmp 0x3db1
jmp 0x3dbb
jmp 0x3dbb
movq %rax, %r14
jmp 0x3d7f
movq %rax, %r14
leaq -0x80(%rbp), %rdi
callq 0xa186
movq -0xa0(%rbp), %rdi
leaq -0x90(%rbp), %rax
cmpq %rax, %rdi
je 0x3dbe
movq -0x90(%rbp), %rsi
jmp 0x3db1
jmp 0x3dbb
movq %rax, %r14
movq -0x80(%rbp), %rdi
leaq -0x70(%rbp), %rax
cmpq %rax, %rdi
je 0x3dbe
movq -0x70(%rbp), %rsi
incq %rsi
callq 0x3300
jmp 0x3dbe
movq %rax, %r14
leaq -0x38(%rbp), %rax
movq -0x48(%rbp), %rdi
cmpq %rax, %rdi
je 0x3dd7
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x3300
movl $0x38, %r15d
leaq (%r15,%rbp), %rdi
addq $-0x140, %rdi           # imm = 0xFEC0
callq 0xa186
addq $-0x38, %r15
cmpq $-0x38, %r15
jne 0x3ddd
movq -0xc8(%rbp), %r15
movq (%rbx), %rdi
cmpq %r15, %rdi
je 0x3e11
movq (%r15), %rsi
incq %rsi
callq 0x3300
movq %r14, %rdi
callq 0x3520