// File: /workspace/github_cpp_makefile_star2_O1/nurseiit[P]cpp-server/client.cpp
// Function: main
int main(int argc, char *argv[]) {
  try {
    if (argc != 3) {
      std::cout << "Usage: " << argv[0] << " <url> <port>\n";
      std::cout << "Examples:\n";
      std::cout << "  " << argv[0] << " www.example.com 80\n";
      std::cout << "  " << argv[0] << " www.google.com/test.html 80\n";
      return EXIT_FAILURE;
    }

    std::string hostname = hostname_from_url(argv[1]);
    std::string path = path_from_url(argv[1]);
    std::string port = argv[2];

    asio::io_context io_context;

    // Get endpoints for server name
    tcp::resolver resolver(io_context);
    tcp::resolver::results_type endpoints = resolver.resolve(hostname, port);

    // Find first successful endpoint
    tcp::socket socket(io_context);
    asio::connect(socket, endpoints);

    // Set bare minimum request headers for GET to work
    // https://stackoverflow.com/questions/6686261/what-at-the-bare-minimum-is-required-for-an-http-request
    asio::streambuf request;
    std::ostream request_stream(&request);
    request_stream << "GET " << path << " HTTP/1.0\r\n";
    request_stream << "Host: " << hostname << "\r\n";
    // Set "Connection: close" so server ends response with EOF
    request_stream << "Connection: close\r\n\r\n";

    // Send request
    asio::write(socket, request);

    // Read response status line
    asio::streambuf response;
    asio::read_until(socket, response, "\r\n");

    // Check response
    std::istream response_stream(&response);
    std::string http_version;
    response_stream >> http_version;
    unsigned int status_code;
    response_stream >> status_code;
    std::string status_message;
    std::getline(response_stream, status_message);

    if (!response_stream || http_version.substr(0, 5) != "HTTP/") {
      std::cout << "Invalid response\n";
      return EXIT_FAILURE;
    }

    std::cout << "STATUS CODE: " << status_code << std::endl;

    // Read & Print to console response headers
    asio::read_until(socket, response, "\r\n\r\n");

    std::string header;
    while (std::getline(response_stream, header) && header != "\r")
      std::cout << header << "\n";
    std::cout << "\n";

    // Read and print response till EOF
    if (response.size() > 0)
      std::cout << &response;

    asio::error_code error;
    while (asio::read(socket, response, asio::transfer_at_least(1), error))
      std::cout << &response;

    // If read throws EOF, it's expected
    if (error != asio::error::eof)
      throw asio::system_error(error);
  } catch (std::exception &e) {
    std::cout << "ERROR: " << e.what() << "\n";
    return EXIT_FAILURE;
  }

  return EXIT_SUCCESS;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x498, %rsp            # imm = 0x498
movq %rsi, %rbx
cmpl $0x3, %edi
jne 0x6461
movq 0x8(%rbx), %rsi
leaq 0x1c8(%rsp), %rdi
leaq 0x388(%rsp), %rdx
callq 0x5150
leaq 0xb8(%rsp), %rdi
leaq 0x1c8(%rsp), %rsi
callq 0x5f90
leaq 0x1d8(%rsp), %r15
movq -0x10(%r15), %rdi
cmpq %r15, %rdi
je 0x604c
callq 0x52f0
movq 0x8(%rbx), %rsi
leaq 0x1c8(%rsp), %rdi
leaq 0x388(%rsp), %rdx
callq 0x5150
leaq 0x120(%rsp), %rdi
leaq 0x1c8(%rsp), %rsi
callq 0x5f2c
movq 0x1c8(%rsp), %rdi
cmpq %r15, %rdi
je 0x608c
callq 0x52f0
movq 0x10(%rbx), %rsi
leaq 0x1a0(%rsp), %rdi
leaq 0x1c8(%rsp), %rdx
callq 0x5150
leaq 0x30(%rsp), %rdi
callq 0x6d34
leaq 0x2e0(%rsp), %rdi
leaq 0x30(%rsp), %rsi
xorl %edx, %edx
callq 0x9078
leaq 0x108(%rsp), %rdi
leaq 0x2e0(%rsp), %rsi
leaq 0xb8(%rsp), %rdx
leaq 0x1a0(%rsp), %rcx
xorl %r8d, %r8d
callq 0x9f7c
leaq 0xd8(%rsp), %rdi
leaq 0x30(%rsp), %rsi
xorl %edx, %edx
callq 0xabb4
leaq 0x1c8(%rsp), %rdi
leaq 0xd8(%rsp), %rsi
leaq 0x108(%rsp), %rdx
xorl %ecx, %ecx
callq 0x6e69
leaq 0x328(%rsp), %rdi
leaq 0x1c8(%rsp), %rdx
movq $-0x1, %rsi
callq 0x6f00
leaq 0x388(%rsp), %rdi
leaq 0x328(%rsp), %rbx
movq %rbx, %rsi
callq 0x5140
leaq 0x7f7b(%rip), %rsi      # 0xe0d4
leaq 0x388(%rsp), %rdi
movl $0x4, %edx
callq 0x5350
movq 0x120(%rsp), %rsi
movq 0x128(%rsp), %rdx
leaq 0x388(%rsp), %rdi
callq 0x5350
leaq 0x7f4a(%rip), %rsi      # 0xe0d9
movl $0xb, %edx
movq %rax, %rdi
callq 0x5350
leaq 0x7f42(%rip), %rsi      # 0xe0e5
leaq 0x388(%rsp), %rdi
movl $0x6, %edx
callq 0x5350
movq 0xb8(%rsp), %rsi
movq 0xc0(%rsp), %rdx
leaq 0x388(%rsp), %rdi
callq 0x5350
leaq 0x7f26(%rip), %rsi      # 0xe0ff
movl $0x2, %edx
movq %rax, %rdi
callq 0x5350
leaq 0x7eff(%rip), %rsi      # 0xe0ec
leaq 0x388(%rsp), %rdi
movl $0x15, %edx
callq 0x5350
leaq 0x8(%rsp), %r14
movq %rbx, (%r14)
leaq 0x140(%rsp), %rbx
movl $0x0, (%rbx)
callq 0x51d0
movq %rax, %r13
movq %rax, 0x8(%rbx)
leaq 0xd8(%rsp), %rdi
movq %r14, %rsi
movq %rbx, %rdx
xorl %ecx, %ecx
callq 0xcc22
movl 0x140(%rsp), %esi
testl %esi, %esi
je 0x6277
movq 0x148(%rsp), %rdx
leaq 0x8432(%rip), %rcx      # 0xe682
leaq 0x1c8(%rsp), %rdi
callq 0x75a2
leaq 0x1c8(%rsp), %rdi
callq 0x773b
leaq 0x1c8(%rsp), %rdi
callq 0x5610
leaq 0x140(%rsp), %rbx
leaq 0x1c8(%rsp), %rdx
movq %rbx, %rdi
movq $-0x1, %rsi
callq 0x6f00
leaq 0x18(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x7e59(%rip), %rsi      # 0xe0ff
leaq 0x7e54(%rip), %rdx      # 0xe101
leaq 0x8(%rsp), %rdi
callq 0x8e2e
leaq 0x98(%rsp), %rsi
movq %rbx, (%rsi)
leaq 0x70(%rsp), %rcx
movl $0x0, (%rcx)
movq %r13, 0x8(%rcx)
leaq 0xd8(%rsp), %rdi
leaq 0x8(%rsp), %rdx
xorl %r8d, %r8d
callq 0xcfb6
movl 0x70(%rsp), %esi
testl %esi, %esi
je 0x6321
movq 0x78(%rsp), %rdx
leaq 0x838e(%rip), %rcx      # 0xe688
leaq 0x1c8(%rsp), %rdi
callq 0x75a2
leaq 0x1c8(%rsp), %rdi
callq 0x773b
leaq 0x1c8(%rsp), %rdi
callq 0x5610
movq 0x8(%rsp), %rdi
cmpq %r14, %rdi
je 0x6330
callq 0x52f0
leaq 0x1c8(%rsp), %rdi
leaq 0x140(%rsp), %r14
movq %r14, %rsi
callq 0x55c0
leaq 0x80(%rsp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
leaq 0x1c8(%rsp), %rdi
leaq 0x70(%rsp), %rsi
callq 0x53d0
leaq 0x1c8(%rsp), %rbx
leaq 0x2c(%rsp), %rsi
movq %rbx, %rdi
callq 0x5530
leaq 0xa8(%rsp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
movq 0x1c8(%rsp), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x5300
movsbl %al, %edx
leaq 0x1c8(%rsp), %r15
leaq 0x98(%rsp), %rsi
movq %r15, %rdi
callq 0x55a0
movq 0x1c8(%rsp), %rax
movq -0x18(%rax), %rax
movl 0x1e8(%rsp,%rax), %ebx
movb $0x1, %bpl
testb $0x5, %bl
jne 0x641f
leaq 0x308(%rsp), %rdi
leaq 0x70(%rsp), %rsi
movl $0x5, %ecx
xorl %edx, %edx
callq 0x5330
leaq 0x7cf6(%rip), %rsi      # 0xe102
leaq 0x308(%rsp), %rdi
callq 0x50d0
testl %eax, %eax
setne %bpl
testb $0x5, %bl
jne 0x643a
leaq 0x318(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x643a
callq 0x52f0
testb %bpl, %bpl
je 0x64a7
movl $0x1, %ebx
movq 0xeb65(%rip), %rdi      # 0x14fb0
leaq 0x7cb6(%rip), %rsi      # 0xe108
movl $0x11, %edx
callq 0x5350
jmp 0x6708
movq 0xeb48(%rip), %r14      # 0x14fb0
leaq 0x7c0d(%rip), %rsi      # 0xe07c
movl $0x7, %edx
movq %r14, %rdi
callq 0x5350
movq (%rbx), %r15
testq %r15, %r15
je 0x68b4
movq %r15, %rdi
callq 0x5170
movq 0xeb19(%rip), %rdi      # 0x14fb0
movq %r15, %rsi
movq %rax, %rdx
callq 0x5350
jmp 0x68cc
movq 0xeb02(%rip), %rdi      # 0x14fb0
leaq 0x7c65(%rip), %rsi      # 0xe11a
movl $0xd, %edx
callq 0x5350
movl 0x2c(%rsp), %esi
movq 0xeae6(%rip), %rdi      # 0x14fb0
callq 0x5210
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x5300
movsbl %al, %esi
movq %rbx, %rdi
callq 0x5040
movq %rax, %rdi
callq 0x5220
leaq 0x60(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x7bf3(%rip), %rsi      # 0xe0fd
leaq 0x7bf0(%rip), %rdx      # 0xe101
leaq 0x50(%rsp), %rdi
callq 0x8e2e
leaq 0x18(%rsp), %rbx
leaq 0x1c0(%rsp), %rsi
movq %r14, (%rsi)
leaq 0x40(%rsp), %rcx
movl $0x0, (%rcx)
movq %r13, 0x8(%rcx)
leaq 0xd8(%rsp), %rdi
leaq 0x50(%rsp), %rdx
xorl %r8d, %r8d
callq 0xcfb6
movl 0x40(%rsp), %esi
testl %esi, %esi
je 0x6581
movq 0x48(%rsp), %rdx
leaq 0x8125(%rip), %rcx      # 0xe688
leaq 0x8(%rsp), %rdi
callq 0x75a2
leaq 0x8(%rsp), %rdi
callq 0x773b
leaq 0x8(%rsp), %rdi
callq 0x5610
movq %r13, 0x90(%rsp)
movq 0x50(%rsp), %rdi
cmpq %r12, %rdi
je 0x6598
callq 0x52f0
leaq 0x8(%rsp), %r12
movq %rbx, (%r12)
movq $0x0, 0x8(%r12)
movb $0x0, 0x10(%r12)
leaq 0x7b71(%rip), %r13      # 0xe128
movq 0xe9f2(%rip), %rbp      # 0x14fb0
leaq 0x7b3b(%rip), %rbx      # 0xe100
movq 0x1c8(%rsp), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x5300
movsbl %al, %edx
movq %r15, %rdi
movq %r12, %rsi
callq 0x55a0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x662d
movq %r12, %rdi
movq %r13, %rsi
callq 0x50d0
testl %eax, %eax
je 0x662d
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq %rbp, %rdi
callq 0x5350
movl $0x1, %edx
movq %rax, %rdi
movq %rbx, %rsi
callq 0x5350
jmp 0x65c5
movq 0xe97c(%rip), %rdi      # 0x14fb0
leaq 0x7ac5(%rip), %rsi      # 0xe100
movl $0x1, %edx
callq 0x5350
movq 0x168(%rsp), %rax
cmpq 0x150(%rsp), %rax
je 0x666b
movq 0xe952(%rip), %rdi      # 0x14fb0
leaq 0x140(%rsp), %rsi
callq 0x5080
leaq 0x50(%rsp), %rbx
movl $0x0, (%rbx)
movq 0x90(%rsp), %rax
movq %rax, 0x8(%rbx)
leaq 0xd8(%rsp), %r15
leaq 0x40(%rsp), %r12
movq 0xe91a(%rip), %r13      # 0x14fb0
leaq 0x18(%rsp), %rbp
movq %r14, 0x40(%rsp)
movl $0x1, %edx
movq %r15, %rdi
movq %r12, %rsi
movq %rbx, %rcx
xorl %r8d, %r8d
callq 0xd744
testq %rax, %rax
je 0x66c8
movq %r13, %rdi
movq %r14, %rsi
callq 0x5080
jmp 0x669b
leaq 0x40(%rsp), %rbx
movq %rbx, %rdi
movl $0x2, %esi
callq 0x6fcc
movq 0x58(%rsp), %rax
cmpq 0x8(%rbx), %rax
jne 0x69f3
movl 0x40(%rsp), %eax
cmpl %eax, 0x50(%rsp)
jne 0x69f3
movq 0x8(%rsp), %rdi
cmpq %rbp, %rdi
je 0x6706
callq 0x52f0
xorl %ebx, %ebx
movq 0x98(%rsp), %rdi
leaq 0xa8(%rsp), %rax
cmpq %rax, %rdi
je 0x6722
callq 0x52f0
movq 0x70(%rsp), %rdi
leaq 0x80(%rsp), %rax
cmpq %rax, %rdi
je 0x6739
callq 0x52f0
movq 0xe888(%rip), %rax      # 0x14fc8
movq (%rax), %rcx
movq 0x8(%rax), %rax
leaq 0x1d8(%rsp), %rdi
movq %rcx, -0x10(%rdi)
movq -0x18(%rcx), %rcx
movq %rax, 0x1c8(%rsp,%rcx)
movq $0x0, -0x8(%rdi)
callq 0x5100
leaq 0xe0fd(%rip), %r14      # 0x14870
movq %r14, 0x140(%rsp)
movq 0x188(%rsp), %rdi
testq %rdi, %rdi
je 0x678d
callq 0x52f0
movq 0xe7ec(%rip), %r15      # 0x14f80
addq $0x10, %r15
leaq 0x178(%rsp), %rdi
movq %r15, -0x38(%rdi)
callq 0x5450
leaq 0x390(%rsp), %rdi
callq 0x5100
movq %r14, 0x328(%rsp)
movq 0x370(%rsp), %rdi
testq %rdi, %rdi
je 0x67d0
callq 0x52f0
leaq 0x360(%rsp), %rdi
movq %r15, -0x38(%rdi)
callq 0x5450
leaq 0xd8(%rsp), %rdi
callq 0xb8c4
movq 0x110(%rsp), %rdi
testq %rdi, %rdi
je 0x6800
callq 0x8d2e
leaq 0x2e0(%rsp), %rdi
callq 0x9f42
movq 0x30(%rsp), %rax
movq 0x38(%rax), %r14
testq %r14, %r14
je 0x682a
movq (%r14), %rax
movq %r14, %rdi
callq *0x10(%rax)
movq 0x20(%r14), %r14
jmp 0x6816
movq 0x30(%rsp), %r14
movq 0x38(%r14), %rdi
testq %rdi, %rdi
je 0x684e
movq (%rdi), %rax
movq 0x20(%rdi), %r15
callq *0x8(%rax)
movq %r15, 0x38(%r14)
movq %r15, %rdi
testq %r15, %r15
jne 0x6838
movq 0x30(%rsp), %r14
testq %r14, %r14
je 0x6869
leaq 0x8(%r14), %rdi
callq 0x5370
movq %r14, %rdi
callq 0x52f0
leaq 0x1b0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x687f
callq 0x52f0
leaq 0x130(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6895
callq 0x52f0
leaq 0xc8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x69df
callq 0x52f0
jmp 0x69df
movq (%r14), %rax
movq -0x18(%rax), %rax
leaq (%r14,%rax), %rdi
movl 0x20(%r14,%rax), %esi
orl $0x1, %esi
callq 0x5510
movq 0xe6dd(%rip), %rdi      # 0x14fb0
leaq 0x77aa(%rip), %rsi      # 0xe084
movl $0xe, %edx
callq 0x5350
movq 0xe6c5(%rip), %rdi      # 0x14fb0
leaq 0x77a1(%rip), %rsi      # 0xe093
movl $0xa, %edx
callq 0x5350
movq 0xe6ad(%rip), %r14      # 0x14fb0
leaq 0x7794(%rip), %rsi      # 0xe09e
movl $0x2, %edx
movq %r14, %rdi
callq 0x5350
movq (%rbx), %r15
testq %r15, %r15
je 0x693b
movq %r15, %rdi
callq 0x5170
movq 0xe682(%rip), %rdi      # 0x14fb0
movq %r15, %rsi
movq %rax, %rdx
callq 0x5350
jmp 0x6953
movq (%r14), %rax
movq -0x18(%rax), %rax
leaq (%r14,%rax), %rdi
movl 0x20(%r14,%rax), %esi
orl $0x1, %esi
callq 0x5510
movq 0xe656(%rip), %rdi      # 0x14fb0
leaq 0x7740(%rip), %rsi      # 0xe0a1
movl $0x14, %edx
callq 0x5350
movq 0xe63e(%rip), %r14      # 0x14fb0
leaq 0x7725(%rip), %rsi      # 0xe09e
movl $0x2, %edx
movq %r14, %rdi
callq 0x5350
movq (%rbx), %rbx
testq %rbx, %rbx
je 0x69aa
movq %rbx, %rdi
callq 0x5170
movq 0xe613(%rip), %rdi      # 0x14fb0
movq %rbx, %rsi
movq %rax, %rdx
callq 0x5350
jmp 0x69c2
movq (%r14), %rax
movq -0x18(%rax), %rax
leaq (%r14,%rax), %rdi
movl 0x20(%r14,%rax), %esi
orl $0x1, %esi
callq 0x5510
movl $0x1, %ebx
movq 0xe5e2(%rip), %rdi      # 0x14fb0
leaq 0x76e1(%rip), %rsi      # 0xe0b6
movl $0x1d, %edx
callq 0x5350
movl %ebx, %eax
addq $0x498, %rsp            # imm = 0x498
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x20, %edi
callq 0x5190
movq %rax, %r15
movl 0x50(%rsp), %esi
movq 0x58(%rsp), %rdx
movq %rax, %rdi
callq 0x6ffa
movq 0xe558(%rip), %rsi      # 0x14f70
movq 0xe579(%rip), %rdx      # 0x14f98
movq %r15, %rdi
callq 0x5520
jmp 0x6b9e
movq %rdx, %rbx
movq %rax, %r14
movq %r15, %rdi
callq 0x5250
jmp 0x6ba4
movq %rdx, %rbx
movq %rax, %r14
leaq 0x8(%rsp), %rdi
callq 0x5610
jmp 0x6a96
jmp 0x6b76
jmp 0x6b76
movq %rdx, %rbx
movq %rax, %r14
leaq 0x1c8(%rsp), %rdi
callq 0x5610
jmp 0x6b59
movq %rdx, %rbx
movq %rax, %r14
leaq 0x1c8(%rsp), %rdi
callq 0x5610
jmp 0x6c29
jmp 0x6b9e
movq %rdx, %rbx
movq %rax, %r14
movq 0x50(%rsp), %rdi
cmpq %r12, %rdi
jne 0x6bb3
jmp 0x6bb8
jmp 0x6aab
movq %rdx, %rbx
movq %rax, %r14
jmp 0x6bd2
jmp 0x6ab8
movq %rdx, %rbx
movq %rax, %r14
jmp 0x6c1c
jmp 0x6b7e
movq %rdx, %rbx
movq %rax, %r14
jmp 0x6c36
jmp 0x6ad5
movq %rdx, %rbx
movq %rax, %r14
jmp 0x6c43
movq %rdx, %rbx
movq %rax, %r14
jmp 0x6c50
movq %rdx, %rbx
movq %rax, %r14
jmp 0x6c62
movq %rdx, %rbx
movq %rax, %r14
jmp 0x6c6f
movq %rdx, %rbx
movq %rax, %r14
jmp 0x6c79
movq %rdx, %rbx
movq %rax, %r14
jmp 0x6c8f
movq %rdx, %rbx
movq %rax, %r14
movq 0x1c8(%rsp), %rdi
cmpq %r15, %rdi
jne 0x6ca0
jmp 0x6ca5
movq %rdx, %rbx
movq %rax, %r14
jmp 0x6ca5
movq %rdx, %rbx
movq %rax, %r14
leaq 0x1d8(%rsp), %rax
jmp 0x6cad
jmp 0x6b89
movq %rdx, %rbx
movq %rax, %r14
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x6c1c
callq 0x52f0
jmp 0x6c1c
movq %rdx, %rbx
movq %rax, %r14
jmp 0x6bb8
movq %rdx, %rbx
movq %rax, %r14
jmp 0x6c29
movq %rdx, %rbx
movq %rax, %r14
jmp 0x6cbb
movq %rax, %rdi
callq 0x7125
jmp 0x6b9e
movq %rdx, %rbx
movq %rax, %r14
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x6bb8
callq 0x52f0
movq 0x98(%rsp), %rdi
leaq 0xa8(%rsp), %rax
cmpq %rax, %rdi
je 0x6bd2
callq 0x52f0
movq 0x70(%rsp), %rdi
leaq 0x80(%rsp), %rax
cmpq %rax, %rdi
je 0x6be9
callq 0x52f0
movq 0xe3d8(%rip), %rax      # 0x14fc8
movq (%rax), %rcx
movq 0x8(%rax), %rax
leaq 0x1d8(%rsp), %rdi
movq %rcx, -0x10(%rdi)
movq -0x18(%rcx), %rcx
movq %rax, 0x1c8(%rsp,%rcx)
movq $0x0, -0x8(%rdi)
callq 0x5100
leaq 0x140(%rsp), %rdi
callq 0x707c
leaq 0x390(%rsp), %rdi
callq 0x5100
leaq 0x328(%rsp), %rdi
callq 0x707c
leaq 0xd8(%rsp), %rdi
callq 0xb8c4
movq 0x110(%rsp), %rdi
testq %rdi, %rdi
je 0x6c62
callq 0x8d2e
leaq 0x2e0(%rsp), %rdi
callq 0x9f42
leaq 0x30(%rsp), %rdi
callq 0x70b4
leaq 0x1b0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6c8f
callq 0x52f0
leaq 0x130(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6ca5
callq 0x52f0
leaq 0xc8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6cbb
callq 0x52f0
cmpl $0x1, %ebx
jne 0x6d26
movq %r14, %rdi
callq 0x5160
movq %rax, %rbx
movq 0xe2de(%rip), %rdi      # 0x14fb0
leaq 0x7451(%rip), %rsi      # 0xe12a
movl $0x7, %edx
callq 0x5350
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x10(%rax)
movq 0xe2bd(%rip), %rdi      # 0x14fb0
movq %rax, %rsi
callq 0x5310
leaq 0x73fe(%rip), %rsi      # 0xe100
movl $0x1, %edx
movq %rax, %rdi
callq 0x5350
callq 0x54f0
movl $0x1, %ebx
jmp 0x69df
movq %rax, %r14
callq 0x54f0
movq %r14, %rdi
callq 0x5540
jmp 0x6b94
nop