// File: adameier[P]/./audio.h
// Function: MRXADA002::Audio<signed char, 2>::operator+(MRXADA002::Audio<signed char, 2> const&)
Audio<T, 2> operator+(const Audio<T, 2> & rhs) {
            Audio<T, 2> a(*this);
            int m = std::min(a.data_vector.size(), rhs.data_vector.size());
            for (int i = 0; i < m; ++i) {
                int newValLEFT = a.data_vector[i].first + rhs.data_vector[i].first; //add amplitudes of lefts
                int newValRIGHT = a.data_vector[i].second + rhs.data_vector[i].second; //add amplitudes of rights
                if (sizeof(T)==1) {
                    if (newValLEFT > INT8_MAX) {    //clamp value for  8 bit
                        newValLEFT = INT8_MAX;
                    }
                    if (newValRIGHT > INT8_MAX) {    //clamp value for  8 bit
                        newValRIGHT = INT8_MAX;
                    }
                    a.data_vector[i].first = newValLEFT;
                    a.data_vector[i].second = newValRIGHT;
                }
                if (sizeof(T)==2) {
                    if (newValLEFT > INT16_MAX) {    //clamp left value for 16 bit
                        newValLEFT = INT16_MAX;
                    }
                    if (newValRIGHT > INT16_MAX) {    //clamp right value for 16 bit
                        newValRIGHT = INT16_MAX;
                    }
                    a.data_vector[i].first = newValLEFT;
                    a.data_vector[i].second = newValRIGHT;
                }
            }
            return a;
        }

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movq %rdi, -0x48(%rbp)
movq %rdi, %rax
movq %rax, -0x50(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x10(%rbp), %rsi
movb $0x0, -0x19(%rbp)
callq 0xc970
movq -0x48(%rbp), %rdi
callq 0xc0a0
movq %rax, -0x28(%rbp)
movq -0x18(%rbp), %rdi
callq 0xc0a0
movq %rax, -0x30(%rbp)
leaq -0x28(%rbp), %rdi
leaq -0x30(%rbp), %rsi
callq 0xa3a0
movq (%rax), %rax
movl %eax, -0x20(%rbp)
movl $0x0, -0x34(%rbp)
movl -0x34(%rbp), %eax
cmpl -0x20(%rbp), %eax
jge 0x7463
movq -0x48(%rbp), %rdi
movslq -0x34(%rbp), %rsi
callq 0xc080
movsbl (%rax), %eax
movl %eax, -0x58(%rbp)
movq -0x18(%rbp), %rdi
movslq -0x34(%rbp), %rsi
callq 0xc9b0
movq -0x48(%rbp), %rdi
movq %rax, %rcx
movl -0x58(%rbp), %eax
movsbl (%rcx), %ecx
addl %ecx, %eax
movl %eax, -0x38(%rbp)
movslq -0x34(%rbp), %rsi
callq 0xc080
movsbl 0x1(%rax), %eax
movl %eax, -0x54(%rbp)
movq -0x18(%rbp), %rdi
movslq -0x34(%rbp), %rsi
callq 0xc9b0
movq %rax, %rcx
movl -0x54(%rbp), %eax
movsbl 0x1(%rcx), %ecx
addl %ecx, %eax
movl %eax, -0x3c(%rbp)
cmpl $0x7f, -0x38(%rbp)
jle 0x7417
movl $0x7f, -0x38(%rbp)
cmpl $0x7f, -0x3c(%rbp)
jle 0x7424
movl $0x7f, -0x3c(%rbp)
movq -0x48(%rbp), %rdi
movl -0x38(%rbp), %eax
movb %al, -0x5a(%rbp)
movslq -0x34(%rbp), %rsi
callq 0xc080
movb -0x5a(%rbp), %cl
movq -0x48(%rbp), %rdi
movb %cl, (%rax)
movl -0x3c(%rbp), %eax
movb %al, -0x59(%rbp)
movslq -0x34(%rbp), %rsi
callq 0xc080
movb -0x59(%rbp), %cl
movb %cl, 0x1(%rax)
movl -0x34(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x34(%rbp)
jmp 0x73a0
movb $0x1, -0x19(%rbp)
testb $0x1, -0x19(%rbp)
jne 0x7476
movq -0x48(%rbp), %rdi
callq 0x75d0
movq -0x50(%rbp), %rax
addq $0x60, %rsp
popq %rbp
retq