// File: /workspace/github_cpp_makefile_star2_O3/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 0x235c
leaq 0x70(%rsp), %r14
movq 0x2996(%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 0x27a3
movq %r14, 0x60(%rsp)
movq %r13, %rdi
leaq 0x9f9(%rip), %rsi       # 0x3090
leaq 0x9fb(%rip), %rdx       # 0x3099
callq 0x256e
movq %rbp, %rdi
movq %r13, %rsi
movl $0x1f40, %edx           # imm = 0x1F40
callq 0x2364
movl %eax, %r12d
movq 0x60(%rsp), %rdi
cmpq %r14, %rdi
je 0x26cd
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x2110
testb %r12b, %r12b
je 0x27aa
leaq 0x50(%rsp), %rax
movq %rax, 0x40(%rsp)
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
addq %rsi, %rdx
movq %r15, %rdi
callq 0x28ec
movq %rbp, %rdi
movq %r15, %rsi
movl $0x200, %edx            # imm = 0x200
callq 0x2416
movl %eax, %r12d
movq 0x40(%rsp), %rdi
leaq 0x50(%rsp), %rax
cmpq %rax, %rdi
je 0x2723
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x2110
testb %r12b, %r12b
je 0x27f7
leaq 0x20(%rsp), %rdi
movq %rbp, %rsi
movl $0x200, %edx            # imm = 0x200
callq 0x2448
movq 0x20(%rsp), %rsi
movq 0x28(%rsp), %rdx
movq 0x2879(%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 0x2654
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x2110
jmp 0x2654
xorl %ebx, %ebx
jmp 0x2842
movq 0x283f(%rip), %rbx      # 0x4ff0
leaq 0x8e2(%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 0x280d(%rip), %rdi      # 0x4ff0
callq 0x2040
movl $0x1, %ebx
movq %rax, %rdi
callq 0x2090
jmp 0x2842
movq 0x27f2(%rip), %rbx      # 0x4ff0
leaq 0x8aa(%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 0x27c0(%rip), %rdi      # 0x4ff0
callq 0x2040
movl $0x2, %ebx
movq %rax, %rdi
callq 0x2090
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x285d
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 0x28a4
jmp 0x28a4
movq %rax, %rbx
movq 0x40(%rsp), %rdi
leaq 0x50(%rsp), %rax
cmpq %rax, %rdi
je 0x28c8
movq 0x50(%rsp), %rsi
jmp 0x28c0
movq %rax, %rbx
movq 0x60(%rsp), %rdi
cmpq %r14, %rdi
je 0x28c8
movq 0x70(%rsp), %rsi
jmp 0x28c0
jmp 0x28a4
movq %rax, %rbx
jmp 0x28c8
movq %rax, %rbx
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x28c8
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x2110
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x28e3
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x2110
movq %rbx, %rdi
callq 0x2170
nop