// File: /workspace/github_cpp_makefile_star2_O1/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), %rax
movq %rax, -0x50(%rbp)
movq %rax, (%rdi)
movq (%rsi), %rax
movq 0x8(%rsi), %rdx
addq %rax, %rdx
movq %rax, %rsi
callq 0x929a
movq %rbx, %rdi
callq 0x388e
xorl %r15d, %r15d
leaq (%r15,%rbp), %rdi
addq $-0x140, %rdi           # imm = 0xFEC0
callq 0xa052
addq $0x38, %r15
cmpq $0x70, %r15
jne 0x39b9
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 0x3cda
leaq 0xd6ee(%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 -0x88(%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 -0x88(%rbp), %rdi
leaq -0x78(%rbp), %rax
cmpq %rax, %rdi
je 0x3a99
movq -0x78(%rbp), %rsi
incq %rsi
callq 0x3300
movl $0x1, %r8d
movq %rbx, %rdi
movq %r12, %rsi
movq %r14, %rdx
movq %r13, %rcx
callq 0x3330
leaq -0xb8(%rbp), %rax
movq %rax, -0xc8(%rbp)
movq -0x48(%rbp), %rsi
movq -0x40(%rbp), %rdx
addq %rsi, %rdx
leaq -0xc8(%rbp), %r15
movq %r15, %rdi
callq 0x929a
leaq -0x88(%rbp), %r14
movq %r14, %rdi
movq %r15, %rsi
callq 0xa768
leaq -0x1b0(%rbp), %r15
movq %r15, %rdi
leaq -0x140(%rbp), %rsi
movq %r14, %rdx
callq 0xb80c
movq %r15, %rdi
callq 0xa0be
movq %r14, %rdi
callq 0xa0be
movq -0xc8(%rbp), %rdi
leaq -0xb8(%rbp), %rax
cmpq %rax, %rdi
je 0x3b35
movq -0xb8(%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 -0x88(%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 -0x88(%rbp), %rdi
leaq -0x78(%rbp), %rax
cmpq %rax, %rdi
je 0x3bc8
movq -0x78(%rbp), %rsi
incq %rsi
callq 0x3300
movl $0x1, %r8d
movq %rbx, %rdi
movq %r13, %rsi
movq %r12, %rdx
leaq 0xd516(%rip), %r13      # 0x110f4
movq %r13, %rcx
callq 0x3330
leaq -0x98(%rbp), %rax
movq %rax, -0xa8(%rbp)
movq -0x48(%rbp), %rsi
movq -0x40(%rbp), %rdx
addq %rsi, %rdx
leaq -0xa8(%rbp), %r12
movq %r12, %rdi
callq 0x929a
movq %r15, %rdi
movq %r12, %rsi
callq 0xa768
leaq -0x178(%rbp), %r12
movq %r12, %rdi
leaq -0x108(%rbp), %rsi
movq %r15, %rdx
callq 0xb80c
movq %r12, %rdi
callq 0xa0be
movq %r15, %rdi
callq 0xa0be
movq -0xa8(%rbp), %rdi
leaq -0x98(%rbp), %rax
cmpq %rax, %rdi
je 0x3c64
movq -0x98(%rbp), %rsi
incq %rsi
callq 0x3300
leaq -0x140(%rbp), %rdi
leaq -0x108(%rbp), %rsi
callq 0xb09e
leaq -0x88(%rbp), %rdi
leaq -0x140(%rbp), %rsi
callq 0xb5ea
movq -0x88(%rbp), %rcx
movq -0x80(%rbp), %r8
movl $0x1, %edx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x3330
movq -0x88(%rbp), %rdi
leaq -0x78(%rbp), %rax
cmpq %rax, %rdi
je 0x3cc1
movq -0x78(%rbp), %rsi
incq %rsi
callq 0x3300
movq %rbx, %rdi
movl $0x2c, %esi
xorl %edx, %edx
callq 0x33b0
cmpq $-0x1, %rax
jne 0x3a06
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x3cf3
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x3300
movl $0x38, %r14d
leaq (%r14,%rbp), %rdi
addq $-0x140, %rdi           # imm = 0xFEC0
callq 0xa0be
addq $-0x38, %r14
cmpq $-0x38, %r14
jne 0x3cf9
movq %rbx, %rax
addq $0x188, %rsp            # imm = 0x188
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
jmp 0x3e21
jmp 0x3de5
jmp 0x3de5
movq %rax, %r14
jmp 0x3d4e
movq %rax, %r14
leaq -0x88(%rbp), %rdi
callq 0xa0be
movq -0xc8(%rbp), %rdi
leaq -0xb8(%rbp), %rax
cmpq %rax, %rdi
je 0x3de8
movq -0xb8(%rbp), %rsi
jmp 0x3dbb
jmp 0x3de5
jmp 0x3de5
movq %rax, %r14
jmp 0x3d86
movq %rax, %r14
leaq -0x88(%rbp), %rdi
callq 0xa0be
movq -0xa8(%rbp), %rdi
leaq -0x98(%rbp), %rax
cmpq %rax, %rdi
je 0x3de8
movq -0x98(%rbp), %rsi
jmp 0x3dbb
jmp 0x3de5
movq %rax, %r14
movq -0x88(%rbp), %rdi
leaq -0x78(%rbp), %rax
cmpq %rax, %rdi
je 0x3de8
movq -0x78(%rbp), %rsi
incq %rsi
callq 0x3300
jmp 0x3de8
movq %rax, %r14
testq %r15, %r15
je 0x3e21
leaq -0x178(%rbp), %r12
leaq (%r12,%r15), %rdi
callq 0xa0be
addq $-0x38, %r15
jne 0x3dd4
jmp 0x3e21
movq %rax, %r14
leaq -0x38(%rbp), %rax
movq -0x48(%rbp), %rdi
cmpq %rax, %rdi
je 0x3e01
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x3300
movl $0x38, %r15d
leaq (%r15,%rbp), %rdi
addq $-0x140, %rdi           # imm = 0xFEC0
callq 0xa0be
addq $-0x38, %r15
cmpq $-0x38, %r15
jne 0x3e07
movq -0x50(%rbp), %rax
movq (%rbx), %rdi
cmpq %rax, %rdi
je 0x3e38
movq (%rax), %rsi
incq %rsi
callq 0x3300
movq %r14, %rdi
callq 0x3520