// File: /workspace/github_cpp_makefile_star2_O1/carellano8[P]Proyecto-Redes-I-2017/crc16.cpp
// Function: crc16::recibir(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
void crc16::recibir(binario bin){
    size_t i,li,ls,j,a,b;
    bool error=false;
    binario aux="";
    binario bufferB[MAXMSJ/MAXT*8];
    binario buffer2[MAXMSJ/MAXT*8];
    string bufferMsj;
    ofstream archivo("salidacrc.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){// CRC16
        i=0;
        while(!error&&i<j){// Verfificar CRC16
        	// cout<<bufferB[i]<<endl;
        	// cout<<crc(bufferB[i])<<endl;
            if(crc(bufferB[i])!="0000000000000000"){
                error=true;
            }else{
                bufferB[i]=bufferB[i].substr(0,bufferB[i].size()-16);
            }
            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++;
        }
        //~ b=BitStringToInt(buffer2[i-1].substr(5,1));
        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;
            archivo.close();
        }
    }
    
    
    
    
    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 $0x22f8, %rsp           # imm = 0x22F8
movq %rdi, %rbx
leaq -0x90(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0x3cca(%rip), %rdx      # 0x8159
leaq -0xa0(%rbp), %rdi
movq %rdx, %rsi
callq 0x315a
movl $0x10, %eax
leaq (%rax,%rbp), %rcx
addq $-0x1320, %rcx          # imm = 0xECE0
movq %rcx, -0x10(%rcx)
movq $0x0, -0x8(%rcx)
movb $0x0, (%rcx)
addq $0x20, %rax
cmpq $0x1010, %rax           # imm = 0x1010
jne 0x44a3
movl $0x10, %eax
leaq (%rax,%rbp), %rcx
addq $-0x2320, %rcx          # imm = 0xDCE0
movq %rcx, -0x10(%rcx)
movq $0x0, -0x8(%rcx)
movb $0x0, (%rcx)
addq $0x20, %rax
cmpq $0x1010, %rax           # imm = 0x1010
jne 0x44ce
leaq -0x70(%rbp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
leaq 0x3ba0(%rip), %rsi      # 0x80ae
leaq -0x320(%rbp), %rdi
movl $0x10, %edx
callq 0x2180
cmpq $0x0, 0x8(%rbx)
je 0x45c7
leaq -0x1320(%rbp), %r14
movq $0x0, -0x38(%rbp)
xorl %r13d, %r13d
movl $0x8, %ecx
movq %rbx, %rdi
leaq 0x3c0f(%rip), %r12      # 0x815a
movq %r12, %rsi
movq %r13, %rdx
callq 0x2230
movq %rax, %r15
addq $0x8, %r13
movl $0x8, %ecx
movq %rbx, %rdi
movq %r12, %rsi
movq %r13, %rdx
callq 0x2230
movq %rax, %r13
addq $0x8, %r13
movq %r13, %rcx
subq %r15, %rcx
leaq -0x60(%rbp), %r12
movq %r12, %rdi
movq %rbx, %rsi
movq %r15, %rdx
callq 0x2170
movq %r14, %rdi
movq %r12, %rsi
callq 0x21c0
movq -0x60(%rbp), %rdi
leaq -0x50(%rbp), %rax
cmpq %rax, %rdi
je 0x45b3
movq -0x50(%rbp), %rsi
incq %rsi
callq 0x2160
incq -0x38(%rbp)
addq $0x20, %r14
cmpq 0x8(%rbx), %r13
jb 0x453c
jmp 0x45cf
movq $0x0, -0x38(%rbp)
movq -0x38(%rbp), %rax
cmpq $0x11, %rax
setae %r12b
addq $-0x11, %rax
cmpq $-0x10, %rax
jb 0x465d
leaq -0x1320(%rbp), %rbx
movl $0x1, %r15d
movl $0x1, %r13d
leaq -0x60(%rbp), %r14
movq 0x8(%rbx), %rcx
cmpq $0x1e, %rcx
movzbl %r12b, %r12d
cmovbl %r13d, %r12d
testb $0x1, %r12b
jne 0x464a
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 0x464a
movq -0x50(%rbp), %rsi
incq %rsi
callq 0x2160
cmpq -0x38(%rbp), %r15
jae 0x465d
addq $0x20, %rbx
incq %r15
testb $0x1, %r12b
je 0x45fc
movl %r12d, -0x2c(%rbp)
cmpq $0x0, -0x38(%rbp)
je 0x472b
testb $0x1, -0x2c(%rbp)
jne 0x472b
xorl %ebx, %ebx
movq -0x98(%rbp), %rdx
leaq -0xa0(%rbp), %rdi
xorl %esi, %esi
leaq 0x3aca(%rip), %rcx      # 0x8159
xorl %r8d, %r8d
callq 0x2210
movq %rbx, -0x40(%rbp)
movq %rbx, %rax
shlq $0x5, %rax
leaq (%rax,%rbp), %r15
addq $-0x1320, %r15          # imm = 0xECE0
cmpq $0x0, 0x8(%r15)
je 0x4708
xorl %r12d, %r12d
xorl %ebx, %ebx
movq (%r15), %rax
movb (%rax,%rbx), %r14b
movsbl %r14b, %esi
leaq -0xa0(%rbp), %rdi
callq 0x2120
movl $0x0, %r13d
cmpb $0x31, %r14b
je 0x46e4
movl $0x0, %r12d
jmp 0x46e7
incq %r12
xorl %eax, %eax
cmpq $0x5, %r12
sete %cl
je 0x46f5
movq %r12, %r13
movb %cl, %al
addq %rax, %rbx
incq %rbx
movq %r13, %r12
cmpq 0x8(%r15), %rbx
jb 0x46b9
jmp 0x470b
xorl %r13d, %r13d
movq %r15, %rdi
leaq -0xa0(%rbp), %rsi
callq 0x20c0
movq -0x40(%rbp), %rbx
incq %rbx
cmpq -0x38(%rbp), %rbx
jne 0x4678
cmpq $0x0, -0x38(%rbp)
sete %al
movl -0x2c(%rbp), %edx
orb %dl, %al
movl %edx, %ecx
orb %al, %cl
testb $0x1, %cl
je 0x4748
movl %edx, %ecx
jmp 0x483a
leaq -0x1320(%rbp), %rbx
movl $0x1, %r15d
leaq -0x120(%rbp), %r14
leaq -0x60(%rbp), %r12
movl %edx, -0x2c(%rbp)
leaq -0x110(%rbp), %rax
movq %rax, -0x120(%rbp)
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
addq %rsi, %rdx
movq %r14, %rdi
callq 0x30c0
movq %r12, %rdi
movq %r14, %rsi
callq 0x3d12
movq %r12, %rdi
leaq 0x39a0(%rip), %rsi      # 0x8138
callq 0x2080
movl %eax, %r12d
movq -0x60(%rbp), %rdi
leaq -0x50(%rbp), %rax
cmpq %rax, %rdi
je 0x47b9
movq -0x50(%rbp), %rsi
incq %rsi
callq 0x2160
movq -0x120(%rbp), %rdi
leaq -0x110(%rbp), %rax
cmpq %rax, %rdi
je 0x47db
movq -0x110(%rbp), %rsi
incq %rsi
callq 0x2160
movb $0x1, %cl
testl %r12d, %r12d
leaq -0x60(%rbp), %r12
jne 0x4822
movq 0x8(%rbx), %rcx
addq $-0x10, %rcx
movq %r12, %rdi
movq %rbx, %rsi
xorl %edx, %edx
callq 0x2170
movq %rbx, %rdi
movq %r12, %rsi
callq 0x21c0
movq -0x60(%rbp), %rdi
leaq -0x50(%rbp), %rax
cmpq %rax, %rdi
je 0x481f
movq -0x50(%rbp), %rsi
incq %rsi
callq 0x2160
movl -0x2c(%rbp), %ecx
cmpq -0x38(%rbp), %r15
jae 0x483a
addq $0x20, %rbx
incq %r15
movl %ecx, %edx
testb $0x1, %cl
je 0x4760
testb $0x1, %cl
jne 0x4ab4
movl %ecx, -0x2c(%rbp)
cmpq $0x0, -0x38(%rbp)
je 0x4aa5
xorl %ebx, %ebx
leaq -0x60(%rbp), %r14
movq %rbx, %rax
shlq $0x5, %rax
leaq (%rax,%rbp), %r13
addq $-0x1320, %r13          # imm = 0xECE0
movl $0x1, %edx
movl $0x4, %ecx
leaq -0x100(%rbp), %rdi
movq %r13, %rsi
callq 0x2170
movq -0xf8(%rbp), %r15
testq %r15, %r15
je 0x4931
decq %r15
xorl %r14d, %r14d
xorl %r12d, %r12d
movq -0x100(%rbp), %rax
cmpb $0x31, (%rax,%r12)
jne 0x491b
movq %r15, %xmm1
movq 0x385a(%rip), %xmm0     # 0x8110
punpckldq %xmm0, %xmm1    # xmm1 = xmm1[0],xmm0[0],xmm1[1],xmm0[1]
movapd 0x385e(%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 0x382c(%rip), %xmm1 # xmm1 = xmm1[0],mem[0],xmm1[1],mem[1]
subpd 0x3834(%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 0x3820(%rip), %xmm0     # 0x8130
cvttsd2si %xmm0, %r14
andq %rcx, %r14
orq %rax, %r14
incq %r12
addq $-0x1, %r15
jb 0x489b
movslq %r14d, %r15
leaq -0x60(%rbp), %r14
jmp 0x4934
xorl %r15d, %r15d
movq -0x100(%rbp), %rdi
leaq -0xf0(%rbp), %rax
cmpq %rax, %rdi
je 0x4956
movq -0xf0(%rbp), %rsi
incq %rsi
callq 0x2160
movl $0x5, %edx
movl $0x1, %ecx
leaq -0xe0(%rbp), %rdi
movq %r13, %rsi
callq 0x2170
movq -0xd8(%rbp), %r12
testq %r12, %r12
je 0x4a29
movq %r15, -0x40(%rbp)
decq %r12
xorl %r15d, %r15d
xorl %r14d, %r14d
movq -0xe0(%rbp), %rax
cmpb $0x31, (%rax,%r14)
jne 0x4a0c
movq %r12, %xmm1
movq 0x3769(%rip), %xmm0     # 0x8110
punpckldq %xmm0, %xmm1    # xmm1 = xmm1[0],xmm0[0],xmm1[1],xmm0[1]
movapd 0x376d(%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 0x373b(%rip), %xmm1 # xmm1 = xmm1[0],mem[0],xmm1[1],mem[1]
subpd 0x3743(%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 0x372f(%rip), %xmm0     # 0x8130
cvttsd2si %xmm0, %r15
andq %rcx, %r15
orq %rax, %r15
incq %r14
addq $-0x1, %r12
jb 0x498c
movq %r13, %r12
movslq %r15d, %r13
leaq -0x60(%rbp), %r14
movq -0x40(%rbp), %r15
jmp 0x4a2f
movq %r13, %r12
xorl %r13d, %r13d
movq -0xe0(%rbp), %rdi
leaq -0xd0(%rbp), %rax
cmpq %rax, %rdi
je 0x4a51
movq -0xd0(%rbp), %rsi
incq %rsi
callq 0x2160
movl $0x6, %edx
movq %r14, %rdi
movq %r12, %rsi
movq $-0x1, %rcx
callq 0x2170
shlq $0x5, %r15
leaq (%r15,%rbp), %rdi
addq $-0x2320, %rdi          # imm = 0xDCE0
movq %r14, %rsi
callq 0x21c0
movq -0x60(%rbp), %rdi
leaq -0x50(%rbp), %rax
cmpq %rax, %rdi
je 0x4a98
movq -0x50(%rbp), %rsi
incq %rsi
callq 0x2160
incq %rbx
cmpq -0x38(%rbp), %rbx
jne 0x4857
testq %r13, %r13
movzbl -0x2c(%rbp), %eax
movl $0x1, %ecx
cmovnel %eax, %ecx
testb $0x1, %cl
je 0x4b66
movq 0x650c(%rip), %rbx      # 0xafd0
leaq 0x35c4(%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 0x64da(%rip), %rdi      # 0xafd0
callq 0x2030
movq %rax, %rdi
callq 0x20e0
leaq -0x2b0(%rbp), %rdi
callq 0x2060
testb %al, %al
je 0x4d2f
leaq 0x3571(%rip), %rsi      # 0x808f
leaq -0x320(%rbp), %rbx
movl $0x1e, %edx
movq %rbx, %rdi
callq 0x21a0
movq -0x320(%rbp), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x2150
movsbl %al, %esi
leaq -0x320(%rbp), %rdi
callq 0x2030
movq %rax, %rdi
callq 0x20e0
jmp 0x4d21
leaq -0x80(%rbp), %rdi
movq 0x8(%rdi), %rdx
leaq 0x35e4(%rip), %rcx      # 0x8159
xorl %esi, %esi
xorl %r8d, %r8d
callq 0x2210
cmpq $0x0, -0x38(%rbp)
je 0x4cbf
xorl %eax, %eax
movq %rax, -0x40(%rbp)
shlq $0x5, %rax
cmpq $0x0, -0x2318(%rbp,%rax)
je 0x4cae
leaq (%rax,%rbp), %r15
addq $-0x2320, %r15          # imm = 0xDCE0
xorl %r12d, %r12d
movl $0x8, %ecx
leaq -0xc0(%rbp), %rdi
movq %r15, %rsi
movq %r12, %rdx
callq 0x2170
movq -0xb8(%rbp), %r13
testq %r13, %r13
je 0x4c6e
decq %r13
xorl %r14d, %r14d
xorl %ebx, %ebx
movq -0xc0(%rbp), %rax
cmpb $0x31, (%rax,%rbx)
jne 0x4c5f
movq %r13, %xmm1
movq 0x3516(%rip), %xmm0     # 0x8110
punpckldq %xmm0, %xmm1    # xmm1 = xmm1[0],xmm0[0],xmm1[1],xmm0[1]
movapd 0x351a(%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 0x34e8(%rip), %xmm1 # xmm1 = xmm1[0],mem[0],xmm1[1],mem[1]
subpd 0x34f0(%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 0x34dc(%rip), %xmm0     # 0x8130
cvttsd2si %xmm0, %r14
andq %rcx, %r14
orq %rax, %r14
incq %rbx
addq $-0x1, %r13
jb 0x4be0
jmp 0x4c71
xorl %r14d, %r14d
movsbl %r14b, %esi
leaq -0x80(%rbp), %rdi
callq 0x2120
movq -0xc0(%rbp), %rdi
leaq -0xb0(%rbp), %rax
cmpq %rax, %rdi
je 0x4ca0
movq -0xb0(%rbp), %rsi
incq %rsi
callq 0x2160
addq $0x8, %r12
cmpq 0x8(%r15), %r12
jb 0x4bb1
movq -0x40(%rbp), %rax
incq %rax
cmpq -0x38(%rbp), %rax
jne 0x4b8c
movq -0x80(%rbp), %rsi
movq -0x78(%rbp), %rdx
movq 0x6302(%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 -0x2b0(%rbp), %rdi
callq 0x2060
testb %al, %al
je 0x4d75
movq -0x80(%rbp), %rsi
movq -0x78(%rbp), %rdx
leaq -0x320(%rbp), %rdi
callq 0x21a0
leaq -0x320(%rbp), %rdi
callq 0x21d0
jmp 0x4d75
movq 0x629a(%rip), %rbx      # 0xafd0
leaq 0x3352(%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 0x6268(%rip), %rdi      # 0xafd0
callq 0x2030
movq %rax, %rdi
callq 0x20e0
movq 0x624c(%rip), %rax      # 0xafc8
movq (%rax), %rcx
movq 0x18(%rax), %rax
leaq -0x318(%rbp), %rdi
movq %rcx, -0x8(%rdi)
movq -0x18(%rcx), %rcx
movq %rax, -0x320(%rbp,%rcx)
callq 0x2110
leaq -0x228(%rbp), %rdi
callq 0x20a0
movq -0x80(%rbp), %rdi
leaq -0x70(%rbp), %rax
cmpq %rax, %rdi
je 0x4dc4
movq -0x70(%rbp), %rsi
incq %rsi
callq 0x2160
movq $-0x1000, %rbx          # imm = 0xF000
leaq -0x1330(%rbp), %r14
movq -0x10(%r14), %rdi
cmpq %rdi, %r14
je 0x4de6
movq (%r14), %rsi
incq %rsi
callq 0x2160
addq $-0x20, %r14
addq $0x20, %rbx
jne 0x4dd2
movq $-0x1000, %rbx          # imm = 0xF000
leaq -0x330(%rbp), %r14
movq -0x10(%r14), %rdi
cmpq %rdi, %r14
je 0x4e12
movq (%r14), %rsi
incq %rsi
callq 0x2160
addq $-0x20, %r14
addq $0x20, %rbx
jne 0x4dfe
movq -0xa0(%rbp), %rdi
leaq -0x90(%rbp), %rax
cmpq %rax, %rdi
je 0x4e3e
movq -0x90(%rbp), %rsi
incq %rsi
callq 0x2160
addq $0x22f8, %rsp           # imm = 0x22F8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
jmp 0x4eff
jmp 0x4ec9
jmp 0x4ec9
jmp 0x4ec9
jmp 0x4ec9
movq %rax, %rbx
movq -0x120(%rbp), %rdi
leaq -0x110(%rbp), %rax
cmpq %rax, %rdi
je 0x4ef3
movq -0x110(%rbp), %rsi
jmp 0x4eeb
jmp 0x4ec9
jmp 0x4ec9
jmp 0x4ec9
jmp 0x4ec9
movq %rax, %rbx
movq -0xe0(%rbp), %rdi
leaq -0xd0(%rbp), %rax
cmpq %rax, %rdi
je 0x4ef3
movq -0xd0(%rbp), %rsi
jmp 0x4eeb
movq %rax, %rbx
movq -0x100(%rbp), %rdi
leaq -0xf0(%rbp), %rax
cmpq %rax, %rdi
je 0x4ef3
movq -0xf0(%rbp), %rsi
jmp 0x4eeb
jmp 0x4ec9
jmp 0x4ece
movq %rax, %rbx
jmp 0x4ef3
movq %rax, %rbx
movq -0xc0(%rbp), %rdi
leaq -0xb0(%rbp), %rax
cmpq %rax, %rdi
je 0x4ef3
movq -0xb0(%rbp), %rsi
incq %rsi
callq 0x2160
leaq -0x320(%rbp), %rdi
callq 0x21e0
movq -0x80(%rbp), %rdi
leaq -0x70(%rbp), %rax
cmpq %rax, %rdi
je 0x4f18
movq -0x70(%rbp), %rsi
incq %rsi
callq 0x2160
movq $-0x1000, %r14          # imm = 0xF000
leaq -0x1330(%rbp), %r15
movq -0x10(%r15), %rdi
cmpq %rdi, %r15
je 0x4f3a
movq (%r15), %rsi
incq %rsi
callq 0x2160
addq $-0x20, %r15
addq $0x20, %r14
jne 0x4f26
movq $-0x1000, %r14          # imm = 0xF000
leaq -0x330(%rbp), %r15
movq -0x10(%r15), %rdi
cmpq %rdi, %r15
je 0x4f66
movq (%r15), %rsi
incq %rsi
callq 0x2160
addq $-0x20, %r15
addq $0x20, %r14
jne 0x4f52
movq -0xa0(%rbp), %rdi
leaq -0x90(%rbp), %rax
cmpq %rax, %rdi
je 0x4f92
movq -0x90(%rbp), %rsi
incq %rsi
callq 0x2160
movq %rbx, %rdi
callq 0x2240