// File: /workspace/github_cpp_makefile_star2_O3/girdhari9[P]mTORRENT/ClientConnection.cpp
// Function: ReadFileByLine(int, int)
void ReadFileByLine(int TrackerFileD,int flag){
    char sendBuffer[BUFFER_SIZE];
    int index = 0;

    mTorrentFileData.clear();
    memset(&sendBuffer, '\0',BUFFER_SIZE);
    while (read(TrackerFileD, &sendBuffer[index], 1) == 1) {
        if (sendBuffer[index] == '\n' || sendBuffer[index] == 0x0) {
            if(!flag){
                mTorrentFileData.push_back((string)sendBuffer);
                return ;
            }
            else{ 
                string sb = (string)sendBuffer;
                unsigned int found = sb.find(':');
                if (found != string::npos){
                    mTorrentFileData.push_back(sb.substr(0,found));
                    mTorrentFileData.push_back(sb.substr(found+1));
                }
                return ;
            }
        }
        index++;
    }
    return ;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x818, %rsp            # imm = 0x818
movl %esi, %ebx
movl %edi, %ebp
movq 0x976a(%rip), %rsi      # 0x128e8
leaq 0x9763(%rip), %rdi      # 0x128e8
callq 0xaec4
leaq 0x40(%rsp), %r14
movl $0x7d0, %edx            # imm = 0x7D0
movq %r14, %rdi
xorl %esi, %esi
callq 0x4200
movl $0x1, %edx
movl %ebp, %edi
movq %r14, %rsi
callq 0x44a0
cmpq $0x1, %rax
jne 0x92c1
leaq 0x41(%rsp), %r14
movzbl -0x1(%r14), %eax
cmpl $0xa, %eax
je 0x91e7
testl %eax, %eax
je 0x91e7
movl $0x1, %edx
movl %ebp, %edi
movq %r14, %rsi
callq 0x44a0
incq %r14
cmpq $0x1, %rax
je 0x91bc
jmp 0x92c1
testl %ebx, %ebx
je 0x92cf
leaq 0x10(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x40(%rsp), %rbx
movq %rbx, %rdi
callq 0x41a0
leaq (%rsp,%rax), %rdx
addq $0x40, %rdx
movq %rsp, %rdi
movq %rbx, %rsi
callq 0x7562
movq %rsp, %r14
movq %r14, %rdi
movl $0x3a, %esi
xorl %edx, %edx
callq 0x4450
movq %rax, %rbx
movl %ebx, %ecx
leaq 0x20(%rsp), %rdi
movq %r14, %rsi
xorl %edx, %edx
callq 0x4360
leaq 0x96a3(%rip), %rdi      # 0x128e8
leaq 0x20(%rsp), %rsi
callq 0x7804
leaq 0x30(%rsp), %r14
movq -0x10(%r14), %rdi
cmpq %r14, %rdi
je 0x926a
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x4350
incl %ebx
leaq 0x20(%rsp), %rdi
movq %rsp, %rsi
movq %rbx, %rdx
movq $-0x1, %rcx
callq 0x4360
leaq 0x965e(%rip), %rdi      # 0x128e8
leaq 0x20(%rsp), %rsi
callq 0x7804
movq 0x20(%rsp), %rdi
cmpq %r14, %rdi
je 0x92ab
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x4350
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x92c1
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x4350
addq $0x818, %rsp            # imm = 0x818
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
leaq 0x10(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x40(%rsp), %rbx
movq %rbx, %rdi
callq 0x41a0
leaq (%rsp,%rax), %rdx
addq $0x40, %rdx
movq %rsp, %rdi
movq %rbx, %rsi
callq 0x7562
leaq 0x95e9(%rip), %rdi      # 0x128e8
movq %rsp, %rsi
callq 0x7804
movq (%rsp), %rdi
cmpq %r14, %rdi
jne 0x92b4
jmp 0x92c1
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r14, %rdi
jne 0x935f
jmp 0x9371
jmp 0x936e
movq %rax, %rbx
movq 0x20(%rsp), %rdi
cmpq %r14, %rdi
jne 0x9344
jmp 0x9356
jmp 0x9353
movq %rax, %rbx
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x9356
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x4350
jmp 0x9356
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x9371
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x4350
jmp 0x9371
movq %rax, %rbx
movq %rbx, %rdi
callq 0x45d0