// File: /workspace/github_cpp_makefile_star2_O1/CMU-SAFARI[P]MQSim/src/utils/Logical_Address_Partitioning_Unit.cpp
// Function: Utils::Logical_Address_Partitioning_Unit::Allocate_logical_address_for_flows(HostInterface_Types, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, std::vector<std::vector<unsigned int, std::allocator<unsigned int>>, std::allocator<std::vector<unsigned int, std::allocator<unsigned int>>>>, std::vector<std::vector<unsigned int, std::allocator<unsigned int>>, std::allocator<std::vector<unsigned int, std::allocator<unsigned int>>>>, std::vector<std::vector<unsigned int, std::allocator<unsigned int>>, std::allocator<std::vector<unsigned int, std::allocator<unsigned int>>>>, std::vector<std::vector<unsigned int, std::allocator<unsigned int>>, std::allocator<std::vector<unsigned int, std::allocator<unsigned int>>>>, unsigned int, unsigned int, unsigned int, double)
void Logical_Address_Partitioning_Unit::Allocate_logical_address_for_flows(HostInterface_Types hostinterface_type, unsigned int concurrent_stream_no,
		unsigned int channel_count, unsigned int chip_no_per_channel, unsigned int die_no_per_chip, unsigned int plane_no_per_die,
		std::vector<std::vector<flash_channel_ID_type>> stream_channel_ids, std::vector<std::vector<flash_chip_ID_type>> stream_chip_ids,
		std::vector<std::vector<flash_die_ID_type>> stream_die_ids, std::vector<std::vector<flash_plane_ID_type>> stream_plane_ids,
		unsigned int block_no_per_plane, unsigned int page_no_per_block, unsigned int sector_no_per_page, double overprovisioning_ratio) 
	{
		if (initialized) {
			return;
		}
		
		Logical_Address_Partitioning_Unit::hostinterface_type = hostinterface_type;

		Logical_Address_Partitioning_Unit::channel_count = channel_count;;
		Logical_Address_Partitioning_Unit::chip_no_per_channel = chip_no_per_channel;
		Logical_Address_Partitioning_Unit::die_no_per_chip = die_no_per_chip;
		Logical_Address_Partitioning_Unit::plane_no_per_die = plane_no_per_die;

		resource_list = new int***[channel_count];
		bool resource_sharing = false;
		for (flash_channel_ID_type channel_id = 0; channel_id < channel_count; channel_id++) {
			resource_list[channel_id] = new int**[chip_no_per_channel];
			for (flash_chip_ID_type chip_id = 0; chip_id < chip_no_per_channel; chip_id++) {
				resource_list[channel_id][chip_id] = new int*[die_no_per_chip];
				for (flash_die_ID_type die_id = 0; die_id < die_no_per_chip; die_id++) {
					resource_list[channel_id][chip_id][die_id] = new int[plane_no_per_die];
					for (flash_plane_ID_type plane_id = 0; plane_id < plane_no_per_die; plane_id++) {
						resource_list[channel_id][chip_id][die_id][plane_id] = 0;
					}
				}
			}
		}

		for (unsigned int stream_id = 0; stream_id < concurrent_stream_no; stream_id++)
		{
			for (flash_channel_ID_type channel_id = 0; channel_id < stream_channel_ids[stream_id].size(); channel_id++) {
				for (flash_chip_ID_type chip_id = 0; chip_id < stream_chip_ids[stream_id].size(); chip_id++) {
					for (flash_die_ID_type die_id = 0; die_id < stream_die_ids[stream_id].size(); die_id++) {
						for (flash_plane_ID_type plane_id = 0; plane_id < stream_plane_ids[stream_id].size(); plane_id++) {
							if (!(stream_channel_ids[stream_id][channel_id] < channel_count)) {
								PRINT_ERROR("Invalid channel ID specified for I/O flow " << stream_id);
							}

							if (!(stream_chip_ids[stream_id][chip_id] < chip_no_per_channel)) {
								PRINT_ERROR("Invalid chip ID specified for I/O flow " << stream_id);
							}

							if (!(stream_die_ids[stream_id][die_id] < die_no_per_chip)) {
								PRINT_ERROR("Invalid die ID specified for I/O flow " << stream_id);
							}

							if (!(stream_plane_ids[stream_id][plane_id] < plane_no_per_die)) {
								PRINT_ERROR("Invalid plane ID specified for I/O flow " << stream_id);
							}
							resource_list[stream_channel_ids[stream_id][channel_id]][stream_chip_ids[stream_id][chip_id]][stream_die_ids[stream_id][die_id]][stream_plane_ids[stream_id][plane_id]]++;
						}
					}
				}
			}
		}

		for (unsigned int stream_id = 0; stream_id < concurrent_stream_no; stream_id++)
		{
			std::vector<flash_channel_ID_type> channel_ids;
			Logical_Address_Partitioning_Unit::stream_channel_ids.push_back(channel_ids);
			for (flash_channel_ID_type channel_id = 0; channel_id < stream_channel_ids[stream_id].size(); channel_id++) {
				Logical_Address_Partitioning_Unit::stream_channel_ids[stream_id].push_back(stream_channel_ids[stream_id][channel_id]);
			}

			std::vector<flash_chip_ID_type> chip_ids;
			Logical_Address_Partitioning_Unit::stream_chip_ids.push_back(chip_ids);
			for (flash_chip_ID_type chip_id = 0; chip_id < stream_chip_ids[stream_id].size(); chip_id++) {
				Logical_Address_Partitioning_Unit::stream_chip_ids[stream_id].push_back(stream_chip_ids[stream_id][chip_id]);
			}

			std::vector<flash_die_ID_type> die_ids;
			Logical_Address_Partitioning_Unit::stream_die_ids.push_back(die_ids);
			for (flash_die_ID_type die_id = 0; die_id < stream_die_ids[stream_id].size(); die_id++) {
				Logical_Address_Partitioning_Unit::stream_die_ids[stream_id].push_back(stream_die_ids[stream_id][die_id]);
			}

			std::vector<flash_plane_ID_type> plane_ids;
			Logical_Address_Partitioning_Unit::stream_plane_ids.push_back(plane_ids);
			for (flash_plane_ID_type plane_id = 0; plane_id < stream_plane_ids[stream_id].size(); plane_id++) {
				Logical_Address_Partitioning_Unit::stream_plane_ids[stream_id].push_back(stream_plane_ids[stream_id][plane_id]);
			}
		}

		std::vector<LHA_type> lsa_count_per_stream;
		for (unsigned int stream_id = 0; stream_id < concurrent_stream_no; stream_id++) {
			LHA_type lsa_count = 0;
			for (flash_channel_ID_type channel_id = 0; channel_id < stream_channel_ids[stream_id].size(); channel_id++) {
				for (flash_chip_ID_type chip_id = 0; chip_id < stream_chip_ids[stream_id].size(); chip_id++) {
					for (flash_die_ID_type die_id = 0; die_id < stream_die_ids[stream_id].size(); die_id++) {
						for (flash_plane_ID_type plane_id = 0; plane_id < stream_plane_ids[stream_id].size(); plane_id++) {
							lsa_count += (LHA_type)((block_no_per_plane * page_no_per_block * sector_no_per_page * (1.0 - overprovisioning_ratio) *
								1.0 / double(resource_list[stream_channel_ids[stream_id][channel_id]][stream_chip_ids[stream_id][chip_id]][stream_die_ids[stream_id][die_id]][stream_plane_ids[stream_id][plane_id]])));
						}
					}
				}
			}
			pdas_per_flow.push_back(LHA_type(double(lsa_count) / (1.0 - overprovisioning_ratio)));
			total_pda_no += pdas_per_flow[stream_id];
			lsa_count_per_stream.push_back(lsa_count);
		}

		total_lha_no = 0;
		for (unsigned int stream_id = 0; stream_id < concurrent_stream_no; stream_id++) {
			start_lhas_per_flow.push_back(total_lha_no);
			end_lhas_per_flow.push_back(total_lha_no + lsa_count_per_stream[stream_id] - 1);
			total_lha_no += lsa_count_per_stream[stream_id];
		}

		initialized = true;
	}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xe8, %rsp
cmpb $0x0, 0x20ef4(%rip)     # 0x73cc4
jne 0x53758
movl %r8d, %ebx
movl %ecx, %r12d
movl %edx, %r15d
movsd %xmm0, 0xc0(%rsp)
movl %esi, 0x4(%rsp)
movl %edi, 0x20ece(%rip)     # 0x73cc0
movl %edx, 0x20f18(%rip)     # 0x73d10
movl %ecx, 0x20f16(%rip)     # 0x73d14
movl %r8d, 0x20f13(%rip)     # 0x73d18
movl %r9d, 0x28(%rsp)
movl %r9d, 0x20f0b(%rip)     # 0x73d1c
movl %edx, %eax
movq %rax, 0x20(%rsp)
leaq (,%rax,8), %rdi
callq 0x7030
movq %rax, 0x20e2c(%rip)     # 0x73c58
testl %r15d, %r15d
movl %ebx, 0x68(%rsp)
je 0x52f25
movl %r12d, %eax
movq %rax, 0x40(%rsp)
leaq (,%rax,8), %rax
movq %rax, 0x10(%rsp)
movl %ebx, %eax
movq %rax, 0x48(%rsp)
leaq (,%rax,8), %rax
movq %rax, 0x38(%rsp)
movl 0x28(%rsp), %eax
shlq $0x2, %rax
movq %rax, 0x18(%rsp)
xorl %ebp, %ebp
movq 0x10(%rsp), %rdi
callq 0x7030
movq 0x20dd6(%rip), %rcx     # 0x73c58
movq %rax, (%rcx,%rbp,8)
testl %r12d, %r12d
je 0x52f17
xorl %r13d, %r13d
movq 0x38(%rsp), %rdi
callq 0x7030
movq 0x20db5(%rip), %rcx     # 0x73c58
movq %rbp, %r14
movq (%rcx,%rbp,8), %rcx
movq %rax, (%rcx,%r13,8)
testl %ebx, %ebx
movq 0x18(%rsp), %rbp
je 0x52f02
xorl %ebx, %ebx
movq %rbp, %rdi
callq 0x7030
movq 0x20d90(%rip), %rcx     # 0x73c58
movq (%rcx,%r14,8), %rcx
movq (%rcx,%r13,8), %rcx
movq %rax, (%rcx,%rbx,8)
cmpl $0x0, 0x28(%rsp)
je 0x52ef8
movq 0x20d76(%rip), %rax     # 0x73c58
movq (%rax,%r14,8), %rax
movq (%rax,%r13,8), %rax
movq (%rax,%rbx,8), %rdi
xorl %esi, %esi
movq %rbp, %rdx
callq 0x7230
incq %rbx
cmpq %rbx, 0x48(%rsp)
jne 0x52eb9
incq %r13
cmpq 0x40(%rsp), %r13
movl 0x68(%rsp), %ebx
movq %r14, %rbp
jne 0x52e92
incq %rbp
cmpq 0x20(%rsp), %rbp
jne 0x52e71
movl 0x4(%rsp), %r13d
testl %r13d, %r13d
je 0x533a5
movq 0x120(%rsp), %rax
movq (%rax), %rax
movq %rax, 0xc8(%rsp)
movl %r13d, %eax
movq %rax, 0x98(%rsp)
xorl %eax, %eax
movq %rax, 0x8(%rsp)
leaq (%rax,%rax,2), %rcx
movq 0xc8(%rsp), %rax
movq (%rax,%rcx,8), %rdx
movq %rcx, 0x10(%rsp)
movq 0x8(%rax,%rcx,8), %rax
movq %rdx, 0x48(%rsp)
subq %rdx, %rax
movq %rax, 0x30(%rsp)
je 0x530cb
sarq $0x2, 0x30(%rsp)
movq 0x128(%rsp), %rax
movq (%rax), %rax
movq 0x10(%rsp), %rcx
movq (%rax,%rcx,8), %rdi
movq 0x8(%rax,%rcx,8), %rax
movq %rax, 0x90(%rsp)
subq %rdi, %rax
sarq $0x2, %rax
movq %rax, 0x20(%rsp)
xorl %r10d, %r10d
cmpq %rdi, 0x90(%rsp)
je 0x530bd
movq 0x130(%rsp), %rax
movq (%rax), %rax
movq 0x10(%rsp), %rcx
movq (%rax,%rcx,8), %r11
movq 0x8(%rax,%rcx,8), %rax
movq %rax, 0x18(%rsp)
subq %r11, %rax
sarq $0x2, %rax
movq %rax, 0x38(%rsp)
xorl %r8d, %r8d
cmpq %r11, 0x18(%rsp)
je 0x530af
movq 0x138(%rsp), %rax
movq (%rax), %rax
movq 0x10(%rsp), %rcx
movq (%rax,%rcx,8), %rbx
movq 0x8(%rax,%rcx,8), %rsi
movq %rsi, 0x40(%rsp)
subq %rbx, %rsi
sarq $0x2, %rsi
xorl %ecx, %ecx
cmpq %rbx, 0x40(%rsp)
je 0x530a2
movl $0x1, %eax
movq 0x20c1d(%rip), %r13     # 0x73c58
xorl %r9d, %r9d
movq 0x48(%rsp), %rdx
movl (%rdx,%r10,4), %r14d
cmpl %r15d, %r14d
jae 0x537c7
movl %r15d, %ebp
movl (%rdi,%r8,4), %r15d
cmpl %r12d, %r15d
jae 0x53789
movl %r12d, %edx
movl (%r11,%rcx,4), %r12d
cmpl 0x68(%rsp), %r12d
jae 0x537a8
movl (%rbx,%r9,4), %r9d
cmpl 0x28(%rsp), %r9d
jae 0x5376a
movq (%r13,%r14,8), %r14
movq (%r14,%r15,8), %r14
movq (%r14,%r12,8), %r14
incl (%r14,%r9,4)
movl %eax, %r9d
incl %eax
cmpq %r9, %rsi
movl %edx, %r12d
movl %ebp, %r15d
ja 0x5303e
incl %ecx
cmpq %rcx, 0x38(%rsp)
ja 0x53028
incl %r8d
cmpq %r8, 0x20(%rsp)
ja 0x52ff6
incl %r10d
cmpq %r10, 0x30(%rsp)
ja 0x52fbb
movq 0x8(%rsp), %rax
incq %rax
cmpq 0x98(%rsp), %rax
jne 0x52f53
xorl %ebp, %ebp
leaq 0x20bbe(%rip), %r15     # 0x73ca8
leaq 0xd0(%rsp), %r12
movl 0x4(%rsp), %r13d
xorpd %xmm0, %xmm0
movapd %xmm0, 0x50(%rsp)
movq $0x0, 0x60(%rsp)
leaq 0x20b4f(%rip), %rdi     # 0x73c60
leaq 0x50(%rsp), %rsi
callq 0x1dcba
movq 0x120(%rsp), %rax
movq (%rax), %rcx
leaq (,%rbp,2), %r14
addq %rbp, %r14
movq (%rcx,%r14,8), %rax
cmpq %rax, 0x8(%rcx,%r14,8)
je 0x53193
movl $0x1, %ebx
xorl %ecx, %ecx
movq 0x20b16(%rip), %rdx     # 0x73c60
leaq (%rdx,%r14,8), %rdi
leaq (%rax,%rcx,4), %rdx
movq 0x8(%rdi), %rsi
cmpq 0x10(%rdi), %rsi
je 0x5316a
movl (%rdx), %eax
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x8(%rdi)
jmp 0x5316f
callq 0x1e1ac
movl %ebx, %ecx
movq 0x120(%rsp), %rax
movq (%rax), %rdx
movq (%rdx,%r14,8), %rax
movq 0x8(%rdx,%r14,8), %rdx
subq %rax, %rdx
sarq $0x2, %rdx
incl %ebx
cmpq %rcx, %rdx
ja 0x53143
xorpd %xmm0, %xmm0
movapd %xmm0, 0x70(%rsp)
movq $0x0, 0x80(%rsp)
leaq 0x20ac8(%rip), %rdi     # 0x73c78
leaq 0x70(%rsp), %rsi
callq 0x1dcba
movq 0x128(%rsp), %rax
movq (%rax), %rcx
movq (%rcx,%r14,8), %rax
cmpq %rax, 0x8(%rcx,%r14,8)
je 0x53227
movl $0x1, %ebx
xorl %ecx, %ecx
movq 0x20a9a(%rip), %rdx     # 0x73c78
leaq (%rdx,%r14,8), %rdi
leaq (%rax,%rcx,4), %rdx
movq 0x8(%rdi), %rsi
cmpq 0x10(%rdi), %rsi
je 0x531fe
movl (%rdx), %eax
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x8(%rdi)
jmp 0x53203
callq 0x1e1ac
movl %ebx, %ecx
movq 0x128(%rsp), %rax
movq (%rax), %rdx
movq (%rdx,%r14,8), %rax
movq 0x8(%rdx,%r14,8), %rdx
subq %rax, %rdx
sarq $0x2, %rdx
incl %ebx
cmpq %rcx, %rdx
ja 0x531d7
xorpd %xmm0, %xmm0
movapd %xmm0, 0xa0(%rsp)
movq $0x0, 0xb0(%rsp)
leaq 0x20a49(%rip), %rdi     # 0x73c90
leaq 0xa0(%rsp), %rsi
callq 0x1dcba
movq 0x130(%rsp), %rax
movq (%rax), %rcx
movq (%rcx,%r14,8), %rax
cmpq %rax, 0x8(%rcx,%r14,8)
je 0x532c1
movl $0x1, %ebx
xorl %ecx, %ecx
movq 0x20a18(%rip), %rdx     # 0x73c90
leaq (%rdx,%r14,8), %rdi
leaq (%rax,%rcx,4), %rdx
movq 0x8(%rdi), %rsi
cmpq 0x10(%rdi), %rsi
je 0x53298
movl (%rdx), %eax
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x8(%rdi)
jmp 0x5329d
callq 0x1e1ac
movl %ebx, %ecx
movq 0x130(%rsp), %rax
movq (%rax), %rdx
movq (%rdx,%r14,8), %rax
movq 0x8(%rdx,%r14,8), %rdx
subq %rax, %rdx
sarq $0x2, %rdx
incl %ebx
cmpq %rcx, %rdx
ja 0x53271
xorpd %xmm0, %xmm0
movapd %xmm0, 0xd0(%rsp)
movq $0x0, 0xe0(%rsp)
movq %r15, %rdi
movq %r12, %rsi
callq 0x1dcba
movq 0x138(%rsp), %rax
movq (%rax), %rcx
movq (%rcx,%r14,8), %rax
cmpq %rax, 0x8(%rcx,%r14,8)
je 0x53352
movl $0x1, %ebx
xorl %ecx, %ecx
movq 0x2099f(%rip), %rdx     # 0x73ca8
leaq (%rdx,%r14,8), %rdi
leaq (%rax,%rcx,4), %rdx
movq 0x8(%rdi), %rsi
cmpq 0x10(%rdi), %rsi
je 0x53329
movl (%rdx), %eax
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x8(%rdi)
jmp 0x5332e
callq 0x1e1ac
movl %ebx, %ecx
movq 0x138(%rsp), %rax
movq (%rax), %rdx
movq (%rdx,%r14,8), %rax
movq 0x8(%rdx,%r14,8), %rdx
subq %rax, %rdx
sarq $0x2, %rdx
incl %ebx
cmpq %rcx, %rdx
ja 0x53302
movq 0xd0(%rsp), %rdi
testq %rdi, %rdi
je 0x53364
callq 0x7370
movq 0xa0(%rsp), %rdi
testq %rdi, %rdi
je 0x53376
callq 0x7370
movq 0x70(%rsp), %rdi
testq %rdi, %rdi
je 0x53385
callq 0x7370
movq 0x50(%rsp), %rdi
testq %rdi, %rdi
je 0x53394
callq 0x7370
incq %rbp
cmpq 0x98(%rsp), %rbp
jne 0x530f7
xorpd %xmm0, %xmm0
movapd %xmm0, 0x50(%rsp)
movq $0x0, 0x60(%rsp)
testl %r13d, %r13d
je 0x5367b
movl 0x150(%rsp), %eax
imull 0x148(%rsp), %eax
imull 0x140(%rsp), %eax
xorps %xmm0, %xmm0
cvtsi2sd %rax, %xmm0
movsd 0x4828(%rip), %xmm1     # 0x57c10
subsd 0xc0(%rsp), %xmm1
movsd %xmm1, 0x90(%rsp)
mulsd %xmm1, %xmm0
movsd %xmm0, 0x48(%rsp)
movl %r13d, %eax
movq %rax, 0x8(%rsp)
xorl %ebx, %ebx
movq $0x0, 0x70(%rsp)
movq 0x120(%rsp), %rax
movq (%rax), %rax
movq %rbx, 0x30(%rsp)
leaq (%rbx,%rbx,2), %rcx
movq (%rax,%rcx,8), %rdx
movq %rcx, 0x18(%rsp)
movq 0x8(%rax,%rcx,8), %rax
movq %rdx, 0x68(%rsp)
subq %rdx, %rax
movq %rax, 0x20(%rsp)
je 0x53594
sarq $0x2, 0x20(%rsp)
movq 0x70(%rsp), %rsi
movq 0x128(%rsp), %rax
movq (%rax), %rax
movq 0x18(%rsp), %rcx
movq (%rax,%rcx,8), %rdx
movq 0x8(%rax,%rcx,8), %rax
movq %rax, 0x10(%rsp)
movq %rdx, 0x28(%rsp)
subq %rdx, %rax
sarq $0x2, %rax
movq %rax, 0x38(%rsp)
movq 0x207cb(%rip), %r10     # 0x73c58
xorl %r11d, %r11d
movq 0x10(%rsp), %rax
cmpq 0x28(%rsp), %rax
je 0x53586
movq 0x130(%rsp), %rax
movq (%rax), %rax
movq 0x18(%rsp), %rcx
movq (%rax,%rcx,8), %r12
movq 0x8(%rax,%rcx,8), %rbp
movq %rbp, 0x40(%rsp)
subq %r12, %rbp
sarq $0x2, %rbp
xorl %r13d, %r13d
cmpq %r12, 0x40(%rsp)
je 0x53578
movq 0x138(%rsp), %rax
movq (%rax), %rax
movq 0x18(%rsp), %rcx
movq (%rax,%rcx,8), %r15
movq 0x8(%rax,%rcx,8), %rdx
movq %rdx, %r8
subq %r15, %r8
sarq $0x2, %r8
xorl %ebx, %ebx
cmpq %r15, %rdx
je 0x53571
movq 0x68(%rsp), %rax
movl (%rax,%r11,4), %eax
movq (%r10,%rax,8), %rax
movq 0x28(%rsp), %rcx
movl (%rcx,%r13,4), %r9d
movq (%rax,%r9,8), %rax
movl (%r12,%rbx,4), %r9d
movq (%rax,%r9,8), %r9
xorl %eax, %eax
movsd 0x48(%rsp), %xmm2
movsd 0x1b21(%rip), %xmm3     # 0x55050
movl (%r15,%rax,4), %r14d
xorps %xmm0, %xmm0
cvtsi2sdl (%r9,%r14,4), %xmm0
movapd %xmm2, %xmm1
divsd %xmm0, %xmm1
cvttsd2si %xmm1, %rcx
movq %rcx, %r14
subsd %xmm3, %xmm1
sarq $0x3f, %r14
cvttsd2si %xmm1, %rdi
andq %r14, %rdi
orq %rcx, %rdi
addq %rdi, %rsi
incq %rax
movl %eax, %ecx
cmpq %rcx, %r8
ja 0x5352f
movq %rsi, 0x70(%rsp)
incl %ebx
cmpq %rbx, %rbp
ja 0x534f8
incl %r13d
cmpq %r13, 0x38(%rsp)
ja 0x534c8
incl %r11d
cmpq %r11, 0x20(%rsp)
ja 0x53490
movsd 0x70(%rsp), %xmm0
unpcklps 0x431f(%rip), %xmm0     # xmm0 = xmm0[0],mem[0],xmm0[1],mem[1]
subpd 0x4327(%rip), %xmm0     # 0x578d0
movapd %xmm0, %xmm1
unpckhpd %xmm0, %xmm1            # xmm1 = xmm1[1],xmm0[1]
addsd %xmm0, %xmm1
divsd 0x90(%rsp), %xmm1
cvttsd2si %xmm1, %rcx
movq %rcx, %rdx
sarq $0x3f, %rdx
subsd 0x1a7e(%rip), %xmm1     # 0x55050
cvttsd2si %xmm1, %rax
andq %rdx, %rax
orq %rcx, %rax
movq %rax, 0xa0(%rsp)
movq 0x206e4(%rip), %rsi     # 0x73cd0
cmpq 0x206e5(%rip), %rsi     # 0x73cd8
je 0x5360f
movq %rax, (%rsi)
addq $0x8, %rsi
movq %rsi, 0x206cd(%rip)     # 0x73cd0
movl 0x4(%rsp), %r13d
movq 0x30(%rsp), %rbx
jmp 0x5362d
leaq 0x206b2(%rip), %rdi     # 0x73cc8
leaq 0xa0(%rsp), %rdx
callq 0x2418c
movl 0x4(%rsp), %r13d
movq 0x30(%rsp), %rbx
movq 0x20694(%rip), %rax     # 0x73cc8
movq (%rax,%rbx,8), %rax
addq %rax, 0x206e1(%rip)     # 0x73d20
movq 0x58(%rsp), %rsi
cmpq 0x60(%rsp), %rsi
je 0x5365e
movq 0x70(%rsp), %rax
movq %rax, (%rsi)
addq $0x8, %rsi
movq %rsi, 0x58(%rsp)
jmp 0x5366d
leaq 0x50(%rsp), %rdi
leaq 0x70(%rsp), %rdx
callq 0x3166c
incq %rbx
cmpq 0x8(%rsp), %rbx
jne 0x5340e
movq $0x0, 0x206a2(%rip) # 0x73d28
testl %r13d, %r13d
je 0x53742
movl %r13d, %r13d
xorl %ebp, %ebp
leaq 0x20645(%rip), %rbx     # 0x73ce0
leaq 0x20686(%rip), %r14     # 0x73d28
leaq 0x2064f(%rip), %r15     # 0x73cf8
leaq 0x70(%rsp), %r12
movq 0x20633(%rip), %rsi     # 0x73ce8
cmpq 0x20634(%rip), %rsi     # 0x73cf0
je 0x536d5
movq 0x20663(%rip), %rax     # 0x73d28
movq %rax, (%rsi)
addq $0x8, %rsi
movq %rsi, 0x20615(%rip)     # 0x73ce8
jmp 0x536e0
movq %rbx, %rdi
movq %r14, %rdx
callq 0x3166c
movq 0x20641(%rip), %rax     # 0x73d28
movq 0x50(%rsp), %rcx
movq (%rcx,%rbp,8), %rcx
addq %rcx, %rax
decq %rax
movq %rax, 0x70(%rsp)
movq 0x205fe(%rip), %rsi     # 0x73d00
cmpq 0x205ff(%rip), %rsi     # 0x73d08
je 0x5371b
movq %rax, (%rsi)
addq $0x8, %rsi
movq %rsi, 0x205e7(%rip)     # 0x73d00
jmp 0x53726
movq %r15, %rdi
movq %r12, %rdx
callq 0x2418c
movq 0x50(%rsp), %rax
movq (%rax,%rbp,8), %rax
addq %rax, 0x205f2(%rip)     # 0x73d28
incq %rbp
cmpq %rbp, %r13
jne 0x536ae
movb $0x1, 0x2057b(%rip)     # 0x73cc4
movq 0x50(%rsp), %rdi
testq %rdi, %rdi
je 0x53758
callq 0x7370
addq $0xe8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x1b87f(%rip), %rbx     # 0x6eff0
leaq 0x2e30(%rip), %rsi      # 0x565a8
movq %rbx, %rdi
callq 0x7390
leaq 0x50de(%rip), %rsi      # 0x58865
jmp 0x537e4
movq 0x1b860(%rip), %rbx     # 0x6eff0
leaq 0x2e11(%rip), %rsi      # 0x565a8
movq %rbx, %rdi
callq 0x7390
leaq 0x5070(%rip), %rsi      # 0x58816
jmp 0x537e4
movq 0x1b841(%rip), %rbx     # 0x6eff0
leaq 0x2df2(%rip), %rsi      # 0x565a8
movq %rbx, %rdi
callq 0x7390
leaq 0x5079(%rip), %rsi      # 0x5883e
jmp 0x537e4
movq 0x1b822(%rip), %rbx     # 0x6eff0
leaq 0x2dd3(%rip), %rsi      # 0x565a8
movq %rbx, %rdi
callq 0x7390
leaq 0x5007(%rip), %rsi      # 0x587eb
movq %rbx, %rdi
callq 0x7390
movq %rax, %rdi
movq 0x8(%rsp), %rsi
callq 0x74c0
movq %rax, %rdi
callq 0x71c0
movq 0x1b7c8(%rip), %rdi     # 0x6efd0
callq 0x7430
movl $0x1, %edi
callq 0x7440
jmp 0x53827
jmp 0x5383e
jmp 0x53855
jmp 0x53869
jmp 0x53869
jmp 0x53869
jmp 0x53869
jmp 0x53869
movq %rax, %rbx
movq 0xd0(%rsp), %rdi
testq %rdi, %rdi
je 0x53841
callq 0x7370
jmp 0x53841
movq %rax, %rbx
movq 0xa0(%rsp), %rdi
testq %rdi, %rdi
je 0x53858
callq 0x7370
jmp 0x53858
movq %rax, %rbx
movq 0x70(%rsp), %rdi
testq %rdi, %rdi
je 0x5386c
callq 0x7370
jmp 0x5386c
movq %rax, %rbx
movq 0x50(%rsp), %rdi
testq %rdi, %rdi
je 0x5387b
callq 0x7370
movq %rbx, %rdi
callq 0x7620
nop