// File: /workspace/github_cpp_makefile_star2_O3/mittman[P]project254/datarate.cpp
// Function: DataRate::GigaOrTera[abi:cxx11](float)
string const DataRate::GigaOrTera(float const megabits) {
	float speed = 0;
	string unit = "";

	if(megabits >= 1000) {
		speed = megabits / 1000;
		speed = floor(speed * 100.0) / 100.0;
		unit = " Gigabits/s";
	}
	else if (megabits >= 1000000) {
		speed = megabits / 1000000;
		speed = floor(speed * 100.0) / 100.0;
		unit = " Terabits/s";
	}
	else {
		speed = megabits;
		speed = floor(speed * 100.0) / 100.0;
		unit = " Megabits/s";
	}

	ostringstream ss;
	ss << speed;
	return ss.str() + unit;
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x1c8, %rsp            # imm = 0x1C8
movss %xmm0, 0x8(%rsp)
movq %rdi, %rbx
leaq 0x20(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x6e8c(%rip), %rdx      # 0xa0b7
leaq 0x10(%rsp), %rdi
movq %rdx, %rsi
callq 0x313c
movss 0x8(%rsp), %xmm0
ucomiss 0x6e1f(%rip), %xmm0     # 0xa064
jae 0x3286
ucomiss 0x6e1a(%rip), %xmm0     # 0xa068
jae 0x32c4
cvtss2sd %xmm0, %xmm0
mulsd 0x6e14(%rip), %xmm0     # 0xa070
callq 0x2300
movsd %xmm0, 0x8(%rsp)
leaq 0x10(%rsp), %rdi
movq 0x8(%rdi), %rdx
leaq 0x6e19(%rip), %rcx      # 0xa090
movl $0xb, %r8d
xorl %esi, %esi
callq 0x22a0
jmp 0x3300
divss 0x6dd6(%rip), %xmm0     # 0xa064
cvtss2sd %xmm0, %xmm0
mulsd 0x6dd6(%rip), %xmm0     # 0xa070
callq 0x2300
movsd %xmm0, 0x8(%rsp)
leaq 0x10(%rsp), %rdi
movq 0x8(%rdi), %rdx
leaq 0x6dc3(%rip), %rcx      # 0xa078
movl $0xb, %r8d
xorl %esi, %esi
callq 0x22a0
jmp 0x3300
divss 0x6d9c(%rip), %xmm0     # 0xa068
cvtss2sd %xmm0, %xmm0
mulsd 0x6d98(%rip), %xmm0     # 0xa070
callq 0x2300
movsd %xmm0, 0x8(%rsp)
leaq 0x10(%rsp), %rdi
movq 0x8(%rdi), %rdx
leaq 0x6d91(%rip), %rcx      # 0xa084
movl $0xb, %r8d
xorl %esi, %esi
callq 0x22a0
leaq 0x50(%rsp), %rdi
callq 0x2240
movsd 0x8(%rsp), %xmm0
divsd 0x6d58(%rip), %xmm0     # 0xa070
cvtsd2ss %xmm0, %xmm0
cvtss2sd %xmm0, %xmm0
leaq 0x50(%rsp), %rdi
callq 0x22c0
leaq 0x58(%rsp), %rsi
leaq 0x30(%rsp), %rdi
callq 0x22b0
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
leaq 0x30(%rsp), %rdi
callq 0x2080
leaq 0x10(%rbx), %rdx
movq %rdx, (%rbx)
movq (%rax), %rsi
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rsi
je 0x336f
movq %rsi, (%rbx)
movq (%rcx), %rdx
movq %rdx, 0x10(%rbx)
jmp 0x3375
movups (%rcx), %xmm0
movups %xmm0, (%rdx)
movq 0x8(%rax), %rdx
movq %rdx, 0x8(%rbx)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x40(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x33a7
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x21e0
movq 0x9c1a(%rip), %rsi      # 0xcfc8
leaq 0x50(%rsp), %rdi
callq 0x20d0
leaq 0xc0(%rsp), %rdi
callq 0x2090
movq 0x10(%rsp), %rdi
cmpq %r14, %rdi
je 0x33dc
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x21e0
movq %rbx, %rax
addq $0x1c8, %rsp            # imm = 0x1C8
popq %rbx
popq %r14
retq
movq %rax, %rbx
leaq 0x40(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x340f
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x21e0
jmp 0x340f
jmp 0x340c
movq %rax, %rbx
movq 0x9bb2(%rip), %rsi      # 0xcfc8
leaq 0x50(%rsp), %rdi
callq 0x20d0
leaq 0xc0(%rsp), %rdi
callq 0x2090
jmp 0x3434
jmp 0x3431
movq %rax, %rbx
movq 0x10(%rsp), %rdi
cmpq %r14, %rdi
je 0x344b
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x21e0
movq %rbx, %rdi
callq 0x2330
nop