// File: /workspace/github_cpp_makefile_star2_O1/TheiaRT[P]libiris/sampleclient.cpp
// Function: main
int main() {
    std::string input;
    TCPClient client;
    while (getline(std::cin, input)) {
        if (client.connect("localhost", 8000) == false) {
            std::cerr << "Could not connect :(" << std::endl;
            return 1;
        }
        if (client.send_data(input) == false) {
            std::cerr << "Could not send data :(" << std::endl;
            return 2;
        }
        std::cout << client.receive() << std::endl;
    }
    return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x98, %rsp
leaq 0x10(%rsp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
leaq 0x84(%rsp), %rdi
callq 0x230c
leaq 0x70(%rsp), %r14
movq 0x29a2(%rip), %rbx      # 0x4fd8
leaq 0x60(%rsp), %r13
leaq 0x84(%rsp), %rbp
leaq 0x40(%rsp), %r15
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x20f0
movsbl %al, %edx
movq %rbx, %rdi
movq %rsp, %rsi
callq 0x2190
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x2797
movq %r14, 0x60(%rsp)
movq %r13, %rdi
leaq 0xa05(%rip), %rsi       # 0x3090
leaq 0xa07(%rip), %rdx       # 0x3099
callq 0x2566
movq %rbp, %rdi
movq %r13, %rsi
movl $0x1f40, %edx           # imm = 0x1F40
callq 0x2314
movl %eax, %r12d
movq 0x60(%rsp), %rdi
cmpq %r14, %rdi
je 0x26c1
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x2110
testb %r12b, %r12b
je 0x279e
leaq 0x50(%rsp), %rax
movq %rax, 0x40(%rsp)
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
addq %rsi, %rdx
movq %r15, %rdi
callq 0x28e0
movq %rbp, %rdi
movq %r15, %rsi
movl $0x200, %edx            # imm = 0x200
callq 0x23d2
movl %eax, %r12d
movq 0x40(%rsp), %rdi
leaq 0x50(%rsp), %rax
cmpq %rax, %rdi
je 0x2717
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x2110
testb %r12b, %r12b
je 0x27eb
leaq 0x20(%rsp), %rdi
movq %rbp, %rsi
movl $0x200, %edx            # imm = 0x200
callq 0x2404
movq 0x20(%rsp), %rsi
movq 0x28(%rsp), %rdx
movq 0x2885(%rip), %rdi      # 0x4fc8
callq 0x2130
movq %rax, %r12
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x20f0
movsbl %al, %esi
movq %r12, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2090
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x2648
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x2110
jmp 0x2648
xorl %ebx, %ebx
jmp 0x2836
movq 0x284b(%rip), %rbx      # 0x4ff0
leaq 0x8ee(%rip), %rsi       # 0x309a
movl $0x14, %edx
movq %rbx, %rdi
callq 0x2130
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x20f0
movsbl %al, %esi
movq 0x2819(%rip), %rdi      # 0x4ff0
callq 0x2040
movl $0x1, %ebx
movq %rax, %rdi
callq 0x2090
jmp 0x2836
movq 0x27fe(%rip), %rbx      # 0x4ff0
leaq 0x8b6(%rip), %rsi       # 0x30af
movl $0x16, %edx
movq %rbx, %rdi
callq 0x2130
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x20f0
movsbl %al, %esi
movq 0x27cc(%rip), %rdi      # 0x4ff0
callq 0x2040
movl $0x2, %ebx
movq %rax, %rdi
callq 0x2090
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x2851
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x2110
movl %ebx, %eax
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x2898
jmp 0x2898
movq %rax, %rbx
movq 0x40(%rsp), %rdi
leaq 0x50(%rsp), %rax
cmpq %rax, %rdi
je 0x28bc
movq 0x50(%rsp), %rsi
jmp 0x28b4
movq %rax, %rbx
movq 0x60(%rsp), %rdi
cmpq %r14, %rdi
je 0x28bc
movq 0x70(%rsp), %rsi
jmp 0x28b4
jmp 0x2898
movq %rax, %rbx
jmp 0x28bc
movq %rax, %rbx
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x28bc
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x2110
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x28d7
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x2110
movq %rbx, %rdi
callq 0x2170
nop