// File: flastest[P]HeterogeneousParallelDijkstra/workloads.cc
// Function: test3(bool)
bool test3(bool TEST_DEBUG)
{
	const int num_nodes = 5;
	enum nodes { A, B, C, D, E };
	Edge edge_array[] = { 
			Edge(A, B), Edge(A, C), 
			Edge(B, A), Edge(B, D), 
			Edge(C, A), Edge(C, D),
			Edge(D, B), Edge(D, C),
			Edge(E,B)
	};
	int weights[] = { 
		2, 2,
		2, 2,
		2, 2,
		2, 2,
		2
	};
	int num_arcs = sizeof(edge_array) / sizeof(Edge);

	//the graph
	graph_t g(edge_array, edge_array + num_arcs, weights, num_nodes);

	// Keeps track of the predecessor of each vertex
	predecessor_map_t p;
	// Keeps track of the distance to each vertex
	std::vector<int> d(num_vertices(g));



	// test3a, with source A.
	vertex_descriptor s = vertex(A, g);

	auto distances = dijkstra_algorithm(g, s, p);

	vector<float> true_distances = {0, 2, 2, 4, INFINITY};
	if (TEST_DEBUG) cout << "test3a\n" << print_dijkstra_results(g,distances);
	for (int i = 0; i < num_nodes; i++)
	{
		if (distances[vertex(i,g)] != true_distances[i]){
			return false;
		}
	}
	


	// test3b, with source B.
	s = vertex(B, g);

	distances = dijkstra_algorithm(g, s, p);

	true_distances = {2, 0, 4, 2, INFINITY};
	if (TEST_DEBUG) cout << "test3b\n" << print_dijkstra_results(g,distances);
	for (int i = 0; i < num_nodes; i++)
	{
		if (distances[vertex(i,g)] != true_distances[i]){
			return false;
		}
	}
	

	// test3c, with source C.
	s = vertex(C, g);

	distances = dijkstra_algorithm(g, s, p);

	true_distances = {2, 4, 0, 2, INFINITY};
	if (TEST_DEBUG) cout << "test3c\n" << print_dijkstra_results(g,distances);
	for (int i = 0; i < num_nodes; i++)
	{
		if (distances[vertex(i,g)] != true_distances[i]){
			return false;
		}
	}
	


	// test3d, with source D.
	s = vertex(D, g);

	distances = dijkstra_algorithm(g, s, p);

	true_distances = {4, 2, 2, 0, INFINITY};
	if (TEST_DEBUG) cout << "test3d\n" << print_dijkstra_results(g,distances);
	for (int i = 0; i < num_nodes; i++)
	{
		if (distances[vertex(i,g)] != true_distances[i]){
			return false;
		}
	}


	// test3e, with source E.
	s = vertex(E, g);

	distances = dijkstra_algorithm(g, s, p);

	true_distances = {4, 2, 6, 4, 0};
	if (TEST_DEBUG) cout << "test3c\n" << print_dijkstra_results(g,distances);
	for (int i = 0; i < num_nodes; i++)
	{
		if (distances[vertex(i,g)] != true_distances[i]){
			return false;
		}
	}

	return true;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x760, %rsp            # imm = 0x760
movb %dil, %al
andb $0x1, %al
movb %al, -0x2(%rbp)
movl $0x5, -0x8(%rbp)
movl $0x0, -0x54(%rbp)
movl $0x1, -0x58(%rbp)
leaq -0x50(%rbp), %rdi
movq %rdi, -0x660(%rbp)
leaq -0x54(%rbp), %rsi
leaq -0x58(%rbp), %rdx
callq 0x8690
leaq -0x48(%rbp), %rdi
movl $0x0, -0x5c(%rbp)
movl $0x2, -0x60(%rbp)
leaq -0x5c(%rbp), %rsi
leaq -0x60(%rbp), %rdx
callq 0x8690
leaq -0x40(%rbp), %rdi
movl $0x1, -0x64(%rbp)
movl $0x0, -0x68(%rbp)
leaq -0x64(%rbp), %rsi
leaq -0x68(%rbp), %rdx
callq 0x8690
leaq -0x38(%rbp), %rdi
movl $0x1, -0x6c(%rbp)
movl $0x3, -0x70(%rbp)
leaq -0x6c(%rbp), %rsi
leaq -0x70(%rbp), %rdx
callq 0x8690
leaq -0x30(%rbp), %rdi
movl $0x2, -0x74(%rbp)
movl $0x0, -0x78(%rbp)
leaq -0x74(%rbp), %rsi
leaq -0x78(%rbp), %rdx
callq 0x8690
leaq -0x28(%rbp), %rdi
movl $0x2, -0x7c(%rbp)
movl $0x3, -0x80(%rbp)
leaq -0x7c(%rbp), %rsi
leaq -0x80(%rbp), %rdx
callq 0x8690
leaq -0x20(%rbp), %rdi
movl $0x3, -0x84(%rbp)
movl $0x1, -0x88(%rbp)
leaq -0x84(%rbp), %rsi
leaq -0x88(%rbp), %rdx
callq 0x8690
leaq -0x18(%rbp), %rdi
movl $0x3, -0x8c(%rbp)
movl $0x2, -0x90(%rbp)
leaq -0x8c(%rbp), %rsi
leaq -0x90(%rbp), %rdx
callq 0x8690
leaq -0x10(%rbp), %rdi
movl $0x4, -0x94(%rbp)
movl $0x1, -0x98(%rbp)
leaq -0x94(%rbp), %rsi
leaq -0x98(%rbp), %rdx
callq 0x8690
movq -0x660(%rbp), %rsi
movaps 0x22ce6(%rip), %xmm0    # 0x2a4d0
movaps %xmm0, -0xb0(%rbp)
movaps 0x22cc8(%rip), %xmm0    # 0x2a4c0
movaps %xmm0, -0xc0(%rbp)
movl $0x2, -0xa0(%rbp)
movl $0x9, -0xc4(%rbp)
movslq -0xc4(%rbp), %rax
leaq -0x50(%rbp,%rax,8), %rdx
movq %rsp, %rax
leaq -0x101(%rbp), %rcx
movq %rcx, (%rax)
xorl %eax, %eax
movl %eax, %r9d
leaq -0x100(%rbp), %rdi
movq %rdi, -0x658(%rbp)
leaq -0xc0(%rbp), %rcx
movl $0x5, %r8d
callq 0xb180
leaq -0x138(%rbp), %rdi
callq 0xb210
movq -0x658(%rbp), %rdi
callq 0xae10
movq %rax, -0x650(%rbp)
jmp 0x7872
leaq -0x15d(%rbp), %rdi
movq %rdi, -0x668(%rbp)
callq 0xae50
movq -0x650(%rbp), %rsi
movq -0x668(%rbp), %rdx
leaq -0x150(%rbp), %rdi
callq 0xae70
jmp 0x78a1
leaq -0x15d(%rbp), %rdi
callq 0xaee0
xorl %eax, %eax
movl %eax, %edi
leaq -0x100(%rbp), %rsi
callq 0xb230
movq %rax, -0x670(%rbp)
jmp 0x78c6
movq -0x670(%rbp), %rax
movq %rax, -0x168(%rbp)
movq 0x36a15(%rip), %rax     # 0x3e2f0
leaq -0x198(%rbp), %rdi
leaq -0x100(%rbp), %rsi
leaq -0x168(%rbp), %rdx
leaq -0x138(%rbp), %rcx
callq *%rax
jmp 0x78fb
movups 0x22be2(%rip), %xmm0    # 0x2a4e4
movaps %xmm0, -0x1e0(%rbp)
movl $0x7f800000, -0x1d0(%rbp) # imm = 0x7F800000
leaq -0x1e0(%rbp), %rax
movq %rax, -0x1c0(%rbp)
movq $0x5, -0x1b8(%rbp)
leaq -0x1e1(%rbp), %rdi
movq %rdi, -0x678(%rbp)
callq 0xb5d0
movq -0x678(%rbp), %rcx
movq -0x1c0(%rbp), %rsi
movq -0x1b8(%rbp), %rdx
leaq -0x1b0(%rbp), %rdi
callq 0xb5f0
jmp 0x7962
leaq -0x1e1(%rbp), %rdi
callq 0xb670
testb $0x1, -0x2(%rbp)
je 0x7b06
movq 0x36649(%rip), %rdi     # 0x3dfc8
leaq 0x216d0(%rip), %rsi     # 0x29056
callq 0x4310
movq %rax, -0x680(%rbp)
jmp 0x7994
leaq -0x240(%rbp), %rdi
leaq -0x100(%rbp), %rsi
callq 0xb300
jmp 0x79a9
leaq -0x270(%rbp), %rdi
leaq -0x198(%rbp), %rsi
callq 0xb3d0
jmp 0x79be
leaq -0x208(%rbp), %rdi
leaq -0x240(%rbp), %rsi
leaq -0x270(%rbp), %rdx
callq 0x4970
jmp 0x79da
movq -0x680(%rbp), %rdi
leaq -0x208(%rbp), %rsi
callq 0x42f0
jmp 0x79ef
leaq -0x208(%rbp), %rdi
callq 0x41e0
leaq -0x270(%rbp), %rdi
callq 0xb400
leaq -0x240(%rbp), %rdi
callq 0xb380
jmp 0x7b06
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x158(%rbp)
movl %eax, -0x15c(%rbp)
jmp 0x8660
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x158(%rbp)
movl %eax, -0x15c(%rbp)
leaq -0x15d(%rbp), %rdi
callq 0xaee0
jmp 0x8660
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x158(%rbp)
movl %eax, -0x15c(%rbp)
jmp 0x8654
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x158(%rbp)
movl %eax, -0x15c(%rbp)
leaq -0x1e1(%rbp), %rdi
callq 0xb670
jmp 0x8648
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x158(%rbp)
movl %eax, -0x15c(%rbp)
jmp 0x863c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x158(%rbp)
movl %eax, -0x15c(%rbp)
jmp 0x7af5
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x158(%rbp)
movl %eax, -0x15c(%rbp)
jmp 0x7ae9
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x158(%rbp)
movl %eax, -0x15c(%rbp)
leaq -0x208(%rbp), %rdi
callq 0x41e0
leaq -0x270(%rbp), %rdi
callq 0xb400
leaq -0x240(%rbp), %rdi
callq 0xb380
jmp 0x863c
movl $0x0, -0x274(%rbp)
cmpl $0x5, -0x274(%rbp)
jge 0x7bc3
movslq -0x274(%rbp), %rdi
leaq -0x100(%rbp), %rsi
callq 0xb230
movq %rax, -0x688(%rbp)
jmp 0x7b39
movq -0x688(%rbp), %rax
movq %rax, -0x280(%rbp)
leaq -0x198(%rbp), %rdi
leaq -0x280(%rbp), %rsi
callq 0xad00
movq %rax, -0x690(%rbp)
jmp 0x7b63
movq -0x690(%rbp), %rax
movss (%rax), %xmm0
movss %xmm0, -0x694(%rbp)
movslq -0x274(%rbp), %rsi
leaq -0x1b0(%rbp), %rdi
callq 0xb690
movss -0x694(%rbp), %xmm0
ucomiss (%rax), %xmm0
jne 0x7b9a
jp 0x7b9a
jmp 0x7bad
movb $0x0, -0x1(%rbp)
movl $0x1, -0x284(%rbp)
jmp 0x85f2
jmp 0x7baf
movl -0x274(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x274(%rbp)
jmp 0x7b10
movl $0x1, %edi
leaq -0x100(%rbp), %rsi
callq 0xb230
movq %rax, -0x6a0(%rbp)
jmp 0x7bdd
movq -0x6a0(%rbp), %rax
movq %rax, -0x168(%rbp)
movq 0x366fe(%rip), %rax     # 0x3e2f0
leaq -0x2b8(%rbp), %rdi
leaq -0x100(%rbp), %rsi
leaq -0x168(%rbp), %rdx
leaq -0x138(%rbp), %rcx
callq *%rax
jmp 0x7c12
leaq -0x198(%rbp), %rdi
leaq -0x2b8(%rbp), %rsi
movq %rsi, -0x6a8(%rbp)
callq 0xb420
movq -0x6a8(%rbp), %rdi
callq 0xb400
movups 0x228b9(%rip), %xmm0    # 0x2a4f8
movaps %xmm0, -0x2e0(%rbp)
movl $0x7f800000, -0x2d0(%rbp) # imm = 0x7F800000
leaq -0x2e0(%rbp), %rax
movq %rax, -0x2c8(%rbp)
movq $0x5, -0x2c0(%rbp)
movq -0x2c8(%rbp), %rsi
movq -0x2c0(%rbp), %rdx
leaq -0x1b0(%rbp), %rdi
callq 0xb6b0
jmp 0x7c85
testb $0x1, -0x2(%rbp)
je 0x7d8f
movq 0x36332(%rip), %rdi     # 0x3dfc8
leaq 0x213c1(%rip), %rsi     # 0x2905e
callq 0x4310
movq %rax, -0x6b0(%rbp)
jmp 0x7cab
leaq -0x338(%rbp), %rdi
leaq -0x100(%rbp), %rsi
callq 0xb300
jmp 0x7cc0
leaq -0x368(%rbp), %rdi
leaq -0x198(%rbp), %rsi
callq 0xb3d0
jmp 0x7cd5
leaq -0x300(%rbp), %rdi
leaq -0x338(%rbp), %rsi
leaq -0x368(%rbp), %rdx
callq 0x4970
jmp 0x7cf1
movq -0x6b0(%rbp), %rdi
leaq -0x300(%rbp), %rsi
callq 0x42f0
jmp 0x7d06
leaq -0x300(%rbp), %rdi
callq 0x41e0
leaq -0x368(%rbp), %rdi
callq 0xb400
leaq -0x338(%rbp), %rdi
callq 0xb380
jmp 0x7d8f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x158(%rbp)
movl %eax, -0x15c(%rbp)
jmp 0x7d7e
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x158(%rbp)
movl %eax, -0x15c(%rbp)
jmp 0x7d72
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x158(%rbp)
movl %eax, -0x15c(%rbp)
leaq -0x300(%rbp), %rdi
callq 0x41e0
leaq -0x368(%rbp), %rdi
callq 0xb400
leaq -0x338(%rbp), %rdi
callq 0xb380
jmp 0x863c
movl $0x0, -0x36c(%rbp)
cmpl $0x5, -0x36c(%rbp)
jge 0x7e4c
movslq -0x36c(%rbp), %rdi
leaq -0x100(%rbp), %rsi
callq 0xb230
movq %rax, -0x6b8(%rbp)
jmp 0x7dc2
movq -0x6b8(%rbp), %rax
movq %rax, -0x378(%rbp)
leaq -0x198(%rbp), %rdi
leaq -0x378(%rbp), %rsi
callq 0xad00
movq %rax, -0x6c0(%rbp)
jmp 0x7dec
movq -0x6c0(%rbp), %rax
movss (%rax), %xmm0
movss %xmm0, -0x6c4(%rbp)
movslq -0x36c(%rbp), %rsi
leaq -0x1b0(%rbp), %rdi
callq 0xb690
movss -0x6c4(%rbp), %xmm0
ucomiss (%rax), %xmm0
jne 0x7e23
jp 0x7e23
jmp 0x7e36
movb $0x0, -0x1(%rbp)
movl $0x1, -0x284(%rbp)
jmp 0x85f2
jmp 0x7e38
movl -0x36c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x36c(%rbp)
jmp 0x7d99
movl $0x2, %edi
leaq -0x100(%rbp), %rsi
callq 0xb230
movq %rax, -0x6d0(%rbp)
jmp 0x7e66
movq -0x6d0(%rbp), %rax
movq %rax, -0x168(%rbp)
movq 0x36475(%rip), %rax     # 0x3e2f0
leaq -0x3a8(%rbp), %rdi
leaq -0x100(%rbp), %rsi
leaq -0x168(%rbp), %rdx
leaq -0x138(%rbp), %rcx
callq *%rax
jmp 0x7e9b
leaq -0x198(%rbp), %rdi
leaq -0x3a8(%rbp), %rsi
movq %rsi, -0x6d8(%rbp)
callq 0xb420
movq -0x6d8(%rbp), %rdi
callq 0xb400
movups 0x22644(%rip), %xmm0    # 0x2a50c
movaps %xmm0, -0x3d0(%rbp)
movl $0x7f800000, -0x3c0(%rbp) # imm = 0x7F800000
leaq -0x3d0(%rbp), %rax
movq %rax, -0x3b8(%rbp)
movq $0x5, -0x3b0(%rbp)
movq -0x3b8(%rbp), %rsi
movq -0x3b0(%rbp), %rdx
leaq -0x1b0(%rbp), %rdi
callq 0xb6b0
jmp 0x7f0e
testb $0x1, -0x2(%rbp)
je 0x8018
movq 0x360a9(%rip), %rdi     # 0x3dfc8
leaq 0x21140(%rip), %rsi     # 0x29066
callq 0x4310
movq %rax, -0x6e0(%rbp)
jmp 0x7f34
leaq -0x428(%rbp), %rdi
leaq -0x100(%rbp), %rsi
callq 0xb300
jmp 0x7f49
leaq -0x458(%rbp), %rdi
leaq -0x198(%rbp), %rsi
callq 0xb3d0
jmp 0x7f5e
leaq -0x3f0(%rbp), %rdi
leaq -0x428(%rbp), %rsi
leaq -0x458(%rbp), %rdx
callq 0x4970
jmp 0x7f7a
movq -0x6e0(%rbp), %rdi
leaq -0x3f0(%rbp), %rsi
callq 0x42f0
jmp 0x7f8f
leaq -0x3f0(%rbp), %rdi
callq 0x41e0
leaq -0x458(%rbp), %rdi
callq 0xb400
leaq -0x428(%rbp), %rdi
callq 0xb380
jmp 0x8018
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x158(%rbp)
movl %eax, -0x15c(%rbp)
jmp 0x8007
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x158(%rbp)
movl %eax, -0x15c(%rbp)
jmp 0x7ffb
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x158(%rbp)
movl %eax, -0x15c(%rbp)
leaq -0x3f0(%rbp), %rdi
callq 0x41e0
leaq -0x458(%rbp), %rdi
callq 0xb400
leaq -0x428(%rbp), %rdi
callq 0xb380
jmp 0x863c
movl $0x0, -0x45c(%rbp)
cmpl $0x5, -0x45c(%rbp)
jge 0x80d5
movslq -0x45c(%rbp), %rdi
leaq -0x100(%rbp), %rsi
callq 0xb230
movq %rax, -0x6e8(%rbp)
jmp 0x804b
movq -0x6e8(%rbp), %rax
movq %rax, -0x468(%rbp)
leaq -0x198(%rbp), %rdi
leaq -0x468(%rbp), %rsi
callq 0xad00
movq %rax, -0x6f0(%rbp)
jmp 0x8075
movq -0x6f0(%rbp), %rax
movss (%rax), %xmm0
movss %xmm0, -0x6f4(%rbp)
movslq -0x45c(%rbp), %rsi
leaq -0x1b0(%rbp), %rdi
callq 0xb690
movss -0x6f4(%rbp), %xmm0
ucomiss (%rax), %xmm0
jne 0x80ac
jp 0x80ac
jmp 0x80bf
movb $0x0, -0x1(%rbp)
movl $0x1, -0x284(%rbp)
jmp 0x85f2
jmp 0x80c1
movl -0x45c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x45c(%rbp)
jmp 0x8022
movl $0x3, %edi
leaq -0x100(%rbp), %rsi
callq 0xb230
movq %rax, -0x700(%rbp)
jmp 0x80ef
movq -0x700(%rbp), %rax
movq %rax, -0x168(%rbp)
movq 0x361ec(%rip), %rax     # 0x3e2f0
leaq -0x498(%rbp), %rdi
leaq -0x100(%rbp), %rsi
leaq -0x168(%rbp), %rdx
leaq -0x138(%rbp), %rcx
callq *%rax
jmp 0x8124
leaq -0x198(%rbp), %rdi
leaq -0x498(%rbp), %rsi
movq %rsi, -0x708(%rbp)
callq 0xb420
movq -0x708(%rbp), %rdi
callq 0xb400
movups 0x223cf(%rip), %xmm0    # 0x2a520
movaps %xmm0, -0x4c0(%rbp)
movl $0x7f800000, -0x4b0(%rbp) # imm = 0x7F800000
leaq -0x4c0(%rbp), %rax
movq %rax, -0x4a8(%rbp)
movq $0x5, -0x4a0(%rbp)
movq -0x4a8(%rbp), %rsi
movq -0x4a0(%rbp), %rdx
leaq -0x1b0(%rbp), %rdi
callq 0xb6b0
jmp 0x8197
testb $0x1, -0x2(%rbp)
je 0x82a1
movq 0x35e20(%rip), %rdi     # 0x3dfc8
leaq 0x20ebf(%rip), %rsi     # 0x2906e
callq 0x4310
movq %rax, -0x710(%rbp)
jmp 0x81bd
leaq -0x518(%rbp), %rdi
leaq -0x100(%rbp), %rsi
callq 0xb300
jmp 0x81d2
leaq -0x548(%rbp), %rdi
leaq -0x198(%rbp), %rsi
callq 0xb3d0
jmp 0x81e7
leaq -0x4e0(%rbp), %rdi
leaq -0x518(%rbp), %rsi
leaq -0x548(%rbp), %rdx
callq 0x4970
jmp 0x8203
movq -0x710(%rbp), %rdi
leaq -0x4e0(%rbp), %rsi
callq 0x42f0
jmp 0x8218
leaq -0x4e0(%rbp), %rdi
callq 0x41e0
leaq -0x548(%rbp), %rdi
callq 0xb400
leaq -0x518(%rbp), %rdi
callq 0xb380
jmp 0x82a1
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x158(%rbp)
movl %eax, -0x15c(%rbp)
jmp 0x8290
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x158(%rbp)
movl %eax, -0x15c(%rbp)
jmp 0x8284
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x158(%rbp)
movl %eax, -0x15c(%rbp)
leaq -0x4e0(%rbp), %rdi
callq 0x41e0
leaq -0x548(%rbp), %rdi
callq 0xb400
leaq -0x518(%rbp), %rdi
callq 0xb380
jmp 0x863c
movl $0x0, -0x54c(%rbp)
cmpl $0x5, -0x54c(%rbp)
jge 0x835e
movslq -0x54c(%rbp), %rdi
leaq -0x100(%rbp), %rsi
callq 0xb230
movq %rax, -0x718(%rbp)
jmp 0x82d4
movq -0x718(%rbp), %rax
movq %rax, -0x558(%rbp)
leaq -0x198(%rbp), %rdi
leaq -0x558(%rbp), %rsi
callq 0xad00
movq %rax, -0x720(%rbp)
jmp 0x82fe
movq -0x720(%rbp), %rax
movss (%rax), %xmm0
movss %xmm0, -0x724(%rbp)
movslq -0x54c(%rbp), %rsi
leaq -0x1b0(%rbp), %rdi
callq 0xb690
movss -0x724(%rbp), %xmm0
ucomiss (%rax), %xmm0
jne 0x8335
jp 0x8335
jmp 0x8348
movb $0x0, -0x1(%rbp)
movl $0x1, -0x284(%rbp)
jmp 0x85f2
jmp 0x834a
movl -0x54c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x54c(%rbp)
jmp 0x82ab
movl $0x4, %edi
leaq -0x100(%rbp), %rsi
callq 0xb230
movq %rax, -0x730(%rbp)
jmp 0x8378
movq -0x730(%rbp), %rax
movq %rax, -0x168(%rbp)
movq 0x35f63(%rip), %rax     # 0x3e2f0
leaq -0x588(%rbp), %rdi
leaq -0x100(%rbp), %rsi
leaq -0x168(%rbp), %rdx
leaq -0x138(%rbp), %rcx
callq *%rax
jmp 0x83ad
leaq -0x198(%rbp), %rdi
leaq -0x588(%rbp), %rsi
movq %rsi, -0x738(%rbp)
callq 0xb420
movq -0x738(%rbp), %rdi
callq 0xb400
movups 0x2215a(%rip), %xmm0    # 0x2a534
movaps %xmm0, -0x5b0(%rbp)
movl $0x0, -0x5a0(%rbp)
leaq -0x5b0(%rbp), %rax
movq %rax, -0x598(%rbp)
movq $0x5, -0x590(%rbp)
movq -0x598(%rbp), %rsi
movq -0x590(%rbp), %rdx
leaq -0x1b0(%rbp), %rdi
callq 0xb6b0
jmp 0x8420
testb $0x1, -0x2(%rbp)
je 0x852a
movq 0x35b97(%rip), %rdi     # 0x3dfc8
leaq 0x20c2e(%rip), %rsi     # 0x29066
callq 0x4310
movq %rax, -0x740(%rbp)
jmp 0x8446
leaq -0x608(%rbp), %rdi
leaq -0x100(%rbp), %rsi
callq 0xb300
jmp 0x845b
leaq -0x638(%rbp), %rdi
leaq -0x198(%rbp), %rsi
callq 0xb3d0
jmp 0x8470
leaq -0x5d0(%rbp), %rdi
leaq -0x608(%rbp), %rsi
leaq -0x638(%rbp), %rdx
callq 0x4970
jmp 0x848c
movq -0x740(%rbp), %rdi
leaq -0x5d0(%rbp), %rsi
callq 0x42f0
jmp 0x84a1
leaq -0x5d0(%rbp), %rdi
callq 0x41e0
leaq -0x638(%rbp), %rdi
callq 0xb400
leaq -0x608(%rbp), %rdi
callq 0xb380
jmp 0x852a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x158(%rbp)
movl %eax, -0x15c(%rbp)
jmp 0x8519
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x158(%rbp)
movl %eax, -0x15c(%rbp)
jmp 0x850d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x158(%rbp)
movl %eax, -0x15c(%rbp)
leaq -0x5d0(%rbp), %rdi
callq 0x41e0
leaq -0x638(%rbp), %rdi
callq 0xb400
leaq -0x608(%rbp), %rdi
callq 0xb380
jmp 0x863c
movl $0x0, -0x63c(%rbp)
cmpl $0x5, -0x63c(%rbp)
jge 0x85e4
movslq -0x63c(%rbp), %rdi
leaq -0x100(%rbp), %rsi
callq 0xb230
movq %rax, -0x748(%rbp)
jmp 0x855d
movq -0x748(%rbp), %rax
movq %rax, -0x648(%rbp)
leaq -0x198(%rbp), %rdi
leaq -0x648(%rbp), %rsi
callq 0xad00
movq %rax, -0x750(%rbp)
jmp 0x8587
movq -0x750(%rbp), %rax
movss (%rax), %xmm0
movss %xmm0, -0x754(%rbp)
movslq -0x63c(%rbp), %rsi
leaq -0x1b0(%rbp), %rdi
callq 0xb690
movss -0x754(%rbp), %xmm0
ucomiss (%rax), %xmm0
jne 0x85be
jp 0x85be
jmp 0x85ce
movb $0x0, -0x1(%rbp)
movl $0x1, -0x284(%rbp)
jmp 0x85f2
jmp 0x85d0
movl -0x63c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x63c(%rbp)
jmp 0x8534
movb $0x1, -0x1(%rbp)
movl $0x1, -0x284(%rbp)
leaq -0x1b0(%rbp), %rdi
callq 0xb700
leaq -0x198(%rbp), %rdi
callq 0xb400
leaq -0x150(%rbp), %rdi
callq 0xb120
leaq -0x138(%rbp), %rdi
callq 0xb530
leaq -0x100(%rbp), %rdi
callq 0xb380
movb -0x1(%rbp), %al
andb $0x1, %al
addq $0x760, %rsp            # imm = 0x760
popq %rbp
retq
leaq -0x1b0(%rbp), %rdi
callq 0xb700
leaq -0x198(%rbp), %rdi
callq 0xb400
leaq -0x150(%rbp), %rdi
callq 0xb120
leaq -0x138(%rbp), %rdi
callq 0xb530
leaq -0x100(%rbp), %rdi
callq 0xb380
movq -0x158(%rbp), %rdi
callq 0x4520
nopw %cs:(%rax,%rax)