// File: /workspace/github_cpp_makefile_star2_O3/girdhari9[P]mTORRENT/ClientConnection.cpp
// Function: GetSeedersDetails(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
void GetSeedersDetails(int sock,string SHA){
    char recvBuffer[BUFFER_SIZE]; 
    memset(&recvBuffer, '\0',BUFFER_SIZE);

    cout<<"[+]system connected...\n";
    printf("> recieving seeders details...\n");

    int DataLength, RequestType = 0;
    send(sock , &RequestType , sizeof(int) , 0 );

    send(sock, SHA.c_str(), SHA_DIGEST_LENGTH, 0 );
    read(sock, &DataLength, sizeof(int));

    // if(DataLength < 3){
    //     close(sock);
    //     return ;
    // }
    read(sock, recvBuffer, DataLength);
    string Seeders = (string)recvBuffer;

    stringstream seeder(Seeders); // Used for breaking words 
    string IP,Port,FilePath; // to store individual words 
    while(seeder >> IP){
        ConDetail.push_back(IP);
        seeder >> Port;
        ConDetail.push_back(Port);
        seeder >> FilePath;
        ConDetail.push_back(FilePath);
    }
    return ;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x9e8, %rsp            # imm = 0x9E8
movq %rsi, %r14
movl %edi, %ebp
leaq 0x210(%rsp), %rbx
movl $0x7d0, %edx            # imm = 0x7D0
movq %rbx, %rdi
xorl %esi, %esi
callq 0x4200
movq 0x8986(%rip), %rdi      # 0x11fd0
leaq 0x3d9c(%rip), %rsi      # 0xd3ed
movl $0x17, %edx
callq 0x43c0
leaq 0x3e5e(%rip), %rdi      # 0xd4c0
callq 0x44f0
leaq 0x60(%rsp), %rsi
movl $0x0, (%rsi)
movl $0x4, %edx
movl %ebp, %edi
xorl %ecx, %ecx
callq 0x41c0
movq (%r14), %rsi
movl $0x14, %edx
movl %ebp, %edi
xorl %ecx, %ecx
callq 0x41c0
leaq 0x64(%rsp), %r14
movl $0x4, %edx
movl %ebp, %edi
movq %r14, %rsi
callq 0x44a0
movslq (%r14), %rdx
movl %ebp, %edi
movq %rbx, %rsi
callq 0x44a0
leaq 0x50(%rsp), %rax
movq %rax, -0x10(%rax)
movq %rbx, %rdi
callq 0x41a0
leaq (%rsp,%rax), %rdx
addq $0x210, %rdx            # imm = 0x210
leaq 0x40(%rsp), %r14
movq %r14, %rdi
movq %rbx, %rsi
callq 0x7562
leaq 0x88(%rsp), %rdi
movq %r14, %rsi
movl $0x18, %edx
callq 0x4530
leaq 0x30(%rsp), %rcx
movq %rcx, -0x10(%rcx)
xorl %eax, %eax
movq %rax, -0x8(%rcx)
movb %al, (%rcx)
leaq 0x10(%rsp), %rcx
movq %rcx, -0x10(%rcx)
movq %rax, -0x8(%rcx)
movb %al, (%rcx)
leaq 0x78(%rsp), %rbp
movq %rbp, -0x10(%rbp)
movq %rax, -0x8(%rbp)
movb %al, (%rbp)
leaq 0x88(%rsp), %rbx
leaq 0x20(%rsp), %r14
leaq 0x9199(%rip), %r15      # 0x128d0
movq %rsp, %r12
leaq 0x68(%rsp), %r13
movq %rbx, %rdi
movq %r14, %rsi
callq 0x4440
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x9791
movq %r15, %rdi
movq %r14, %rsi
callq 0x710a
movq %rbx, %rdi
movq %r12, %rsi
callq 0x4440
movq %r15, %rdi
movq %r12, %rsi
callq 0x710a
movq %rbx, %rdi
movq %r13, %rsi
callq 0x4440
movq %r15, %rdi
movq %r13, %rsi
callq 0x710a
jmp 0x973f
movq 0x68(%rsp), %rdi
cmpq %rbp, %rdi
je 0x97a8
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x4350
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x97c3
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x4350
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x97df
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x4350
movq 0x87c2(%rip), %rsi      # 0x11fa8
leaq 0x88(%rsp), %rdi
callq 0x4270
leaq 0x108(%rsp), %rdi
callq 0x4160
movq 0x40(%rsp), %rdi
leaq 0x50(%rsp), %rax
cmpq %rax, %rdi
je 0x981c
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x4350
addq $0x9e8, %rsp            # imm = 0x9E8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
jmp 0x98a5
movq %rax, %rbx
movq 0x68(%rsp), %rdi
cmpq %rbp, %rdi
je 0x984d
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x4350
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x9868
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x4350
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x9884
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x4350
movq 0x871d(%rip), %rsi      # 0x11fa8
leaq 0x88(%rsp), %rdi
callq 0x4270
leaq 0x108(%rsp), %rdi
callq 0x4160
movq 0x40(%rsp), %rdi
leaq 0x50(%rsp), %rax
cmpq %rax, %rdi
je 0x98c1
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x4350
movq %rbx, %rdi
callq 0x45d0