// File: /workspace/github_cpp_makefile_star2_O3/carellano8[P]Proyecto-Redes-I-2017/hamming.cpp
// Function: hamming::recibir(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
void hamming::recibir(binario bin){
	size_t i,li,ls,j,a,b;
    int r;
    bool error=false;
    binario aux="";
    binario bufferB[MAXMSJ/MAXT*8];
    binario buffer2[MAXMSJ/MAXT*8];
    string bufferMsj;
    ofstream archivo("salidah.txt");
    
   
     i=0;j=0;
    while(i<bin.size()){

        li=bin.find("01111110",i);
        ls=bin.find("01111110",i+8);
        bufferB[j]=bin.substr(li,(ls+8)-li);

        //~ cout<<"Inferior "<<li<<" Superior "<<ls<<" Distancia "<<(ls+8)-li<<endl;
        //~ cout<<bufferB[j]<<endl;
        j++;
        i=ls+8;;
    }
    if(j>16){error=true;}// maximo 16 tramas 
    i=0;
    while(!error&&i<j){// Verfificar que no hay error en las banderas 
        if(bufferB[i].size()<=30){
            error=true;
        }
        if(!error){
            bufferB[i]=bufferB[i].substr(8,bufferB[i].size()-16);//quita las banderas 
        }
        i++;
    }
   	if(!error){// Quitar relleno de bits
        for (i = 0; i < j; i++)
        {
        	b=0;aux="";a=0;
        	while(a < bufferB[i].size())
        	{
        		if(bufferB[i].at(a)=='1'){
                    b++;
                }else{
                    b=0;
                    }
                aux+=bufferB[i].at(a);		
                if(b==5){
                a++;b=0;
                	}
            a++;
        	}
        	
        	bufferB[i]=aux;

       	}
    }
            
    
    if(!error){// decodificar hamming
        i=0;
        while(!error&&i<j){// decodificar hamming
        	// cout<<bufferB[i]<<endl;
        	// cout<<crc(bufferB[i])<<endl;
        	bufferB[i]=decodificadorHamming(bufferB[i],&r);
        	//~ cout<<"HOLA "<<r<<endl;
            if(r==-1){
                error=true;
            }
            i++;
        }
    }
   
       
    if(!error){// Cabecera, Que no hay desorden en las tramas y que hay trama final
        i=0;
        while(!error&&i<j){// 
            a=BitStringToInt(bufferB[i].substr(1,4));
            b=BitStringToInt(bufferB[i].substr(5,1));
            buffer2[a]=bufferB[i].substr(6);
            //cout<<a<<" "<<b<<" "<<buffer2[a]<<endl;
            i++;
        }
        if(!b){
            error=true;
        }
    }
    if(!error){
        bufferMsj="";
        for (i = 0; i <j ; i++)
        {
            for (a = 0; a <buffer2[i].size() ; a+=8)
            {
                bufferMsj+=(char)(BitStringToInt(buffer2[i].substr(a,8)));
            }   
        }

        cout<<bufferMsj<<endl;
        if(archivo.is_open()){
            archivo<<bufferMsj;
            if(r==0){
            	cout<<"Se ha detectado y corregido un error"<<endl;
            	archivo<<endl<<"Se ha detectado y corregido un error"<<endl;
            }
            archivo.close();
        }else{
        	cout<<"Se ha detectado algun un error"<<endl;
        }
    }
    
    
    
    
    if(error){
        cout<<"Se ha detectado algun un error"<<endl;
        if(archivo.is_open()){
            archivo<<"Se ha detectado algun un error"<<endl;
            archivo.close();
        }else{
        	cout<<"Se ha detectado algun un error"<<endl;
        }
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x2308, %rsp           # imm = 0x2308
movq %rdi, %rbx
leaq -0xa0(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0x20c6(%rip), %rdx      # 0x8159
leaq -0xb0(%rbp), %rdi
movq %rdx, %rsi
callq 0x3140
movl $0x10, %eax
leaq (%rax,%rbp), %rcx
addq $-0x1330, %rcx          # imm = 0xECD0
movq %rcx, -0x10(%rcx)
movq $0x0, -0x8(%rcx)
movb $0x0, (%rcx)
addq $0x20, %rax
cmpq $0x1010, %rax           # imm = 0x1010
jne 0x60a7
movl $0x10, %eax
leaq (%rax,%rbp), %rcx
addq $-0x2330, %rcx          # imm = 0xDCD0
movq %rcx, -0x10(%rcx)
movq $0x0, -0x8(%rcx)
movb $0x0, (%rcx)
addq $0x20, %rax
cmpq $0x1010, %rax           # imm = 0x1010
jne 0x60d2
leaq -0x80(%rbp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
leaq 0x1fb5(%rip), %rsi      # 0x80c7
leaq -0x330(%rbp), %rdi
movl $0x10, %edx
callq 0x2180
cmpq $0x0, 0x8(%rbx)
je 0x61e9
movq $-0x1, -0x38(%rbp)
leaq -0x1330(%rbp), %r14
xorl %r12d, %r12d
movl $0x8, %ecx
movq %rbx, %rdi
leaq 0x200b(%rip), %r13      # 0x815a
movq %r13, %rsi
movq %r12, %rdx
callq 0x2230
movq %rax, %r15
addq $0x8, %r12
movl $0x8, %ecx
movq %rbx, %rdi
movq %r13, %rsi
movq %r12, %rdx
callq 0x2230
movq %rax, %r12
addq $0x8, %r12
movq %r12, %rcx
subq %r15, %rcx
leaq -0x60(%rbp), %r13
movq %r13, %rdi
movq %rbx, %rsi
movq %r15, %rdx
callq 0x2170
movq %r14, %rdi
movq %r13, %rsi
callq 0x21c0
movq -0x60(%rbp), %rdi
leaq -0x50(%rbp), %rax
cmpq %rax, %rdi
je 0x61b7
movq -0x50(%rbp), %rsi
incq %rsi
callq 0x2160
incq -0x38(%rbp)
addq $0x20, %r14
cmpq 0x8(%rbx), %r12
jb 0x6140
movq -0x38(%rbp), %rax
leaq 0x1(%rax), %rbx
cmpq $0xf, %rax
jbe 0x61f2
xorl %eax, %eax
cmpq $0x11, %rbx
setae %dl
cmovbq %rax, %rbx
jmp 0x6417
xorl %ebx, %ebx
xorl %edx, %edx
jmp 0x668f
movq %rbx, -0x40(%rbp)
cmpq $0x11, %rbx
setae %dl
leaq -0x1330(%rbp), %rbx
xorl %r15d, %r15d
movl $0x1, %r12d
leaq -0x60(%rbp), %r14
movq 0x8(%rbx), %rcx
cmpq $0x1f, %rcx
movzbl %dl, %edx
cmovbl %r12d, %edx
testb $0x1, %dl
jne 0x633c
movl %edx, -0x2c(%rbp)
addq $-0x10, %rcx
movl $0x8, %edx
movq %r14, %rdi
movq %rbx, %rsi
callq 0x2170
movq %rbx, %rdi
movq %r14, %rsi
callq 0x21c0
movq -0x60(%rbp), %rdi
leaq -0x50(%rbp), %rax
cmpq %rax, %rdi
je 0x6264
movq -0x50(%rbp), %rsi
incq %rsi
callq 0x2160
incq %r15
addq $0x20, %rbx
cmpq -0x40(%rbp), %r15
movl -0x2c(%rbp), %edx
jb 0x6211
xorl %r14d, %r14d
movq -0xa8(%rbp), %rdx
leaq -0xb0(%rbp), %rdi
xorl %esi, %esi
leaq 0x1ecb(%rip), %rcx      # 0x8159
xorl %r8d, %r8d
callq 0x2210
movq %r14, -0x68(%rbp)
movq %r14, %rax
shlq $0x5, %rax
leaq (%rax,%rbp), %r15
addq $-0x1330, %r15          # imm = 0xECD0
cmpq $0x0, 0x8(%r15)
je 0x6307
xorl %r12d, %r12d
xorl %ebx, %ebx
movq (%r15), %rax
movb (%rax,%rbx), %r14b
movsbl %r14b, %esi
leaq -0xb0(%rbp), %rdi
callq 0x2120
movl $0x0, %r13d
cmpb $0x31, %r14b
je 0x62e3
movl $0x0, %r12d
jmp 0x62e6
incq %r12
xorl %eax, %eax
cmpq $0x5, %r12
sete %cl
je 0x62f4
movq %r12, %r13
movb %cl, %al
addq %rax, %rbx
incq %rbx
movq %r13, %r12
cmpq 0x8(%r15), %rbx
jb 0x62b8
jmp 0x630a
xorl %r13d, %r13d
movq %r15, %rdi
leaq -0xb0(%rbp), %rsi
callq 0x20c0
movq -0x40(%rbp), %rbx
movq -0x68(%rbp), %rcx
leaq 0x1(%rcx), %r14
cmpq %rcx, -0x38(%rbp)
jne 0x6277
movl -0x2c(%rbp), %edx
testb $0x1, %dl
je 0x6341
jmp 0x6417
jmp 0x6413
leaq -0x1330(%rbp), %rbx
movl $0x1, %eax
movq %rax, -0x38(%rbp)
leaq -0x130(%rbp), %r15
leaq -0x60(%rbp), %r14
movl %edx, -0x2c(%rbp)
leaq -0x120(%rbp), %rax
movq %rax, -0x130(%rbp)
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
addq %rsi, %rdx
movq %r15, %rdi
callq 0x30a2
movq %r14, %rdi
movq %r15, %r12
movq %r15, %rsi
leaq -0x6c(%rbp), %rdx
callq 0x6c50
movq %rbx, %rdi
movq %r14, %rsi
callq 0x21c0
movq -0x60(%rbp), %rdi
leaq -0x50(%rbp), %rax
cmpq %rax, %rdi
je 0x63b5
movq -0x50(%rbp), %rsi
incq %rsi
callq 0x2160
movq -0x130(%rbp), %rdi
leaq -0x120(%rbp), %rax
cmpq %rax, %rdi
je 0x63d7
movq -0x120(%rbp), %rsi
incq %rsi
callq 0x2160
movl -0x6c(%rbp), %eax
cmpl $-0x1, %eax
movl -0x2c(%rbp), %edx
movzbl %dl, %edx
movl $0x1, %ecx
cmovel %ecx, %edx
testb $0x1, %dl
jne 0x640d
movq %r12, %r15
addq $0x20, %rbx
movq -0x38(%rbp), %rsi
leaq 0x1(%rsi), %rcx
cmpq -0x40(%rbp), %rsi
movq %rcx, -0x38(%rbp)
jb 0x635c
testl %eax, %eax
sete -0x68(%rbp)
movq -0x40(%rbp), %rbx
testb $0x1, %dl
jne 0x669d
testq %rbx, %rbx
je 0x668d
movl %edx, -0x2c(%rbp)
movq %rbx, -0x40(%rbp)
xorl %ebx, %ebx
leaq -0x60(%rbp), %r15
movq %rbx, %rax
shlq $0x5, %rax
leaq (%rax,%rbp), %r13
addq $-0x1330, %r13          # imm = 0xECD0
movl $0x1, %edx
movl $0x4, %ecx
leaq -0x110(%rbp), %rdi
movq %r13, %rsi
callq 0x2170
movq -0x108(%rbp), %r14
testq %r14, %r14
je 0x6510
decq %r14
xorl %r15d, %r15d
xorl %r12d, %r12d
movq -0x110(%rbp), %rax
cmpb $0x31, (%rax,%r12)
jne 0x64fa
movq %r14, %xmm1
movq 0x1c7b(%rip), %xmm0     # 0x8110
punpckldq %xmm0, %xmm1    # xmm1 = xmm1[0],xmm0[0],xmm1[1],xmm0[1]
movapd 0x1c7f(%rip), %xmm0     # 0x8120
subpd %xmm0, %xmm1
movapd %xmm1, %xmm0
unpckhpd %xmm1, %xmm0            # xmm0 = xmm0[1],xmm1[1]
addsd %xmm1, %xmm0
callq 0x2140
movq %r15, %xmm1
punpckldq 0x1c4d(%rip), %xmm1 # xmm1 = xmm1[0],mem[0],xmm1[1],mem[1]
subpd 0x1c55(%rip), %xmm1     # 0x8120
movapd %xmm1, %xmm2
unpckhpd %xmm1, %xmm2            # xmm2 = xmm2[1],xmm1[1]
addsd %xmm1, %xmm2
addsd %xmm2, %xmm0
cvttsd2si %xmm0, %rax
movq %rax, %rcx
sarq $0x3f, %rcx
subsd 0x1c41(%rip), %xmm0     # 0x8130
cvttsd2si %xmm0, %r15
andq %rcx, %r15
orq %rax, %r15
incq %r12
addq $-0x1, %r14
jb 0x647a
movslq %r15d, %r14
leaq -0x60(%rbp), %r15
jmp 0x6513
xorl %r14d, %r14d
movq -0x110(%rbp), %rdi
leaq -0x100(%rbp), %rax
cmpq %rax, %rdi
je 0x6535
movq -0x100(%rbp), %rsi
incq %rsi
callq 0x2160
movl $0x5, %edx
movl $0x1, %ecx
leaq -0xf0(%rbp), %rdi
movq %r13, %rsi
callq 0x2170
movq -0xe8(%rbp), %r12
testq %r12, %r12
je 0x6608
movq %r14, -0x38(%rbp)
decq %r12
xorl %r14d, %r14d
xorl %r15d, %r15d
movq -0xf0(%rbp), %rax
cmpb $0x31, (%rax,%r15)
jne 0x65eb
movq %r12, %xmm1
movq 0x1b8a(%rip), %xmm0     # 0x8110
punpckldq %xmm0, %xmm1    # xmm1 = xmm1[0],xmm0[0],xmm1[1],xmm0[1]
movapd 0x1b8e(%rip), %xmm0     # 0x8120
subpd %xmm0, %xmm1
movapd %xmm1, %xmm0
unpckhpd %xmm1, %xmm0            # xmm0 = xmm0[1],xmm1[1]
addsd %xmm1, %xmm0
callq 0x2140
movq %r14, %xmm1
punpckldq 0x1b5c(%rip), %xmm1 # xmm1 = xmm1[0],mem[0],xmm1[1],mem[1]
subpd 0x1b64(%rip), %xmm1     # 0x8120
movapd %xmm1, %xmm2
unpckhpd %xmm1, %xmm2            # xmm2 = xmm2[1],xmm1[1]
addsd %xmm1, %xmm2
addsd %xmm2, %xmm0
cvttsd2si %xmm0, %rax
movq %rax, %rcx
sarq $0x3f, %rcx
subsd 0x1b50(%rip), %xmm0     # 0x8130
cvttsd2si %xmm0, %r14
andq %rcx, %r14
orq %rax, %r14
incq %r15
addq $-0x1, %r12
jb 0x656b
movq %r13, %r12
movslq %r14d, %r13
leaq -0x60(%rbp), %r15
movq -0x38(%rbp), %r14
jmp 0x660e
movq %r13, %r12
xorl %r13d, %r13d
movq -0xf0(%rbp), %rdi
leaq -0xe0(%rbp), %rax
cmpq %rax, %rdi
je 0x6630
movq -0xe0(%rbp), %rsi
incq %rsi
callq 0x2160
movl $0x6, %edx
movq %r15, %rdi
movq %r12, %rsi
movq $-0x1, %rcx
callq 0x2170
shlq $0x5, %r14
leaq (%r14,%rbp), %rdi
addq $-0x2330, %rdi          # imm = 0xDCD0
movq %r15, %rsi
callq 0x21c0
movq -0x60(%rbp), %rdi
leaq -0x50(%rbp), %rax
cmpq %rax, %rdi
je 0x6677
movq -0x50(%rbp), %rsi
incq %rsi
callq 0x2160
incq %rbx
cmpq -0x40(%rbp), %rbx
jne 0x6436
movq -0x40(%rbp), %rbx
movl -0x2c(%rbp), %edx
jmp 0x668f
xorl %ebx, %ebx
testq %r13, %r13
movzbl %dl, %eax
movl $0x1, %edx
cmovnel %eax, %edx
testb $0x1, %dl
je 0x6738
movq 0x4923(%rip), %rbx      # 0xafd0
leaq 0x19db(%rip), %rsi      # 0x808f
movl $0x1e, %edx
movq %rbx, %rdi
callq 0x21a0
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x2150
movsbl %al, %esi
movq 0x48f1(%rip), %rdi      # 0xafd0
callq 0x2030
movq %rax, %rdi
callq 0x20e0
leaq -0x2c0(%rbp), %rdi
callq 0x2060
testb %al, %al
je 0x69dc
leaq 0x1988(%rip), %rsi      # 0x808f
leaq -0x330(%rbp), %rbx
movl $0x1e, %edx
movq %rbx, %rdi
callq 0x21a0
movq -0x330(%rbp), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x2150
jmp 0x69bb
leaq -0x90(%rbp), %rdi
movq 0x8(%rdi), %rdx
leaq 0x1a0f(%rip), %rcx      # 0x8159
xorl %esi, %esi
xorl %r8d, %r8d
callq 0x2210
testq %rbx, %rbx
je 0x689c
xorl %eax, %eax
movq %rbx, -0x40(%rbp)
movq %rax, -0x38(%rbp)
shlq $0x5, %rax
cmpq $0x0, -0x2328(%rbp,%rax)
je 0x688c
leaq (%rax,%rbp), %r15
addq $-0x2330, %r15          # imm = 0xDCD0
xorl %r12d, %r12d
movl $0x8, %ecx
leaq -0xd0(%rbp), %rdi
movq %r15, %rsi
movq %r12, %rdx
callq 0x2170
movq -0xc8(%rbp), %r13
testq %r13, %r13
je 0x6849
decq %r13
xorl %r14d, %r14d
xorl %ebx, %ebx
movq -0xd0(%rbp), %rax
cmpb $0x31, (%rax,%rbx)
jne 0x6836
movq %r13, %xmm1
movq 0x193f(%rip), %xmm0     # 0x8110
punpckldq %xmm0, %xmm1    # xmm1 = xmm1[0],xmm0[0],xmm1[1],xmm0[1]
movapd 0x1943(%rip), %xmm0     # 0x8120
subpd %xmm0, %xmm1
movapd %xmm1, %xmm0
unpckhpd %xmm1, %xmm0            # xmm0 = xmm0[1],xmm1[1]
addsd %xmm1, %xmm0
callq 0x2140
movq %r14, %xmm1
punpckldq 0x1911(%rip), %xmm1 # xmm1 = xmm1[0],mem[0],xmm1[1],mem[1]
subpd 0x1919(%rip), %xmm1     # 0x8120
movapd %xmm1, %xmm2
unpckhpd %xmm1, %xmm2            # xmm2 = xmm2[1],xmm1[1]
addsd %xmm1, %xmm2
addsd %xmm2, %xmm0
cvttsd2si %xmm0, %rax
movq %rax, %rcx
sarq $0x3f, %rcx
subsd 0x1905(%rip), %xmm0     # 0x8130
cvttsd2si %xmm0, %r14
andq %rcx, %r14
orq %rax, %r14
incq %rbx
addq $-0x1, %r13
jb 0x67b7
movq -0x40(%rbp), %rbx
jmp 0x684c
xorl %r14d, %r14d
movsbl %r14b, %esi
leaq -0x90(%rbp), %rdi
callq 0x2120
movq -0xd0(%rbp), %rdi
leaq -0xc0(%rbp), %rax
cmpq %rax, %rdi
je 0x687e
movq -0xc0(%rbp), %rsi
incq %rsi
callq 0x2160
addq $0x8, %r12
cmpq 0x8(%r15), %r12
jb 0x6788
movq -0x38(%rbp), %rax
incq %rax
cmpq %rbx, %rax
jne 0x6763
movq -0x90(%rbp), %rsi
movq -0x88(%rbp), %rdx
movq 0x471f(%rip), %rdi      # 0xafd0
callq 0x21a0
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
leaq -0x2c0(%rbp), %rdi
callq 0x2060
testb %al, %al
je 0x69dc
movq -0x90(%rbp), %rsi
movq -0x88(%rbp), %rdx
leaq -0x330(%rbp), %rbx
movq %rbx, %rdi
callq 0x21a0
testb $0x1, -0x68(%rbp)
je 0x69ce
movq 0x46ae(%rip), %r14      # 0xafd0
leaq 0x184c(%rip), %rsi      # 0x8175
movl $0x24, %edx
movq %r14, %rdi
callq 0x21a0
movq (%r14), %rax
addq -0x18(%rax), %r14
movq %r14, %rdi
movl $0xa, %esi
callq 0x2150
movsbl %al, %esi
movq 0x467c(%rip), %rdi      # 0xafd0
callq 0x2030
movq %rax, %rdi
callq 0x20e0
movq -0x330(%rbp), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x2150
movsbl %al, %esi
leaq -0x330(%rbp), %rdi
callq 0x2030
movq %rax, %rdi
callq 0x20e0
movq %rax, %rbx
leaq 0x17db(%rip), %rsi      # 0x8175
movl $0x24, %edx
movq %rax, %rdi
callq 0x21a0
movq (%rbx), %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
leaq -0x330(%rbp), %rdi
callq 0x21d0
jmp 0x6a22
movq 0x45ed(%rip), %rbx      # 0xafd0
leaq 0x16a5(%rip), %rsi      # 0x808f
movl $0x1e, %edx
movq %rbx, %rdi
callq 0x21a0
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x2150
movsbl %al, %esi
movq 0x45bb(%rip), %rdi      # 0xafd0
callq 0x2030
movq %rax, %rdi
callq 0x20e0
movq 0x459f(%rip), %rax      # 0xafc8
movq (%rax), %rcx
movq 0x18(%rax), %rax
leaq -0x328(%rbp), %rdi
movq %rcx, -0x8(%rdi)
movq -0x18(%rcx), %rcx
movq %rax, -0x330(%rbp,%rcx)
callq 0x2110
leaq -0x238(%rbp), %rdi
callq 0x20a0
movq -0x90(%rbp), %rdi
leaq -0x80(%rbp), %rax
cmpq %rax, %rdi
je 0x6a74
movq -0x80(%rbp), %rsi
incq %rsi
callq 0x2160
movq $-0x1000, %rbx          # imm = 0xF000
leaq -0x1340(%rbp), %r14
movq -0x10(%r14), %rdi
cmpq %rdi, %r14
je 0x6a96
movq (%r14), %rsi
incq %rsi
callq 0x2160
addq $-0x20, %r14
addq $0x20, %rbx
jne 0x6a82
movq $-0x1000, %rbx          # imm = 0xF000
leaq -0x340(%rbp), %r14
movq -0x10(%r14), %rdi
cmpq %rdi, %r14
je 0x6ac2
movq (%r14), %rsi
incq %rsi
callq 0x2160
addq $-0x20, %r14
addq $0x20, %rbx
jne 0x6aae
movq -0xb0(%rbp), %rdi
leaq -0xa0(%rbp), %rax
cmpq %rax, %rdi
je 0x6aee
movq -0xa0(%rbp), %rsi
incq %rsi
callq 0x2160
addq $0x2308, %rsp           # imm = 0x2308
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
jmp 0x6bb1
movq %rax, %rbx
movq -0x130(%rbp), %rdi
leaq -0x120(%rbp), %rax
cmpq %rax, %rdi
je 0x6ba5
movq -0x120(%rbp), %rsi
jmp 0x6b9d
jmp 0x6b79
jmp 0x6b79
jmp 0x6b79
jmp 0x6b79
jmp 0x6b79
jmp 0x6b79
jmp 0x6b79
movq %rax, %rbx
movq -0xf0(%rbp), %rdi
leaq -0xe0(%rbp), %rax
cmpq %rax, %rdi
je 0x6ba5
movq -0xe0(%rbp), %rsi
jmp 0x6b9d
movq %rax, %rbx
movq -0x110(%rbp), %rdi
leaq -0x100(%rbp), %rax
cmpq %rax, %rdi
je 0x6ba5
movq -0x100(%rbp), %rsi
jmp 0x6b9d
jmp 0x6b79
movq %rax, %rbx
jmp 0x6ba5
jmp 0x6b80
movq %rax, %rbx
movq -0xd0(%rbp), %rdi
leaq -0xc0(%rbp), %rax
cmpq %rax, %rdi
je 0x6ba5
movq -0xc0(%rbp), %rsi
incq %rsi
callq 0x2160
leaq -0x330(%rbp), %rdi
callq 0x21e0
movq -0x90(%rbp), %rdi
leaq -0x80(%rbp), %rax
cmpq %rax, %rdi
je 0x6bcd
movq -0x80(%rbp), %rsi
incq %rsi
callq 0x2160
movq $-0x1000, %r14          # imm = 0xF000
leaq -0x1340(%rbp), %r15
movq -0x10(%r15), %rdi
cmpq %rdi, %r15
je 0x6bef
movq (%r15), %rsi
incq %rsi
callq 0x2160
addq $-0x20, %r15
addq $0x20, %r14
jne 0x6bdb
movq $-0x1000, %r14          # imm = 0xF000
leaq -0x340(%rbp), %r15
movq -0x10(%r15), %rdi
cmpq %rdi, %r15
je 0x6c1b
movq (%r15), %rsi
incq %rsi
callq 0x2160
addq $-0x20, %r15
addq $0x20, %r14
jne 0x6c07
movq -0xb0(%rbp), %rdi
leaq -0xa0(%rbp), %rax
cmpq %rax, %rdi
je 0x6c47
movq -0xa0(%rbp), %rsi
incq %rsi
callq 0x2160
movq %rbx, %rdi
callq 0x2240
nop