// File: /workspace/github_cpp_makefile_star2_O1/brianbbsu[P]TCP-Ping/src/client.cpp
// Function: pinger(target&, int, int, int, int)
void pinger(target &tg, int target_id, int num, int tout, int twait){
    std::string domain = tg.host;
    std::string ip = domain_to_ip(domain);
    if(ip == "")return logger::log_error("Cannot resolve host: " + domain, target_id);
    else tg.ip = ip;
    logger::log_info("Start pinging " + tg.to_string(0) + " (" + ip + ")", target_id);

    sockaddr_in addr;
    addr.sin_family = AF_INET;
    addr.sin_port = htons(tg.port);
    addr.sin_addr.s_addr = inet_addr(tg.ip.c_str());

    while(1)
    {
        int fd;
        if((fd = socket(AF_INET, SOCK_STREAM | SOCK_NONBLOCK, 0)) < 0)return logger::log_error("Failed to creat socket!", target_id);

        fd_set write_fd;
        FD_ZERO(&write_fd);
        FD_SET(fd, &write_fd);
        timeval timeout;
        timeout.tv_sec = (tout / 1000);
        timeout.tv_usec = (tout % 1000) * 1000;

        auto start = std::chrono::steady_clock::now();
        int con_ret = connect(fd, (struct sockaddr*) &addr, sizeof addr);
        tg.ping_send += 1;
        if(con_ret != 0 && errno != EINPROGRESS)
            return close_socket(fd), logger::log_error("Failed to connect to target '" + tg.to_string() + "'", target_id);
        int sel_ret = select(fd + 1, NULL, &write_fd, NULL, &timeout);
        auto end = std::chrono::steady_clock::now();
        
        if(sel_ret == -1)
            return close_socket(fd), logger::log_error("Error occurs when connecting to target '" + tg.to_string() + "'", target_id);
        
        double delta = std::chrono::duration_cast<std::chrono::microseconds>(end - start).count() / 1000.0;
        if(sel_ret == 0 || delta > double(tout))logger::log_info("timeout when connecting to " + tg.to_string(), target_id);
        else{
            char delta_str[20];
            memset(delta_str, 0, sizeof(delta_str));
            sprintf(delta_str, "%0.2f", delta);
            logger::log_info("recv from " + tg.to_string() + ", RTT = " + std::string(delta_str) + " msec", target_id);
            tg.pong_recv += 1;
            tg.rtt_tt += delta;
        }

        close_socket(fd);

        if(num == 1)break;
        else if(num > 1)num --;
        std::this_thread::sleep_for(std::chrono::milliseconds(twait));
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x2f8, %rsp            # imm = 0x2F8
movl %r8d, 0x5c(%rsp)
movl %ecx, %ebp
movl %edx, 0x4c(%rsp)
movl %esi, 0x4(%rsp)
movq %rdi, %r15
leaq 0x170(%rsp), %rax
movq %rax, -0x10(%rax)
movq (%rdi), %rsi
movq 0x8(%rdi), %rdx
addq %rsi, %rdx
leaq 0x160(%rsp), %r14
movq %r14, %rdi
callq 0x965a
leaq 0x220(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%r14), %rsi
movq 0x8(%r14), %rdx
addq %rsi, %rdx
leaq 0x210(%rsp), %rdi
callq 0x965a
leaq 0x140(%rsp), %rdi
leaq 0x210(%rsp), %rsi
callq 0x5bec
movq 0x210(%rsp), %rdi
cmpq %r12, %rdi
je 0x66b5
movq 0x220(%rsp), %rsi
incq %rsi
callq 0x5360
leaq 0x8b63(%rip), %rsi      # 0xf21f
leaq 0x140(%rsp), %rdi
callq 0x50f0
testl %eax, %eax
je 0x6736
leaq 0x28(%r15), %rdi
leaq 0x140(%rsp), %rsi
callq 0x51b0
leaq 0x60(%rsp), %rdi
movq %r15, %rsi
xorl %edx, %edx
callq 0x86a0
leaq 0x89f8(%rip), %rcx      # 0xf0ec
leaq 0x60(%rsp), %rdi
movl $0xe, %r8d
xorl %esi, %esi
xorl %edx, %edx
callq 0x53c0
leaq 0x38(%rsp), %rsi
movq %rsi, -0x10(%rsi)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x67dc
movq %rdx, 0x28(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x38(%rsp)
jmp 0x67e4
leaq 0x8999(%rip), %rsi      # 0xf0d6
leaq 0x240(%rsp), %rdi
leaq 0x160(%rsp), %rdx
callq 0x84cf
leaq 0x240(%rsp), %rdi
movl 0x4(%rsp), %esi
callq 0xe839
leaq 0x250(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6784
movq 0x250(%rsp), %rsi
incq %rsi
callq 0x5360
leaq 0x150(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x67a5
movq 0x150(%rsp), %rsi
incq %rsi
callq 0x5360
movq 0x160(%rsp), %rdi
leaq 0x170(%rsp), %rax
cmpq %rax, %rdi
je 0x67ca
movq 0x170(%rsp), %rsi
incq %rsi
callq 0x5360
addq $0x2f8, %rsp            # imm = 0x2F8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movupd (%rcx), %xmm0
movupd %xmm0, (%rsi)
movq 0x8(%rax), %rdx
leaq 0x28(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x88f4(%rip), %rsi      # 0xf0fb
callq 0x5660
leaq 0x18(%rsp), %r13
movq %r13, -0x10(%r13)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x6833
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x683d
movupd (%rcx), %xmm0
movupd %xmm0, (%r13)
movq 0x8(%rax), %rdx
leaq 0x8(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x140(%rsp), %rsi
movq 0x148(%rsp), %rdx
callq 0x5110
leaq 0x270(%rsp), %r14
movq %r14, -0x10(%r14)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x689e
movq %rdx, 0x260(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x270(%rsp)
jmp 0x68a7
movupd (%rcx), %xmm0
movupd %xmm0, (%r14)
movq 0x8(%rax), %rdx
leaq 0x260(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x8e55(%rip), %rsi      # 0xf722
callq 0x5660
leaq 0x1e0(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x6903
movq %rdx, 0x1d0(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x1e0(%rsp)
jmp 0x690d
movupd (%rcx), %xmm0
movupd %xmm0, (%r12)
movq 0x8(%rax), %rdx
leaq 0x1d0(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movl 0x4(%rsp), %esi
callq 0xe6e4
movq 0x1d0(%rsp), %rdi
cmpq %r12, %rdi
je 0x6952
movq 0x1e0(%rsp), %rsi
incq %rsi
callq 0x5360
movq 0x260(%rsp), %rdi
cmpq %r14, %rdi
je 0x696f
movq 0x270(%rsp), %rsi
incq %rsi
callq 0x5360
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
leaq 0x38(%rsp), %r14
je 0x698b
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x5360
movq 0x28(%rsp), %rdi
cmpq %r14, %rdi
je 0x69a2
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x5360
leaq 0x70(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x69bd
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x5360
leaq 0x2e8(%rsp), %r12
movw $0x2, (%r12)
movzwl 0x20(%r15), %eax
rolw $0x8, %ax
movw %ax, 0x2(%r12)
movq %r15, 0x50(%rsp)
movq 0x28(%r15), %rdi
callq 0x5350
movl %eax, 0x4(%r12)
movslq %ebp, %rax
imulq $0x10624dd3, %rax, %rcx # imm = 0x10624DD3
movq %rcx, %rdx
shrq $0x3f, %rdx
sarq $0x26, %rcx
addl %edx, %ecx
movslq %ecx, %rcx
xorps %xmm0, %xmm0
cvtsi2sd %eax, %xmm0
movsd %xmm0, 0x1b0(%rsp)
movq %rcx, 0x1c8(%rsp)
imull $0x3e8, %ecx, %ecx      # imm = 0x3E8
subl %ecx, %eax
imull $0x3e8, %eax, %eax      # imm = 0x3E8
cltq
movq %rax, 0x1c0(%rsp)
leaq 0xf0(%rsp), %r12
movslq 0x5c(%rsp), %rcx
movq %rcx, %rax
shrq $0x3, %rax
movabsq $0x20c49ba5e353f7cf, %rdx # imm = 0x20C49BA5E353F7CF
mulq %rdx
shrq $0x4, %rdx
movq %rdx, 0x1a8(%rsp)
imulq $-0x3e8, %rdx, %rax     # imm = 0xFC18
addq %rcx, %rax
imulq $0xf4240, %rax, %rax    # imm = 0xF4240
movq %rax, 0x1a0(%rsp)
leaq 0xc0(%rsp), %r13
leaq 0x8(%rsp), %r15
movl $0x2, %edi
movl $0x801, %esi            # imm = 0x801
xorl %edx, %edx
callq 0x50d0
testl %eax, %eax
js 0x6c78
movl %eax, %ebp
xorpd %xmm0, %xmm0
movapd %xmm0, 0x2d0(%rsp)
movapd %xmm0, 0x2c0(%rsp)
movapd %xmm0, 0x2b0(%rsp)
movapd %xmm0, 0x2a0(%rsp)
movapd %xmm0, 0x290(%rsp)
movapd %xmm0, 0x280(%rsp)
movapd %xmm0, 0x270(%rsp)
movapd %xmm0, 0x260(%rsp)
movl $0x1, %eax
movl %ebp, %ecx
shlq %cl, %rax
movl %ebp, %ecx
shrl $0x6, %ecx
orq %rax, 0x260(%rsp,%rcx,8)
movq 0x1c8(%rsp), %rax
movq %rax, 0x230(%rsp)
movq 0x1c0(%rsp), %rax
movq %rax, 0x238(%rsp)
callq 0x5490
movq %rax, %r13
movl %ebp, %edi
leaq 0x2e8(%rsp), %rsi
movl $0x10, %edx
callq 0x52c0
movq 0x50(%rsp), %rcx
incl 0x48(%rcx)
testl %eax, %eax
je 0x6b5f
callq 0x5050
cmpl $0x73, (%rax)
jne 0x6cc8
movl %ebp, %edi
incl %edi
xorl %esi, %esi
leaq 0x260(%rsp), %rdx
xorl %ecx, %ecx
leaq 0x230(%rsp), %r8
callq 0x5310
movl %eax, %r14d
callq 0x5490
cmpl $-0x1, %r14d
je 0x6d42
subq %r13, %rax
movabsq $0x20c49ba5e353f7cf, %rcx # imm = 0x20C49BA5E353F7CF
imulq %rcx
movq %rdx, %rax
shrq $0x3f, %rax
sarq $0x7, %rdx
addq %rax, %rdx
cvtsi2sd %rdx, %xmm1
divsd 0x8467(%rip), %xmm1     # 0xf020
testl %r14d, %r14d
je 0x6dc1
ucomisd 0x1b0(%rsp), %xmm1
ja 0x6dc1
xorpd %xmm0, %xmm0
movapd %xmm0, 0x180(%rsp)
movl $0x0, 0x190(%rsp)
leaq 0x180(%rsp), %rdi
leaq 0x8581(%rip), %rsi      # 0xf179
movsd %xmm1, 0x1b8(%rsp)
movapd %xmm1, %xmm0
movb $0x1, %al
callq 0x5090
leaq 0x1f0(%rsp), %rbx
movq %rbx, %rdi
movq 0x50(%rsp), %rsi
movl $0x1, %edx
callq 0x86a0
leaq 0x38(%rsp), %r14
movl $0xa, %r8d
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
leaq 0x8540(%rip), %rcx      # 0xf17f
callq 0x53c0
leaq 0x18(%rsp), %r13
leaq 0x70(%rsp), %rsi
movq %rsi, 0x60(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x704f
movq %rdx, 0x60(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x70(%rsp)
jmp 0x7057
leaq 0xd0(%rsp), %rbp
movq %rbp, 0xc0(%rsp)
movq %r13, %rdi
leaq 0x846c(%rip), %rsi      # 0xf0fe
leaq 0x847c(%rip), %rdx      # 0xf115
callq 0x96ea
movq %r13, %rdi
movl 0x4(%rsp), %esi
callq 0xe839
movq 0xc0(%rsp), %rdi
cmpq %rbp, %rdi
je 0x7322
movq 0xd0(%rsp), %rsi
jmp 0x6fc5
movl %ebp, %edi
movl $0x2, %esi
callq 0x54b0
movl %ebp, %edi
callq 0x5680
leaq 0x28(%rsp), %r13
movq %r13, %rdi
movq 0x50(%rsp), %rsi
movl $0x1, %edx
callq 0x86a0
movl $0x1d, %r8d
movq %r13, %rdi
xorl %esi, %esi
xorl %edx, %edx
leaq 0x8410(%rip), %rcx      # 0xf116
callq 0x53c0
leaq 0x18(%rsp), %r13
leaq 0x130(%rsp), %rbp
movq %r13, 0x8(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x6e34
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x6e3e
movl %ebp, %edi
movl $0x2, %esi
callq 0x54b0
movl %ebp, %edi
callq 0x5680
leaq 0x28(%rsp), %rbx
movq %rbx, %rdi
movq 0x50(%rsp), %rsi
movl $0x1, %edx
callq 0x86a0
leaq 0x38(%rsp), %r14
leaq 0x18(%rsp), %r13
leaq 0x110(%rsp), %rbp
movl $0x28, %r8d
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
leaq 0x83a2(%rip), %rcx      # 0xf134
callq 0x53c0
movq %r13, 0x8(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x6ee4
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x6eee
movq %r15, %rbx
movq %r15, %rdi
movq 0x50(%rsp), %rsi
movl $0x1, %edx
callq 0x86a0
leaq 0x38(%rsp), %r14
movl $0x1b, %r8d
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
leaq 0x836e(%rip), %rcx      # 0xf15d
leaq 0x18(%rsp), %r13
callq 0x53c0
leaq 0xb0(%rsp), %rsi
movq %rsi, 0xa0(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x6fd2
movq %rdx, 0xa0(%rsp)
movq (%rcx), %rdx
movq %rdx, 0xb0(%rsp)
jmp 0x6fda
movupd (%rcx), %xmm0
movupd %xmm0, (%r13)
movq 0x8(%rax), %rdx
movq %rdx, 0x10(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq %r15, %rdi
leaq 0x8203(%rip), %rsi      # 0xf063
callq 0x5660
movq %rbp, 0x120(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x6e91
movq %rdx, 0x120(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x130(%rsp)
jmp 0x6e9a
movupd (%rcx), %xmm0
movupd %xmm0, (%rbp)
movq 0x8(%rax), %rdx
movq %rdx, 0x128(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x120(%rsp), %rdi
movl 0x4(%rsp), %esi
callq 0xe839
movq 0x120(%rsp), %rdi
cmpq %rbp, %rdi
je 0x6f93
movq 0x130(%rsp), %rsi
jmp 0x6f8b
movupd (%rcx), %xmm0
movupd %xmm0, (%r13)
movq 0x8(%rax), %rdx
movq %rdx, 0x10(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq %r15, %rdi
leaq 0x8153(%rip), %rsi      # 0xf063
callq 0x5660
movq %rbp, 0x100(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x6f41
movq %rdx, 0x100(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x110(%rsp)
jmp 0x6f4a
movupd (%rcx), %xmm0
movupd %xmm0, (%rbp)
movq 0x8(%rax), %rdx
movq %rdx, 0x108(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x100(%rsp), %rdi
movl 0x4(%rsp), %esi
callq 0xe839
movq 0x100(%rsp), %rdi
cmpq %rbp, %rdi
je 0x6f93
movq 0x110(%rsp), %rsi
incq %rsi
callq 0x5360
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0x6faa
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x5360
movq 0x28(%rsp), %rdi
cmpq %r14, %rdi
leaq 0xc0(%rsp), %r13
je 0x7322
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x5360
jmp 0x7322
movupd (%rcx), %xmm0
movupd %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, 0xa8(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0xa0(%rsp), %rdi
movl 0x4(%rsp), %esi
callq 0xe6e4
movq 0xa0(%rsp), %rdi
leaq 0xb0(%rsp), %rax
cmpq %rax, %rdi
je 0x702b
movq 0xb0(%rsp), %rsi
incq %rsi
callq 0x5360
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0x7042
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x5360
leaq 0xc0(%rsp), %r13
jmp 0x72fe
movupd (%rcx), %xmm0
movupd %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, 0x68(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x60(%rsp), %rdi
leaq 0x810f(%rip), %rsi      # 0xf18a
callq 0x5660
movq %r14, 0x28(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x70a3
movq %rdx, 0x28(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x38(%rsp)
jmp 0x70ac
movupd (%rcx), %xmm0
movupd %xmm0, (%r14)
movq 0x8(%rax), %rdx
movq %rdx, 0x30(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x90(%rsp), %rax
movq %rax, 0x80(%rsp)
leaq 0x180(%rsp), %rbx
movq %rbx, %rdi
callq 0x5150
leaq (%rsp,%rax), %rdx
addq $0x180, %rdx            # imm = 0x180
leaq 0x80(%rsp), %rdi
movq %rbx, %rsi
callq 0x96ea
movq 0x28(%rsp), %rcx
movl $0xf, %esi
cmpq %r14, %rcx
je 0x7113
movq 0x38(%rsp), %rsi
movq 0x30(%rsp), %r8
movq 0x88(%rsp), %rdx
leaq (%rdx,%r8), %rax
cmpq %rsi, %rax
jbe 0x714d
movl $0xf, %esi
leaq 0x90(%rsp), %rdi
cmpq %rdi, 0x80(%rsp)
je 0x7148
movq 0x90(%rsp), %rsi
cmpq %rsi, %rax
jbe 0x7161
movq 0x80(%rsp), %rsi
leaq 0x28(%rsp), %rdi
callq 0x5110
jmp 0x7172
leaq 0x80(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x53c0
movq %r13, 0x8(%rsp)
movq (%rax), %rdx
leaq 0x10(%rax), %rcx
cmpq %rcx, %rdx
je 0x7192
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x719c
movupd (%rcx), %xmm0
movupd %xmm0, (%r13)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0x10(%rsp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
movq %r15, %rdi
leaq 0x7fd0(%rip), %rsi      # 0xf193
callq 0x5660
movq %r12, 0xe0(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x71f4
movq %rdx, 0xe0(%rsp)
movq (%rcx), %rdx
movq %rdx, 0xf0(%rsp)
jmp 0x71fe
movupd (%rcx), %xmm0
movupd %xmm0, (%r12)
movq 0x8(%rax), %rdx
movq %rdx, 0xe8(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0xe0(%rsp), %rdi
movl 0x4(%rsp), %esi
callq 0xe6e4
movq 0xe0(%rsp), %rdi
cmpq %r12, %rdi
je 0x7247
movq 0xf0(%rsp), %rsi
incq %rsi
callq 0x5360
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0x725e
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x5360
movq 0x80(%rsp), %rdi
leaq 0x90(%rsp), %rax
cmpq %rax, %rdi
leaq 0x70(%rsp), %rbx
leaq 0xc0(%rsp), %r13
je 0x7290
movq 0x90(%rsp), %rsi
incq %rsi
callq 0x5360
movq 0x28(%rsp), %rdi
cmpq %r14, %rdi
je 0x72a7
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x5360
movq 0x60(%rsp), %rdi
cmpq %rbx, %rdi
je 0x72be
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x5360
movq 0x1f0(%rsp), %rdi
leaq 0x200(%rsp), %rax
cmpq %rax, %rdi
je 0x72e3
movq 0x200(%rsp), %rsi
incq %rsi
callq 0x5360
movq 0x50(%rsp), %rax
incl 0x4c(%rax)
movsd 0x1b8(%rsp), %xmm0
addsd 0x50(%rax), %xmm0
movsd %xmm0, 0x50(%rax)
movl %ebp, %edi
movl $0x2, %esi
callq 0x54b0
movl %ebp, %edi
callq 0x5680
movl 0x4c(%rsp), %ecx
cmpl $0x1, %ecx
jne 0x7332
movl $0x1, 0x4c(%rsp)
xorl %ebp, %ebp
testb %bpl, %bpl
jne 0x6a8b
jmp 0x6784
setg %al
movzbl %al, %eax
subl %eax, %ecx
movl %ecx, 0x4c(%rsp)
movb $0x1, %bpl
cmpl $0x0, 0x5c(%rsp)
jle 0x7324
movq 0x1a8(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0x1a0(%rsp), %rax
movq %rax, 0x10(%rsp)
movq %r15, %rdi
movq %r15, %rsi
callq 0x5100
cmpl $-0x1, %eax
jne 0x7324
callq 0x5050
cmpl $0x4, (%rax)
je 0x7362
jmp 0x7324
movq %rax, %r13
leaq 0x250(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x765a
movq 0x250(%rsp), %rsi
jmp 0x7647
movq %rax, %r13
movq 0x1d0(%rsp), %rdi
cmpq %r12, %rdi
je 0x73c8
movq 0x1e0(%rsp), %rsi
incq %rsi
callq 0x5360
jmp 0x73c8
movq %rax, %r13
movq 0x260(%rsp), %rdi
cmpq %r14, %rdi
je 0x73ea
movq 0x270(%rsp), %rsi
incq %rsi
callq 0x5360
jmp 0x73ea
movq %rax, %r13
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x740b
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x5360
jmp 0x740b
movq %rax, %r13
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x742c
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x5360
jmp 0x742c
movq %rax, %r13
leaq 0x70(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x765a
movq 0x70(%rsp), %rsi
jmp 0x7647
jmp 0x7657
jmp 0x7657
movq %rax, %r13
movq 0x210(%rsp), %rdi
cmpq %r12, %rdi
je 0x767b
movq 0x220(%rsp), %rsi
jmp 0x7673
movq %rax, %r13
jmp 0x767b
movq %rax, %r13
movq 0xa0(%rsp), %rdi
leaq 0xb0(%rsp), %rax
cmpq %rax, %rdi
je 0x74a8
movq 0xb0(%rsp), %rsi
incq %rsi
callq 0x5360
jmp 0x74a8
movq %rax, %r13
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x765a
movq 0x18(%rsp), %rsi
jmp 0x7647
jmp 0x7657
movq %rax, %r13
movq 0xe0(%rsp), %rdi
cmpq %r12, %rdi
je 0x74ef
movq 0xf0(%rsp), %rsi
incq %rsi
callq 0x5360
jmp 0x74ef
movq %rax, %r13
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x7510
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x5360
jmp 0x7510
movq %rax, %r13
movq 0x80(%rsp), %rdi
leaq 0x90(%rsp), %rax
cmpq %rax, %rdi
je 0x753a
movq 0x90(%rsp), %rsi
incq %rsi
callq 0x5360
jmp 0x753a
movq %rax, %r13
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x755b
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x5360
jmp 0x755b
movq %rax, %r13
movq 0x60(%rsp), %rdi
leaq 0x70(%rsp), %rax
cmpq %rax, %rdi
je 0x757c
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x5360
jmp 0x757c
movq %rax, %r13
movq 0x1f0(%rsp), %rdi
leaq 0x200(%rsp), %rax
cmpq %rax, %rdi
je 0x765a
movq 0x200(%rsp), %rsi
jmp 0x7647
jmp 0x7657
movq %rax, %r13
movq 0x100(%rsp), %rdi
cmpq %rbp, %rdi
je 0x75f4
movq 0x110(%rsp), %rsi
jmp 0x75e7
jmp 0x75f1
jmp 0x7612
jmp 0x7657
jmp 0x7657
movq %rax, %r13
movq 0x120(%rsp), %rdi
cmpq %rbp, %rdi
je 0x75f4
movq 0x130(%rsp), %rsi
incq %rsi
callq 0x5360
jmp 0x75f4
movq %rax, %r13
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x7615
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x5360
jmp 0x7615
movq %rax, %r13
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x765a
movq 0x38(%rsp), %rsi
jmp 0x7647
jmp 0x7657
jmp 0x7657
movq %rax, %r13
movq 0xc0(%rsp), %rdi
cmpq %rbp, %rdi
je 0x765a
movq 0xd0(%rsp), %rsi
incq %rsi
callq 0x5360
jmp 0x765a
jmp 0x7657
jmp 0x7657
jmp 0x7657
movq %rax, %r13
leaq 0x150(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x767b
movq 0x150(%rsp), %rsi
incq %rsi
callq 0x5360
movq 0x160(%rsp), %rdi
leaq 0x170(%rsp), %rax
cmpq %rax, %rdi
je 0x76a0
movq 0x170(%rsp), %rsi
incq %rsi
callq 0x5360
movq %r13, %rdi
callq 0x55f0