// File: /workspace/github_cpp_makefile_star2_O3/sharmaeklavya2[P]ddos-on-anycast/src/lib/place_victims.cpp
// Function: place_victims_using_toposort(Network const&, int, std::vector<int, std::allocator<int>>&, int, int, double)
void place_victims_using_toposort(const Network& network, int n_victims, ivec& victim_list, int seed, int tries, double max_noise) {
    int n = network.size();
    Graph graph(0);
    make_network_dag(network, graph);
    ivec rtopolist;
    rtoposort(graph, rtopolist);
    ivec sources, sinks;
    graph.get_sources_and_sinks(sources, sinks);
    // cerr << "rtopolist: " << rtopolist << endl;

    // compute score
    vector<double> score(n, 0.0);
    for(int u: rtopolist) {
        if(graph.succs(u).empty()) {
            // u is a leaf
            score[u] = 1;
        }
        int m = graph.preds(u).size();
        for(int v: graph.preds(u)) {
            score[v] += score[u] / m;
        }
    }

    // cerr << "score: " << score << endl;
    rng_t rng(seed);
    ivec victims(n, 0);

    // divide victims among sources
    vector<double> weights;
    ivec xvec, best_xvec;
    weights.reserve(sources.size());
    for(int u: sources) {
        weights.push_back(score[u]);
    }
    noisy_normalize(weights, n_victims, max_noise, rng);
    distribute(weights, n_victims, xvec, rng);
    int s = sources.size();
    for(int i=0; i<s; ++i) {
        int u = sources[i];
        victims[u] = xvec[i];
    }
    weights.clear();
    xvec.clear();

    // divide victims
    int dijkstra_calls = 0;
    std::reverse(rtopolist.begin(), rtopolist.end());
    for(int u: rtopolist) {
        if(victims[u] > 0) {
            const ivec& succs = graph.succs(u);
            int s = succs.size();
            if(s > 0) {
                weights.reserve(s);
                for(int v: succs) {
                    weights.push_back(score[v] / graph.preds(v).size());
                }
                noisy_normalize(weights, victims[u], max_noise, rng);
                if(!network.is_virtual(u) || victims[u] == 1 || tries == 1) {
                    distribute(weights, victims[u], best_xvec, rng);
                }
                else {
                    double minmaxload = 1e50;
                    for(int i=0; i<tries; ++i) {
                        distribute(weights, victims[u], xvec, rng);
                        bool found_zero=false, found_one=false;
                        for(int x: xvec) {
                            if(x == 0) {found_zero = true;}
                            else if(x == 1) {found_one = true;}
                        }
                        bool best = !(found_one && found_zero);
                        if(!best) {
                            std::map<int, int> local_id;
                            for(int i=0; i<s; ++i) {
                                local_id[succs[i]] = i;
                            }
                            // cerr << "local_id" << local_id << endl;
                            vector<ivec> adj(s);
                            PQ pq;
                            ivec target(s, -1), target_dist(s, -1);
                            vector<bool> visited(s, false);
                            for(int i=0; i<s; ++i) {
                                int v = succs[i];
                                adj[i].reserve(network.in_nbrs[v].size());
                                for(int v2: network.in_nbrs[v]) {
                                    adj[i].push_back(local_id[v2]);
                                }
                                if(xvec[i] > 0) {
                                    pq.emplace(0, i);
                                    target[i] = i;
                                    target_dist[i] = 0;
                                }
                            }
                            dijkstra(adj, pq, target, target_dist, visited);
                            dijkstra_calls++;
                            vector<double> load(s, 0.0);
                            for(int i=0; i<s; ++i) {
                                load[target[i]] += weights[i];
                            }
                            double maxload = 0;
                            for(int i=0; i<s; ++i) {
                                if(xvec[i] > 0) {
                                    load[i] /= xvec[i];
                                    maxload = std::max(maxload, load[i]);
                                }
                                else if(load[i] != 0.0) {
                                    fprintf(stderr, "xvec[%d] = 0 but load[%d] = %lf\n", i, i, load[i]);
                                }
                            }
                            /*
                            print_icont(stderr, xvec, ", ", "xvec: [", "]\n");
                            cerr << "target: " << target << endl;
                            fprintf(stderr, "maxload: %lf\n", maxload);
                            */
                            if(maxload < minmaxload) {
                                best = true;
                                minmaxload = maxload;
                            }
                        }
                        if(best) {
                            std::swap(xvec, best_xvec);
                        }
                        xvec.clear();
                    }
                }
                for(int i=0; i<s; ++i) {
                    int v = succs[i];
                    victims[v] += best_xvec[i];
                }
                weights.clear();
                best_xvec.clear();
            }
        }
    }

    // fprintf(stderr, "dijkstra was called %d times\n", dijkstra_calls);
    victim_list.reserve(n_victims);
    for(int u: network.depthwise.back()) {
        if(victims[u] > 0 && !network.is_virtual(u)) {
            victim_list.push_back(u);
        }
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x268, %rsp            # imm = 0x268
movsd %xmm0, 0xf0(%rsp)
movl %r8d, 0x3c(%rsp)
movl %ecx, %ebx
movq %rdx, %r12
movl %esi, %ebp
movq %rdi, %r13
movq 0x20(%rdi), %r14
subq 0x18(%rdi), %r14
leaq 0x1f8(%rsp), %r15
movq %r15, %rdi
xorl %esi, %esi
callq 0xa34e
movq %r13, %rdi
movq %r15, %rsi
callq 0x8e5f
xorpd %xmm0, %xmm0
leaq 0x130(%rsp), %rsi
movapd %xmm0, (%rsi)
movq $0x0, 0x10(%rsi)
leaq 0x1f8(%rsp), %rdi
callq 0xb6f9
leaq 0xd0(%rsp), %rsi
xorpd %xmm0, %xmm0
movapd %xmm0, (%rsi)
xorl %eax, %eax
movq %rax, 0x10(%rsi)
leaq 0x250(%rsp), %rdx
movq %rax, 0x10(%rdx)
movapd %xmm0, (%rdx)
leaq 0x1f8(%rsp), %rdi
callq 0xb4b0
shrq $0x2, %r14
movslq %r14d, %r15
leaq 0x150(%rsp), %rdx
movq $0x0, (%rdx)
leaq 0x1c8(%rsp), %rdi
leaq 0x108(%rsp), %rcx
movq %r15, %rsi
callq 0x6766
movq 0x130(%rsp), %rax
movq 0x138(%rsp), %rcx
cmpq %rcx, %rax
je 0x9620
movq 0x200(%rsp), %rdx
movq 0x218(%rsp), %rsi
movq 0x1c8(%rsp), %rdi
movabsq $0x3ff0000000000000, %r8 # imm = 0x3FF0000000000000
movslq (%rax), %r9
leaq (%r9,%r9,2), %r11
movq (%rsi,%r11,8), %r10
cmpq 0x8(%rsi,%r11,8), %r10
jne 0x95d5
movq %r8, (%rdi,%r9,8)
movq (%rdx,%r11,8), %r10
movq 0x8(%rdx,%r11,8), %r11
cmpq %r11, %r10
je 0x9617
movq %r11, %r14
subq %r10, %r14
shrq $0x2, %r14
xorps %xmm0, %xmm0
cvtsi2sd %r14d, %xmm0
movslq (%r10), %r14
movsd (%rdi,%r9,8), %xmm1
divsd %xmm0, %xmm1
addsd (%rdi,%r14,8), %xmm1
movsd %xmm1, (%rdi,%r14,8)
addq $0x4, %r10
cmpq %r11, %r10
jne 0x95f5
addq $0x4, %rax
cmpq %rcx, %rax
jne 0x95bf
movslq %ebx, %rcx
movabsq $0x200000005, %rdx      # imm = 0x200000005
movq %rcx, %rax
mulq %rdx
movq %rcx, %rax
subq %rdx, %rax
shrq %rax
addq %rdx, %rax
shrq $0x1e, %rax
movq %rax, %rdx
shlq $0x1f, %rdx
subq %rdx, %rax
leaq (%rcx,%rax), %rdx
cmpq $0x1, %rdx
adcq %rcx, %rax
movq %rax, 0x68(%rsp)
leaq 0x150(%rsp), %rdx
movl $0x0, (%rdx)
leaq 0xb8(%rsp), %rdi
leaq 0x108(%rsp), %rcx
movq %r15, %rsi
callq 0x3b06
xorl %eax, %eax
movq %rsp, %rdi
movq %rax, 0x10(%rdi)
xorpd %xmm0, %xmm0
movapd %xmm0, (%rdi)
movq %rax, 0x30(%rsp)
movapd %xmm0, 0x20(%rsp)
movq %rax, 0x50(%rsp)
movapd %xmm0, 0x40(%rsp)
movq 0xd8(%rsp), %rsi
subq 0xd0(%rsp), %rsi
sarq $0x2, %rsi
callq 0x6a1a
movq 0xd0(%rsp), %r14
movq 0xd8(%rsp), %r15
cmpq %r15, %r14
je 0x971a
movq %rsp, %rbx
movslq (%r14), %rdx
shlq $0x3, %rdx
addq 0x1c8(%rsp), %rdx
movq 0x8(%rsp), %rsi
cmpq 0x10(%rsp), %rsi
je 0x9709
movsd (%rdx), %xmm0
movsd %xmm0, (%rsi)
addq $0x8, %rsi
movq %rsi, 0x8(%rsp)
jmp 0x9711
movq %rbx, %rdi
callq 0x7780
addq $0x4, %r14
cmpq %r15, %r14
jne 0x96db
movq %rsp, %rdi
leaq 0x68(%rsp), %rdx
movl %ebp, %esi
movsd 0xf0(%rsp), %xmm0
callq 0x8fd4
movq %rsp, %rdi
leaq 0x20(%rsp), %rdx
leaq 0x68(%rsp), %rcx
movl %ebp, %esi
callq 0x90d4
movq 0xd0(%rsp), %rax
movq 0xd8(%rsp), %rcx
subq %rax, %rcx
shrq $0x2, %rcx
testl %ecx, %ecx
jle 0x978a
movq 0x20(%rsp), %rdx
movq 0xb8(%rsp), %rsi
andl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
xorl %edi, %edi
movslq (%rax,%rdi,4), %r8
movl (%rdx,%rdi,4), %r9d
movl %r9d, (%rsi,%r8,4)
incq %rdi
cmpq %rdi, %rcx
jne 0x9776
movq (%rsp), %rax
cmpq %rax, 0x8(%rsp)
je 0x979a
movq %rax, 0x8(%rsp)
movl %ebp, 0xb0(%rsp)
movq %r12, 0x180(%rsp)
movq 0x20(%rsp), %rax
cmpq %rax, 0x28(%rsp)
je 0x97ba
movq %rax, 0x28(%rsp)
movq 0x130(%rsp), %rdi
movq 0x138(%rsp), %r8
cmpq %r8, %rdi
setne %cl
leaq -0x4(%r8), %rax
cmpq %rdi, %rax
seta %dl
andb %cl, %dl
cmpb $0x1, %dl
jne 0x97ff
leaq 0x4(%rdi), %rcx
movl -0x4(%rcx), %edx
movl (%rax), %esi
movl %esi, -0x4(%rcx)
movl %edx, (%rax)
addq $-0x4, %rax
leaq 0x4(%rcx), %rdx
cmpq %rax, %rcx
movq %rdx, %rcx
jb 0x97e5
cmpq %r8, %rdi
je 0x9f26
leaq 0x150(%rsp), %rbx
leaq 0xa8(%rsp), %rbp
movq %r8, 0x188(%rsp)
movslq (%rdi), %rcx
movq 0xb8(%rsp), %rax
cmpl $0x0, (%rax,%rcx,4)
jle 0x9f19
movq 0x218(%rsp), %r14
leaq (%rcx,%rcx,2), %r15
movq 0x8(%r14,%r15,8), %rax
subq (%r14,%r15,8), %rax
sarq $0x2, %rax
testl %eax, %eax
jle 0x9f19
movq %rcx, 0x90(%rsp)
movq %rdi, 0x190(%rsp)
movq %rax, 0x98(%rsp)
movl %eax, %esi
andl $0x7fffffff, %esi       # imm = 0x7FFFFFFF
movq %rsp, %rdi
movq %rsi, 0x100(%rsp)
callq 0x6a1a
leaq (%r14,%r15,8), %rax
movq (%rax), %r15
movq %rax, 0xa0(%rsp)
movq 0x8(%rax), %r12
cmpq %r12, %r15
je 0x9928
movslq (%r15), %rax
movq 0x1c8(%rsp), %rcx
movsd (%rcx,%rax,8), %xmm0
movq 0x200(%rsp), %rcx
leaq (%rax,%rax,2), %rax
movq 0x8(%rcx,%rax,8), %rdx
subq (%rcx,%rax,8), %rdx
sarq $0x2, %rdx
movq %rdx, %xmm1
punpckldq 0x2c18(%rip), %xmm1 # xmm1 = xmm1[0],mem[0],xmm1[1],mem[1]
subpd 0x2c20(%rip), %xmm1     # 0xc500
movapd %xmm1, %xmm2
unpckhpd %xmm1, %xmm2            # xmm2 = xmm2[1],xmm1[1]
addsd %xmm1, %xmm2
divsd %xmm2, %xmm0
movsd %xmm0, 0x150(%rsp)
movq 0x8(%rsp), %rsi
cmpq 0x10(%rsp), %rsi
je 0x9914
movsd %xmm0, (%rsi)
addq $0x8, %rsi
movq %rsi, 0x8(%rsp)
jmp 0x991f
movq %rsp, %rdi
movq %rbx, %rdx
callq 0xb1de
addq $0x4, %r15
jmp 0x9899
movq 0xb8(%rsp), %rax
movq 0x90(%rsp), %rcx
movl (%rax,%rcx,4), %esi
movq %rsp, %rdi
movsd 0xf0(%rsp), %xmm0
leaq 0x68(%rsp), %r15
movq %r15, %rdx
callq 0x8fd4
movl 0x3c(%rsp), %r14d
leaq 0x20(%rsp), %r12
movq 0x18(%r13), %rax
movq 0x90(%rsp), %rcx
cmpl $0x0, (%rax,%rcx,4)
movq 0xb8(%rsp), %rax
movl (%rax,%rcx,4), %esi
jle 0x9e9b
cmpl $0x1, %r14d
je 0x9e9b
cmpl $0x1, %esi
je 0x9e9b
testl %r14d, %r14d
jle 0x9eab
movq 0x98(%rsp), %rax
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
movq %rax, 0xf8(%rsp)
xorl %ecx, %ecx
movsd 0x2d46(%rip), %xmm0     # 0xc700
movsd %xmm0, 0x60(%rsp)
movl %ecx, 0xb4(%rsp)
movq 0xb8(%rsp), %rax
movq 0x90(%rsp), %rcx
movl (%rax,%rcx,4), %esi
movq %rsp, %rdi
movq %r12, %rdx
movq %r15, %rcx
callq 0x90d4
movq 0x20(%rsp), %rax
movq 0x28(%rsp), %rcx
cmpq %rcx, %rax
je 0x9d7e
xorl %edx, %edx
xorl %esi, %esi
movq %rax, %rdi
movl (%rdi), %r8d
testl %r8d, %r8d
je 0x9a14
cmpl $0x1, %r8d
jne 0x9a17
movb $0x1, %dl
jmp 0x9a17
movb $0x1, %sil
addq $0x4, %rdi
cmpq %rcx, %rdi
jne 0x9a02
andb %sil, %dl
testb $0x1, %dl
je 0x9d7e
movl $0x0, 0x158(%rsp)
xorl %ecx, %ecx
movq %rcx, 0x160(%rsp)
leaq 0x158(%rsp), %rax
movq %rax, 0x168(%rsp)
movq %rax, 0x170(%rsp)
movq %rcx, 0x178(%rsp)
xorl %r14d, %r14d
xorl %r12d, %r12d
movq 0x100(%rsp), %r15
movq 0xa0(%rsp), %rax
movq (%rax), %rsi
addq %r14, %rsi
movq %rbx, %rdi
callq 0xa708
movl %r12d, (%rax)
incq %r12
addq $0x4, %r14
cmpq %r12, 0xf8(%rsp)
jne 0x9a6f
leaq 0x1b0(%rsp), %rdi
movq %r15, %rsi
leaq 0x108(%rsp), %r14
movq %r14, %rdx
callq 0xa76e
xorpd %xmm0, %xmm0
movapd %xmm0, 0x230(%rsp)
movq $0x0, 0x240(%rsp)
movl $0xffffffff, 0x108(%rsp) # imm = 0xFFFFFFFF
leaq 0x198(%rsp), %rdi
movq %r15, %rsi
movq %r14, %rdx
movq %r15, %r14
leaq 0x1e0(%rsp), %r15
movq %r15, %rcx
callq 0x3b06
leaq 0x70(%rsp), %r12
movl $0xffffffff, 0x108(%rsp) # imm = 0xFFFFFFFF
movq %r15, %rdi
movq %r14, %rsi
leaq 0x108(%rsp), %rdx
movq %r12, %rcx
callq 0x3b06
movb $0x0, 0x70(%rsp)
leaq 0x108(%rsp), %rdi
movq %r14, %rsi
movq %r12, %rdx
movq %rbp, %rcx
callq 0x83fa
movl $0x0, 0x70(%rsp)
xorl %eax, %eax
cltq
movq 0xa0(%rsp), %rcx
movq (%rcx), %rcx
movslq (%rcx,%rax,4), %rcx
leaq (%rax,%rax,2), %rdi
shlq $0x3, %rdi
addq 0x1b0(%rsp), %rdi
movq 0x48(%r13), %rax
leaq (%rcx,%rcx,2), %r12
movq 0x8(%rax,%r12,8), %rsi
subq (%rax,%r12,8), %rsi
sarq $0x2, %rsi
callq 0x57a4
movq %r13, %r15
movq 0x48(%r13), %rax
movq (%rax,%r12,8), %r14
movq 0x8(%rax,%r12,8), %r13
cmpq %r13, %r14
je 0x9bea
movl (%r14), %eax
movl %eax, 0xa8(%rsp)
movslq 0x70(%rsp), %rax
leaq (%rax,%rax,2), %r12
shlq $0x3, %r12
addq 0x1b0(%rsp), %r12
movq %rbx, %rdi
movq %rbp, %rsi
callq 0xa708
movq 0x8(%r12), %rsi
cmpq 0x10(%r12), %rsi
je 0x9bd9
movl (%rax), %eax
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x8(%r12)
jmp 0x9be4
movq %r12, %rdi
movq %rax, %rdx
callq 0x3d28
addq $0x4, %r14
jmp 0x9b8f
movslq 0x70(%rsp), %rax
movq 0x20(%rsp), %rcx
cmpl $0x0, (%rcx,%rax,4)
jle 0x9c45
movl $0x0, 0xa8(%rsp)
leaq 0x230(%rsp), %rdi
movq %rbp, %rsi
leaq 0x70(%rsp), %r14
movq %r14, %rdx
callq 0x8390
movq %r15, %r13
movslq 0x70(%rsp), %rax
movq 0x198(%rsp), %rcx
movl %eax, (%rcx,%rax,4)
movq 0x1e0(%rsp), %rcx
movl $0x0, (%rcx,%rax,4)
movl 0x70(%rsp), %eax
jmp 0x9c4d
movq %r15, %r13
leaq 0x70(%rsp), %r14
incl %eax
movl %eax, 0x70(%rsp)
cmpl 0x98(%rsp), %eax
movq 0x100(%rsp), %r15
jl 0x9b44
leaq 0x1b0(%rsp), %rdi
leaq 0x230(%rsp), %rsi
leaq 0x198(%rsp), %rdx
leaq 0x1e0(%rsp), %rcx
leaq 0x108(%rsp), %r8
callq 0x931e
movq $0x0, 0xa8(%rsp)
movq %r14, %rdi
movq %r15, %rsi
movq %rbp, %rdx
leaq 0x1f(%rsp), %rcx
callq 0x6766
movq (%rsp), %rax
movq 0x198(%rsp), %rcx
movq 0x70(%rsp), %rdx
xorl %esi, %esi
xorpd %xmm2, %xmm2
movq 0xf8(%rsp), %r14
movsd (%rax,%rsi,8), %xmm0
movslq (%rcx,%rsi,4), %rdi
addsd (%rdx,%rdi,8), %xmm0
movsd %xmm0, (%rdx,%rdi,8)
incq %rsi
cmpq %rsi, %r14
jne 0x9cd3
xorpd %xmm3, %xmm3
xorl %r12d, %r12d
movq 0x20(%rsp), %rax
movl (%rax,%r12,4), %eax
testl %eax, %eax
jle 0x9d28
xorps %xmm0, %xmm0
cvtsi2sd %eax, %xmm0
movq 0x70(%rsp), %rax
movsd (%rax,%r12,8), %xmm1
divsd %xmm0, %xmm1
movsd %xmm1, (%rax,%r12,8)
maxsd %xmm3, %xmm1
movapd %xmm1, %xmm3
jmp 0x9d3b
movq 0x70(%rsp), %rax
movsd (%rax,%r12,8), %xmm0
ucomisd %xmm2, %xmm0
jne 0x9d48
jp 0x9d48
incq %r12
cmpq %r12, %r14
jne 0x9cf5
jmp 0x9de3
movq 0x7281(%rip), %rax      # 0x10fd0
movq (%rax), %rdi
leaq 0x29af(%rip), %rsi      # 0xc708
movl %r12d, %edx
movl %r12d, %ecx
movb $0x1, %al
movsd %xmm3, 0x88(%rsp)
callq 0x21b0
movsd 0x88(%rsp), %xmm3
xorpd %xmm2, %xmm2
jmp 0x9d3b
movsd 0x60(%rsp), %xmm1
movq 0x30(%rsp), %rdx
movq 0x40(%rsp), %rsi
movq 0x48(%rsp), %rdi
movq %rsi, 0x20(%rsp)
movq %rdi, 0x28(%rsp)
movq 0x50(%rsp), %r8
movq %r8, 0x30(%rsp)
movq %rax, 0x40(%rsp)
movq %rcx, 0x48(%rsp)
movq %rdx, 0x50(%rsp)
movq %rdi, %rcx
movq %rsi, %rax
movsd %xmm1, 0x60(%rsp)
cmpq %rax, %rcx
movl 0xb4(%rsp), %ecx
je 0x9dd3
movq %rax, 0x28(%rsp)
incl %ecx
cmpl %r14d, %ecx
jne 0x99c0
jmp 0x9eab
movsd %xmm3, 0x88(%rsp)
movq 0x70(%rsp), %rdi
testq %rdi, %rdi
je 0x9dfb
callq 0x2150
movq 0x108(%rsp), %rdi
testq %rdi, %rdi
movl 0x3c(%rsp), %r14d
leaq 0x68(%rsp), %r15
leaq 0x20(%rsp), %r12
je 0x9e28
callq 0x2150
movq $0x0, 0x108(%rsp)
movq 0x1e0(%rsp), %rdi
testq %rdi, %rdi
je 0x9e3a
callq 0x2150
movq 0x198(%rsp), %rdi
testq %rdi, %rdi
je 0x9e4c
callq 0x2150
movq 0x230(%rsp), %rdi
testq %rdi, %rdi
je 0x9e5e
callq 0x2150
leaq 0x1b0(%rsp), %rdi
callq 0xa7ec
movq %rbx, %rdi
callq 0xa832
movsd 0x60(%rsp), %xmm0
movsd 0x88(%rsp), %xmm1
ucomisd %xmm1, %xmm0
movq 0x20(%rsp), %rax
movq 0x28(%rsp), %rcx
ja 0x9d84
jmp 0x9dc2
movq %rsp, %rdi
leaq 0x40(%rsp), %rdx
movq %r15, %rcx
callq 0x90d4
movq 0xa0(%rsp), %rax
movq (%rax), %rax
movq 0x40(%rsp), %rcx
movq 0xb8(%rsp), %rdx
movq 0x98(%rsp), %r9
andl $0x7fffffff, %r9d       # imm = 0x7FFFFFFF
xorl %esi, %esi
movslq (%rax,%rsi,4), %rdi
movl (%rcx,%rsi,4), %r8d
addl %r8d, (%rdx,%rdi,4)
incq %rsi
cmpq %rsi, %r9
jne 0x9ed4
movq (%rsp), %rax
cmpq %rax, 0x8(%rsp)
je 0x9ef8
movq %rax, 0x8(%rsp)
movq 0x40(%rsp), %rax
cmpq %rax, 0x48(%rsp)
movq 0x190(%rsp), %rdi
movq 0x188(%rsp), %r8
je 0x9f19
movq %rax, 0x48(%rsp)
addq $0x4, %rdi
cmpq %r8, %rdi
jne 0x9820
movslq 0xb0(%rsp), %rsi
movq 0x180(%rsp), %r12
movq %r12, %rdi
callq 0x57a4
movq 0xb0(%r13), %rax
movq -0x18(%rax), %r14
movq -0x10(%rax), %r15
cmpq %r15, %r14
je 0x9fac
leaq 0x150(%rsp), %rbx
movl (%r14), %eax
movl %eax, 0x150(%rsp)
movslq %eax, %rcx
movq 0xb8(%rsp), %rdx
cmpl $0x0, (%rdx,%rcx,4)
jle 0x9fa3
movq 0x18(%r13), %rdx
cmpl $0x0, (%rdx,%rcx,4)
jg 0x9fa3
movq 0x8(%r12), %rsi
cmpq 0x10(%r12), %rsi
je 0x9f98
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x8(%r12)
jmp 0x9fa3
movq %r12, %rdi
movq %rbx, %rdx
callq 0x3d28
addq $0x4, %r14
cmpq %r15, %r14
jne 0x9f5a
movq 0x40(%rsp), %rdi
testq %rdi, %rdi
je 0x9fbb
callq 0x2150
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x9fca
callq 0x2150
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x9fd8
callq 0x2150
movq 0xb8(%rsp), %rdi
testq %rdi, %rdi
je 0x9fea
callq 0x2150
movq 0x1c8(%rsp), %rdi
testq %rdi, %rdi
je 0x9ffc
callq 0x2150
movq 0x250(%rsp), %rdi
testq %rdi, %rdi
je 0xa00e
callq 0x2150
movq 0xd0(%rsp), %rdi
testq %rdi, %rdi
je 0xa020
callq 0x2150
movq 0x130(%rsp), %rdi
testq %rdi, %rdi
je 0xa032
callq 0x2150
leaq 0x218(%rsp), %rdi
callq 0xa7ec
leaq 0x200(%rsp), %rdi
callq 0xa7ec
addq $0x268, %rsp            # imm = 0x268
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0xa0a1
movq %rax, %rbx
jmp 0xa172
jmp 0xa06a
movq %rax, %rbx
jmp 0xa184
movq %rax, %rbx
jmp 0xa1a8
movq %rax, %rbx
jmp 0xa1ba
jmp 0xa0a1
jmp 0xa0a1
jmp 0xa0a1
jmp 0xa0a1
jmp 0xa0b2
jmp 0xa0b2
jmp 0xa0ad
movq %rax, %rbx
jmp 0xa108
movq %rax, %rbx
jmp 0xa0f6
movq %rax, %rbx
jmp 0xa0e4
jmp 0xa0a1
movq %rax, %rbx
jmp 0xa134
jmp 0xa0b2
jmp 0xa0b2
movq %rax, %rbx
jmp 0xa127
movq %rax, %rbx
movq 0x108(%rsp), %rdi
testq %rdi, %rdi
je 0xa0e4
callq 0x2150
xorl %eax, %eax
movq %rax, 0x108(%rsp)
movl $0x0, 0x110(%rsp)
movq %rax, 0x118(%rsp)
movq 0x1e0(%rsp), %rdi
testq %rdi, %rdi
je 0xa0f6
callq 0x2150
movq 0x198(%rsp), %rdi
testq %rdi, %rdi
je 0xa108
callq 0x2150
movq 0x230(%rsp), %rdi
testq %rdi, %rdi
je 0xa11a
callq 0x2150
leaq 0x1b0(%rsp), %rdi
callq 0xa7ec
leaq 0x150(%rsp), %rdi
callq 0xa832
movq 0x40(%rsp), %rdi
testq %rdi, %rdi
je 0xa143
callq 0x2150
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0xa152
callq 0x2150
movq (%rsp), %rdi
testq %rdi, %rdi
je 0xa160
callq 0x2150
movq 0xb8(%rsp), %rdi
testq %rdi, %rdi
je 0xa172
callq 0x2150
movq 0x1c8(%rsp), %rdi
testq %rdi, %rdi
je 0xa184
callq 0x2150
movq 0x250(%rsp), %rdi
testq %rdi, %rdi
je 0xa196
callq 0x2150
movq 0xd0(%rsp), %rdi
testq %rdi, %rdi
je 0xa1a8
callq 0x2150
movq 0x130(%rsp), %rdi
testq %rdi, %rdi
je 0xa1ba
callq 0x2150
leaq 0x218(%rsp), %rdi
callq 0xa7ec
leaq 0x200(%rsp), %rdi
callq 0xa7ec
movq %rbx, %rdi
callq 0x2220