// File: /workspace/github_cpp_makefile_star2_O2/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 0x4210
movq 0x83a8(%rip), %rdi      # 0xffc8
leaq 0x37c6(%rip), %rsi      # 0xb3ed
callq 0x4330
leaq 0x388d(%rip), %rdi      # 0xb4c0
callq 0x44e0
movq %rsp, %rsi
andl $0x0, (%rsi)
pushq $0x4
popq %r15
movl %ebp, %edi
movq %r15, %rdx
xorl %ecx, %ecx
callq 0x41d0
movq (%r14), %rsi
pushq $0x14
popq %rdx
movl %ebp, %edi
xorl %ecx, %ecx
callq 0x41d0
leaq 0x4(%rsp), %r14
movl %ebp, %edi
movq %r14, %rsi
movq %r15, %rdx
callq 0x4490
movslq (%r14), %rdx
movl %ebp, %edi
movq %rbx, %rsi
callq 0x4490
leaq 0x68(%rsp), %r14
leaq 0x88(%rsp), %rdx
movq %r14, %rdi
movq %rbx, %rsi
callq 0x6040
leaq 0x88(%rsp), %rdi
pushq $0x18
popq %rdx
movq %r14, %rsi
callq 0x4510
leaq 0x58(%rsp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
xorl %ecx, %ecx
leaq 0x38(%rsp), %rdx
movq %rdx, -0x10(%rdx)
andq $0x0, -0x8(%rdx)
leaq 0x18(%rsp), %rsi
movq %rsi, -0x10(%rsi)
andq $0x0, -0x8(%rsi)
movb %cl, (%rax)
movb %cl, (%rdx)
movb %cl, (%rsi)
leaq 0x88(%rsp), %rbx
leaq 0x48(%rsp), %r14
leaq 0x8bd3(%rip), %r15      # 0x108c0
leaq 0x28(%rsp), %r12
leaq 0x8(%rsp), %r13
movq %rbx, %rdi
movq %r14, %rsi
callq 0x4420
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x7d49
movq %r15, %rdi
movq %r14, %rsi
callq 0x60a4
movq %rbx, %rdi
movq %r12, %rsi
callq 0x4420
movq %r15, %rdi
movq %r12, %rsi
callq 0x60a4
movq %rbx, %rdi
movq %r13, %rsi
callq 0x4420
movq %r15, %rdi
movq %r13, %rsi
callq 0x60a4
jmp 0x7cf7
leaq 0x8(%rsp), %rdi
callq 0x4678
leaq 0x28(%rsp), %rdi
callq 0x4678
leaq 0x48(%rsp), %rdi
callq 0x4678
leaq 0x88(%rsp), %rdi
callq 0x4280
leaq 0x68(%rsp), %rdi
callq 0x4678
addq $0x9e8, %rsp            # imm = 0x9E8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
jmp 0x7dc3
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x4678
leaq 0x28(%rsp), %rdi
callq 0x4678
leaq 0x48(%rsp), %rdi
callq 0x4678
leaq 0x88(%rsp), %rdi
callq 0x4280
leaq 0x68(%rsp), %rdi
callq 0x4678
movq %rbx, %rdi
callq 0x45b0