// File: /workspace/github_cpp_makefile_star2_O3/sebastienmeyer2[P]mst-clustering/src/node.cpp
// Function: silhouette(std::unordered_map<Node*, Node*, std::hash<Node*>, std::equal_to<Node*>, std::allocator<std::pair<Node* const, Node*>>>)
double silhouette(std::unordered_map<Node*, Node*> clusters)
{
    /*!
     * @brief Computes the silhouette of the clusters given in argument
     *
     * @param clusters A mapping between nodes and their representatives 
     * in clusters
     * 
     * @return The silhouette of these clusters
     */

    int n = clusters.size(); // number of nodes

	double silhouette = 0.0;

    // firstly, we compute the clusters in the reverse mode, that is, 
    // we take for each representative, all its members
    std::unordered_set<Node*> representatives;
    std::unordered_map<Node*, int> clusters_size;
    std::unordered_map<Node*, std::unordered_set<Node*> > members;
    std::unordered_set<Node*> nodes;

    for (auto kv : clusters) {
        Node* node = kv.first;
        Node* rep = kv.second;

        nodes.insert(node);

        representatives.insert(rep);
        if (clusters_size.find(rep) == clusters_size.end()) {
            clusters_size.insert(std::pair<Node*, int>(rep, 0));
        }
        clusters_size.at(rep) += 1;
        
        if (members.find(rep) == members.end()) {
            members.insert(std::pair<Node*, std::unordered_set<Node*> >(rep, std::unordered_set<Node*>()));
        }

        members.at(rep).insert(node);
    }

    int nb_clusters = representatives.size();

	// we compute a and b which are respectively the 
	// average distance to points of the same cluster 
	// and min of average distances to foreign clusters
    std::unordered_map<Node*, double> a;
    std::unordered_map<Node*, double> b;
    std::unordered_map<Node*, double> s;

    for (Node* node : nodes) {
        a.insert(std::pair<Node*, double>(node, 0.0));
        b.insert(std::pair<Node*, double>(node, 0.0));
        s.insert(std::pair<Node*, double>(node, 0.0));
    }

	for (Node* node : nodes){
        std::unordered_map<Node*, double> dist_to_clusters;
        for (Node* rep : representatives) {
            dist_to_clusters.insert(std::pair<Node*, double>(rep, 0.0));
        }

        for (Node* other_node : nodes) {
            if (other_node != node) {
                Node* other_node_cluster = clusters.at(other_node);

                dist_to_clusters.at(other_node_cluster) += std::sqrt(node->dist(other_node));
            }
        }

        double minDist = DBL_MAX;
        for (Node* rep : representatives) {
            dist_to_clusters.at(rep) /= clusters_size.at(rep);

            if (rep != clusters.at(node) && dist_to_clusters.at(rep) < minDist) {
                minDist = dist_to_clusters.at(rep);
            }
        }

        a.at(node) = dist_to_clusters.at(clusters.at(node));
        if (minDist < DBL_MAX) {
            b.at(node) = minDist;
        }
        s.at(node) = (b.at(node) - a.at(node)) / (std::max(a.at(node), b.at(node)));
	}

    for (Node* node : nodes) {
        silhouette += s.at(node);
    }
	silhouette /= n;

	return silhouette;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1f8, %rsp            # imm = 0x1F8
movq %rdi, %rbx
movq 0x18(%rdi), %rax
movq %rax, 0x58(%rsp)
leaq 0x1f0(%rsp), %rax
movq %rax, -0x30(%rax)
movl $0x1, %ecx
movq %rcx, -0x28(%rax)
xorpd %xmm0, %xmm0
movupd %xmm0, -0x20(%rax)
movl $0x3f800000, %edx       # imm = 0x3F800000
movl %edx, -0x10(%rax)
movupd %xmm0, -0x8(%rax)
leaq 0x148(%rsp), %rax
movq %rax, -0x30(%rax)
movq %rcx, -0x28(%rax)
movupd %xmm0, -0x20(%rax)
movl %edx, -0x10(%rax)
movupd %xmm0, -0x8(%rax)
leaq 0x1b8(%rsp), %rax
movq %rax, -0x30(%rax)
movq %rcx, -0x28(%rax)
movupd %xmm0, -0x20(%rax)
movl %edx, -0x10(%rax)
movupd %xmm0, -0x8(%rax)
leaq 0x180(%rsp), %rax
movq %rax, -0x30(%rax)
movq %rcx, -0x28(%rax)
movupd %xmm0, -0x20(%rax)
movl %edx, -0x10(%rax)
movupd %xmm0, -0x8(%rax)
movq 0x10(%rdi), %r14
testq %r14, %r14
je 0x9d2f
leaq 0xe0(%rsp), %rbp
leaq 0x68(%rsp), %r13
leaq 0xa8(%rsp), %r15
movq 0x8(%r14), %rax
movq 0x10(%r14), %rcx
movq %rax, 0xe0(%rsp)
movq %rcx, 0x10(%rsp)
leaq 0x150(%rsp), %rdi
movq %rdi, 0x68(%rsp)
movq %rbp, %rsi
movq %r13, %rdx
callq 0x5ccc
leaq 0x1c0(%rsp), %rdi
movq %rdi, 0x68(%rsp)
leaq 0x10(%rsp), %rsi
movq %r13, %rdx
callq 0x5ccc
movq 0x10(%rsp), %rcx
movq 0x118(%rsp), %r9
movq 0x120(%rsp), %r8
movq %rcx, %rax
xorl %edx, %edx
divq %r8
movq (%r9,%rdx,8), %rax
testq %rax, %rax
leaq 0x70(%rsp), %rdi
je 0x9b4f
movq %rdx, %rsi
movq (%rax), %r10
cmpq 0x8(%r10), %rcx
je 0x9b91
movq (%r10), %r10
testq %r10, %r10
je 0x9b4f
movq 0x8(%r10), %r11
movq %r11, %rax
xorl %edx, %edx
divq %r8
cmpq %rsi, %rdx
jne 0x9b4f
cmpq %r11, %rcx
jne 0x9b2f
jmp 0x9b91
movq %rcx, 0x68(%rsp)
movl $0x0, 0x70(%rsp)
leaq 0x118(%rsp), %rdi
movq %r13, %rsi
callq 0x9246
movq 0x10(%rsp), %rcx
movq 0x118(%rsp), %r9
movq 0x120(%rsp), %r8
movq %rcx, %rax
xorl %edx, %edx
divq %r8
movq %rdx, %rsi
leaq 0x70(%rsp), %rdi
movq (%r9,%rsi,8), %rax
testq %rax, %rax
je 0xa4b9
movq (%rax), %r9
cmpq 0x8(%r9), %rcx
je 0x9bcd
movq (%r9), %r9
testq %r9, %r9
je 0xa4b9
movq 0x8(%r9), %r10
movq %r10, %rax
xorl %edx, %edx
divq %r8
cmpq %rsi, %rdx
jne 0xa4b9
cmpq %r10, %rcx
jne 0x9ba7
incl 0x10(%r9)
movq 0x188(%rsp), %r8
movq 0x190(%rsp), %r9
movq %rcx, %rax
xorl %edx, %edx
divq %r9
movq (%r8,%rdx,8), %rax
testq %rax, %rax
je 0x9c25
movq %rdx, %rsi
movq (%rax), %r10
cmpq 0x8(%r10), %rcx
je 0x9cbf
movq (%r10), %r10
testq %r10, %r10
je 0x9c25
movq 0x8(%r10), %r11
movq %r11, %rax
xorl %edx, %edx
divq %r9
cmpq %rsi, %rdx
jne 0x9c25
cmpq %r11, %rcx
jne 0x9c02
jmp 0x9cbf
movq $0x0, 0xc8(%rsp)
leaq 0xd8(%rsp), %rax
movq %rax, 0xa8(%rsp)
movq $0x1, 0xb0(%rsp)
xorpd %xmm0, %xmm0
movupd %xmm0, -0x20(%rax)
movl $0x3f800000, 0xc8(%rsp) # imm = 0x3F800000
movupd %xmm0, -0x8(%rax)
movq %rcx, 0x68(%rsp)
movq %r15, %rsi
movq %r15, %rdx
movq %r15, %r12
movq %rdi, %r15
callq 0x503c
leaq 0x188(%rsp), %rdi
movq %r13, %rsi
callq 0x5996
movq %r15, %rdi
callq 0x50b2
movq %r12, %rdi
callq 0x50b2
movq 0x10(%rsp), %rcx
movq 0x188(%rsp), %r8
movq 0x190(%rsp), %r9
movq %rcx, %rax
xorl %edx, %edx
divq %r9
movq %rdx, %rsi
movq %r12, %r15
movq (%r8,%rsi,8), %rax
testq %rax, %rax
je 0xa4b9
movq (%rax), %rdi
cmpq 0x8(%rdi), %rcx
je 0x9cfb
movq (%rdi), %rdi
testq %rdi, %rdi
je 0xa4b9
movq 0x8(%rdi), %r8
movq %r8, %rax
xorl %edx, %edx
divq %r9
cmpq %rsi, %rdx
jne 0xa4b9
cmpq %r8, %rcx
jne 0x9cd5
addq $0x10, %rdi
movq %rdi, 0x68(%rsp)
movq %rbp, %rsi
movq %r13, %rdx
callq 0x5ccc
movq (%r14), %r14
testq %r14, %r14
jne 0x9ab1
movq 0x160(%rsp), %rbp
movl $0x1, %ecx
movl $0x3f800000, %edx       # imm = 0x3F800000
jmp 0x9d31
xorl %ebp, %ebp
leaq 0x98(%rsp), %rax
movq %rax, -0x30(%rax)
movq %rcx, -0x28(%rax)
xorpd %xmm0, %xmm0
movupd %xmm0, -0x20(%rax)
movl %edx, -0x10(%rax)
movupd %xmm0, -0x8(%rax)
leaq 0xd8(%rsp), %rax
movq %rax, -0x30(%rax)
movq %rcx, -0x28(%rax)
movupd %xmm0, -0x20(%rax)
movl %edx, -0x10(%rax)
movupd %xmm0, -0x8(%rax)
leaq 0x110(%rsp), %rax
movq %rax, -0x30(%rax)
movq %rcx, -0x28(%rax)
movupd %xmm0, -0x20(%rax)
movl %edx, -0x10(%rax)
movupd %xmm0, -0x8(%rax)
xorpd %xmm1, %xmm1
testq %rbp, %rbp
je 0xa414
leaq 0x10(%rsp), %r15
leaq 0xa8(%rsp), %r12
leaq 0xe0(%rsp), %r13
movq 0x8(%rbp), %r14
movq %r14, 0x10(%rsp)
movq $0x0, 0x18(%rsp)
leaq 0x68(%rsp), %rdi
movq %r15, %rsi
callq 0xa5f0
movq %r14, 0x10(%rsp)
movq $0x0, 0x18(%rsp)
movq %r12, %rdi
movq %r15, %rsi
callq 0xa5f0
movq %r14, 0x10(%rsp)
movq $0x0, 0x18(%rsp)
movq %r13, %rdi
movq %r15, %rsi
callq 0xa5f0
movq (%rbp), %rbp
testq %rbp, %rbp
jne 0x9dae
movq 0x160(%rsp), %r15
testq %r15, %r15
xorpd %xmm1, %xmm1
je 0xa414
leaq 0x10(%rsp), %r13
leaq 0x48(%rsp), %r12
movq 0x8(%r15), %rax
movq %rax, 0x8(%rsp)
leaq 0x40(%rsp), %rax
movq %rax, 0x10(%rsp)
movq $0x1, 0x18(%rsp)
xorpd %xmm0, %xmm0
movupd %xmm0, -0x20(%rax)
movl $0x3f800000, 0x30(%rsp) # imm = 0x3F800000
movupd %xmm0, -0x8(%rax)
movq 0x1d0(%rsp), %r14
testq %r14, %r14
je 0x9e88
movq 0x8(%r14), %rax
movq %rax, 0x48(%rsp)
movq $0x0, 0x50(%rsp)
movq %r13, %rdi
movq %r12, %rsi
callq 0xa5f0
movq (%r14), %r14
jmp 0x9e61
movq 0x160(%rsp), %rbp
testq %rbp, %rbp
leaq 0x8(%rsp), %r14
je 0x9f58
movq 0x8(%rbp), %rax
movq %rax, 0x48(%rsp)
cmpq 0x8(%rsp), %rax
je 0x9f4b
movq %rbx, %rdi
movq %r12, %rsi
callq 0xa888
testq %rax, %rax
je 0xa4a1
movq 0x10(%rax), %r13
movq 0x8(%rsp), %rdi
movq 0x48(%rsp), %rsi
callq 0x94fc
ucomisd 0x77af(%rip), %xmm0     # 0x11690
jb 0x9ee9
sqrtsd %xmm0, %xmm0
jmp 0x9eee
callq 0x3210
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdi
movq %r13, %rax
xorl %edx, %edx
divq %rdi
movq (%rsi,%rdx,8), %rax
testq %rax, %rax
je 0xa4a1
movq %rdx, %rcx
movq (%rax), %r8
cmpq 0x8(%r8), %r13
je 0x9f3f
movq (%r8), %r8
testq %r8, %r8
je 0xa4a1
movq 0x8(%r8), %rsi
movq %rsi, %rax
xorl %edx, %edx
divq %rdi
cmpq %rcx, %rdx
jne 0xa4a1
cmpq %rsi, %r13
jne 0x9f19
addsd 0x10(%r8), %xmm0
movsd %xmm0, 0x10(%r8)
movq (%rbp), %rbp
testq %rbp, %rbp
jne 0x9e9e
movq 0x1d0(%rsp), %rbp
movsd 0x7720(%rip), %xmm0     # 0x11688
movsd %xmm0, (%rsp)
testq %rbp, %rbp
je 0xa11d
movsd 0x770a(%rip), %xmm0     # 0x11688
movsd %xmm0, (%rsp)
movq 0x8(%rbp), %r13
movq 0x118(%rsp), %rsi
movq 0x120(%rsp), %r8
movq %r13, %rax
xorl %edx, %edx
divq %r8
movq (%rsi,%rdx,8), %rax
testq %rax, %rax
je 0xa495
movq %rdx, %rcx
movq (%rax), %rdi
cmpq 0x8(%rdi), %r13
je 0x9fde
movq (%rdi), %rdi
testq %rdi, %rdi
je 0xa495
movq 0x8(%rdi), %rsi
movq %rsi, %rax
xorl %edx, %edx
divq %r8
cmpq %rcx, %rdx
jne 0xa495
cmpq %rsi, %r13
jne 0x9fb8
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %r8
movq %r13, %rax
xorl %edx, %edx
divq %r8
movq (%rsi,%rdx,8), %rax
testq %rax, %rax
je 0xa495
movq %rdx, %rcx
movl 0x10(%rdi), %r9d
movq (%rax), %rdi
cmpq 0x8(%rdi), %r13
je 0xa033
movq (%rdi), %rdi
testq %rdi, %rdi
je 0xa495
movq 0x8(%rdi), %rsi
movq %rsi, %rax
xorl %edx, %edx
divq %r8
cmpq %rcx, %rdx
jne 0xa495
cmpq %rsi, %r13
jne 0xa00d
xorps %xmm0, %xmm0
cvtsi2sd %r9d, %xmm0
movsd 0x10(%rdi), %xmm1
divsd %xmm0, %xmm1
movsd %xmm1, 0x10(%rdi)
movq %rbx, %rdi
movq %r14, %rsi
callq 0xa888
testq %rax, %rax
je 0xa495
cmpq 0x10(%rax), %r13
je 0xa110
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdi
movq %r13, %rax
xorl %edx, %edx
divq %rdi
movq (%rsi,%rdx,8), %rax
testq %rax, %rax
je 0xa495
movq %rdx, %rcx
movq (%rax), %r8
movq 0x8(%r8), %r9
movq %r8, %r10
cmpq %r9, %r13
je 0xa0f8
movq (%r10), %r10
testq %r10, %r10
je 0xa495
movq 0x8(%r10), %rsi
movq %rsi, %rax
xorl %edx, %edx
divq %rdi
cmpq %rcx, %rdx
jne 0xa495
cmpq %rsi, %r13
jne 0xa098
movsd (%rsp), %xmm0
ucomisd 0x10(%r10), %xmm0
jbe 0xa110
cmpq %r9, %r13
je 0xa105
movq (%r8), %r8
testq %r8, %r8
je 0xa495
movq 0x8(%r8), %rsi
movq %rsi, %rax
xorl %edx, %edx
divq %rdi
cmpq %rcx, %rdx
jne 0xa495
cmpq %rsi, %r13
jne 0xa0d0
jmp 0xa105
movsd (%rsp), %xmm0
ucomisd 0x10(%r8), %xmm0
jbe 0xa110
movsd 0x10(%r8), %xmm0
movsd %xmm0, (%rsp)
movq (%rbp), %rbp
testq %rbp, %rbp
jne 0x9f83
movq %r15, 0x60(%rsp)
movq %rbx, %rdi
movq %r14, %rsi
callq 0xa888
testq %rax, %rax
je 0xa4ad
addq $0x10, %rax
leaq 0x10(%rsp), %rdi
movq %rax, %rsi
callq 0xa8e4
movq %rax, %rdi
testq %rax, %rax
je 0xa4ad
movq 0x8(%rsp), %rcx
movq 0x68(%rsp), %r8
movq 0x70(%rsp), %r10
movq %rcx, %rax
xorl %edx, %edx
divq %r10
movq (%r8,%rdx,8), %rax
testq %rax, %rax
je 0xa4ad
movq %rdx, %rsi
movsd 0x10(%rdi), %xmm0
movq (%rax), %r9
movq 0x8(%r9), %r13
movq %r9, %r8
cmpq %r13, %rcx
je 0xa1b4
movq (%r8), %r8
testq %r8, %r8
je 0xa4ad
movq 0x8(%r8), %rdi
movq %rdi, %rax
xorl %edx, %edx
divq %r10
cmpq %rsi, %rdx
jne 0xa4ad
cmpq %rdi, %rcx
jne 0xa18e
movsd %xmm0, 0x10(%r8)
movq 0xa8(%rsp), %r14
movq 0xb0(%rsp), %r11
movq %rcx, %rax
xorl %edx, %edx
divq %r11
movq %rdx, %rdi
movsd 0x74ab(%rip), %xmm0     # 0x11688
ucomisd (%rsp), %xmm0
jbe 0xa22b
movq (%r14,%rdi,8), %rax
testq %rax, %rax
je 0xa4ad
movq (%rax), %rbp
cmpq 0x8(%rbp), %rcx
je 0xa221
movq (%rbp), %rbp
testq %rbp, %rbp
je 0xa4ad
movq 0x8(%rbp), %r8
movq %r8, %rax
xorl %edx, %edx
divq %r11
cmpq %rdi, %rdx
jne 0xa4ad
cmpq %r8, %rcx
jne 0xa1fa
movsd (%rsp), %xmm0
movsd %xmm0, 0x10(%rbp)
movq (%r14,%rdi,8), %rax
testq %rax, %rax
je 0xa4ad
movq (%rax), %r15
movq 0x8(%r15), %r14
movq %r15, %rbp
cmpq %r14, %rcx
je 0xa26e
movq (%rbp), %rbp
testq %rbp, %rbp
je 0xa4ad
movq 0x8(%rbp), %r8
movq %r8, %rax
xorl %edx, %edx
divq %r11
cmpq %rdi, %rdx
jne 0xa4ad
cmpq %r8, %rcx
jne 0xa247
movsd 0x10(%rbp), %xmm0
movq %r9, %rbp
cmpq %r13, %rcx
je 0xa2d4
movq (%rbp), %rbp
testq %rbp, %rbp
je 0xa4ad
movq 0x8(%rbp), %r8
movq %r8, %rax
xorl %edx, %edx
divq %r10
cmpq %rsi, %rdx
jne 0xa4ad
cmpq %r8, %rcx
jne 0xa27b
movsd 0x10(%rbp), %xmm1
cmpq %r13, %rcx
je 0xa2da
movq (%r9), %r9
testq %r9, %r9
je 0xa4ad
movq 0x8(%r9), %r8
movq %r8, %rax
xorl %edx, %edx
divq %r10
cmpq %rsi, %rdx
jne 0xa4ad
cmpq %r8, %rcx
jne 0xa2ac
jmp 0xa2da
movsd 0x10(%r9), %xmm1
cmpq %r14, %rcx
je 0xa305
movq (%r15), %r15
testq %r15, %r15
je 0xa4ad
movq 0x8(%r15), %rsi
movq %rsi, %rax
xorl %edx, %edx
divq %r11
cmpq %rdi, %rdx
jne 0xa4ad
cmpq %rsi, %rcx
jne 0xa2df
movq 0xe0(%rsp), %rdi
movq 0xe8(%rsp), %r8
movq %rcx, %rax
xorl %edx, %edx
divq %r8
movq (%rdi,%rdx,8), %rax
testq %rax, %rax
je 0xa4ad
movq %rdx, %rsi
movsd 0x10(%r15), %xmm2
maxsd 0x10(%r9), %xmm2
movq (%rax), %r9
cmpq 0x8(%r9), %rcx
je 0xa368
movq (%r9), %r9
testq %r9, %r9
je 0xa4ad
movq 0x8(%r9), %rdi
movq %rdi, %rax
xorl %edx, %edx
divq %r8
cmpq %rsi, %rdx
jne 0xa4ad
cmpq %rdi, %rcx
jne 0xa342
subsd %xmm1, %xmm0
divsd %xmm2, %xmm0
movsd %xmm0, 0x10(%r9)
leaq 0x10(%rsp), %r13
movq %r13, %rdi
callq 0xa580
movq 0x60(%rsp), %r15
movq (%r15), %r15
testq %r15, %r15
jne 0x9e27
movq 0x160(%rsp), %r8
testq %r8, %r8
je 0xa410
movq 0xe0(%rsp), %r9
movq 0xe8(%rsp), %r10
xorpd %xmm1, %xmm1
movq 0x8(%r8), %rcx
movq %rcx, %rax
xorl %edx, %edx
divq %r10
movq (%r9,%rdx,8), %rax
testq %rax, %rax
je 0xa4c5
movq %rdx, %rsi
movq (%rax), %r11
cmpq 0x8(%r11), %rcx
je 0xa400
movq (%r11), %r11
testq %r11, %r11
je 0xa4c5
movq 0x8(%r11), %rdi
movq %rdi, %rax
xorl %edx, %edx
divq %r10
cmpq %rsi, %rdx
jne 0xa4c5
cmpq %rdi, %rcx
jne 0xa3da
addsd 0x10(%r11), %xmm1
movq (%r8), %r8
testq %r8, %r8
jne 0xa3b5
jmp 0xa414
xorpd %xmm1, %xmm1
xorps %xmm0, %xmm0
cvtsi2sdl 0x58(%rsp), %xmm0
divsd %xmm0, %xmm1
movsd %xmm1, (%rsp)
leaq 0xe0(%rsp), %rdi
callq 0xa580
leaq 0xa8(%rsp), %rdi
callq 0xa580
leaq 0x68(%rsp), %rdi
callq 0xa580
leaq 0x150(%rsp), %rdi
callq 0x50b2
leaq 0x188(%rsp), %rdi
callq 0x5122
leaq 0x118(%rsp), %rdi
callq 0x9032
leaq 0x1c0(%rsp), %rdi
callq 0x50b2
movsd (%rsp), %xmm0
addq $0x1f8, %rsp            # imm = 0x1F8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x6cee(%rip), %rdi      # 0x1118a
callq 0x33e0
leaq 0x6ce2(%rip), %rdi      # 0x1118a
callq 0x33e0
leaq 0x6cd6(%rip), %rdi      # 0x1118a
callq 0x33e0
leaq 0x6cca(%rip), %rdi      # 0x1118a
callq 0x33e0
leaq 0x6cbe(%rip), %rdi      # 0x1118a
callq 0x33e0
movq %rax, %rbx
movq %r15, %rdi
callq 0x50b2
leaq 0xa8(%rsp), %rdi
callq 0x50b2
jmp 0xa53c
jmp 0xa502
jmp 0xa4fd
jmp 0xa4fd
jmp 0xa4fd
jmp 0xa50b
jmp 0xa502
jmp 0xa50b
jmp 0xa50b
jmp 0xa50b
movq %rax, %rbx
jmp 0xa518
movq %rax, %rbx
jmp 0xa53c
jmp 0xa50b
jmp 0xa50b
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0xa580
leaq 0xe0(%rsp), %rdi
callq 0xa580
leaq 0xa8(%rsp), %rdi
callq 0xa580
leaq 0x68(%rsp), %rdi
callq 0xa580
leaq 0x150(%rsp), %rdi
callq 0x50b2
leaq 0x188(%rsp), %rdi
callq 0x5122
leaq 0x118(%rsp), %rdi
callq 0x9032
leaq 0x1c0(%rsp), %rdi
callq 0x50b2
movq %rbx, %rdi
callq 0x34a0