#include <iostream>
#include <sstream>
#include <iomanip>

const int width = 34;

static void cudaSafeCall(cudaError_t err)
{
	if (err != cudaSuccess)
	{
		std::cerr << cudaGetErrorString(err) << std::endl;
		exit(1);
	}
}

static int getCoreNumPerSP(int major, int minor)
{
	switch (major)
	{
		case 2:
		{
			if (minor == 0)
			{
				return 32;
			}
			else if (minor == 1)
			{
				return 48;
			}
			else
			{
				return 0;
			}
		}
		case 3:
		{
			return 192;
		}
		case 5:
		{
			return 128;
		}
		case 6:
		{
			if (minor == 0)
			{
				return 64;
			}
			else if ((minor == 1) || (minor == 2))
			{
				return 128;
			}
			else
			{
				return 0;
			}
		}
		default:
		{
			return 0;
		}
	}
}

static std::string formatSize(size_t size)
{
	std::ostringstream stringStream;

	stringStream.precision(1);
	stringStream << std::fixed;

	if (size < 1024 * 10)
	{
		stringStream << size;
	}
	else if (size < 1024 * 1024 * 10)
	{
		stringStream << (float)size / 1024 << " KiB";
	}
	else if (size < size_t(1024) * size_t(1024) * size_t(1024) * size_t(10))
	{
		stringStream << (float)size / (1024 * 1024) << " MiB";
	}
	else
	{
		stringStream << (float)size / (1024 * 1024 * 1024) << " GiB";
	}
	return stringStream.str();
}

static void displayDeviceProperties(cudaDeviceProp& prop, int device)
{
	std::cout << std::setw(width) << std::left << "GPU Device ID:" << device << std::endl;
	std::cout << std::setw(width) << std::left << "  Name:" << prop.name << std::endl;
	std::cout << std::setw(width) << std::left << "  Compute Capability:" << prop.major << "." << prop.minor << std::endl;
	std::cout << std::setw(width) << std::left << "  MultiProcessor(s):" << prop.multiProcessorCount << std::endl;
	std::cout << std::setw(width) << std::left << "  Cores Per MultiProcessor:" << getCoreNumPerSP(prop.major, prop.minor) << std::endl;
	std::cout << std::setw(width) << std::left << "  Max Threads Per MultiProcessor:" << prop.maxThreadsPerMultiProcessor << std::endl;
	std::cout << std::setw(width) << std::left << "  Clock Rate:" << prop.clockRate / (1000) << " MHz" << std::endl;
	std::cout << std::setw(width) << std::left << "  Warp Size:" << prop.warpSize << std::endl;
	std::cout << std::setw(width) << std::left << "  L2 Cache Size:" << formatSize(prop.l2CacheSize) << std::endl;
	std::cout << std::setw(width) << std::left << "  Global Memory Size:" << formatSize(prop.totalGlobalMem) << std::endl;
	std::cout << std::setw(width) << std::left << "  Constant Memory Size:" << formatSize(prop.totalConstMem) << std::endl;
	std::cout << std::setw(width) << std::left << "  One-Dimension Texture Size:" << prop.maxTexture1D << std::endl;
	std::cout << std::setw(width) << std::left << "  Two-Dimension Texture Size:" << prop.maxTexture2D[0] << " x "
			<< prop.maxTexture2D[1] << std::endl;
	std::cout << std::setw(width) << std::left << "  Three-Dimension Texture Size:" << prop.maxTexture3D[0] << " x "
			<< prop.maxTexture3D[1] << " x " << prop.maxTexture3D[2] << std::endl;
	std::cout << std::setw(width) << std::left << "  Shared Memory Size Per Block:" << formatSize(prop.sharedMemPerBlock) << std::endl;
	std::cout << std::setw(width) << std::left << "  Max Threads Per Block:" << prop.maxThreadsPerBlock << std::endl;
	std::cout << std::setw(width) << std::left << "  Registers Per Block:" << prop.regsPerBlock << std::endl;
	std::cout << std::setw(width) << std::left << "  Block Dimension:" << prop.maxThreadsDim[0] << " x "
			<< prop.maxThreadsDim[1] << " x " << prop.maxThreadsDim[2] << std::endl;
	std::cout << std::setw(width) << std::left << "  Grid Dimension:" << prop.maxGridSize[0] << " x "
			<< prop.maxGridSize[1] << " x " << prop.maxGridSize[2] << std::endl;
	std::cout << std::setw(width) << std::left << "  Unified address space:" << std::boolalpha << (prop.unifiedAddressing ? true : false) << std::endl;
	
	return;
}

int main(void)
{
	int gpuCount = 0;
	cudaSafeCall(cudaGetDeviceCount(&gpuCount));

	int runtimeVersion = 0;
	cudaSafeCall(cudaRuntimeGetVersion(&runtimeVersion));

	int driverVersion = 0;
	cudaSafeCall(cudaDriverGetVersion(&driverVersion));

	cudaDeviceProp *prop = new cudaDeviceProp[gpuCount];
	if (prop == NULL)
	{
		std::cout << "The memory is too small, and please enlarge it, thanks!" << std::endl;
		exit(1);
	}

	for (int i = 0; i < gpuCount; i++)
	{
		cudaSafeCall(cudaGetDeviceProperties(prop + i, i));
	}

	std::cout << std::setw(width) << std::left << "CUDA Runtime Version:" << runtimeVersion / 1000 << "." << (runtimeVersion % 100) / 10 << std::endl;
	std::cout << std::setw(width) << std::left << "CUDA Driver Version:" << driverVersion / 1000 << "." << (driverVersion % 100) / 10 << std::endl;
	std::cout << std::setw(width) << std::left << "GPU(s):" << gpuCount << std::endl;

	for (int i = 0; i < gpuCount; i++)
	{
		displayDeviceProperties(prop[i], i);
	}

	delete[] prop;
	return 0;
}



	.file	"tmpxft_002acfa3_00000000-6_lscuda.cudafe1.cpp"
	.text
#APP
	.globl _ZSt21ios_base_library_initv

#NO_APP
	.section	.text._ZSt9boolalphaRSt8ios_base,"axG",@progbits,_ZSt9boolalphaRSt8ios_base,comdat
	.weak	_ZSt9boolalphaRSt8ios_base
	.type	_ZSt9boolalphaRSt8ios_base, @function
_ZSt9boolalphaRSt8ios_base:
.LFB3265:
	.cfi_startproc
	endbr64
	orl	$1, 24(%rdi)
	movq	%rdi, %rax
	ret
	.cfi_endproc
.LFE3265:
	.size	_ZSt9boolalphaRSt8ios_base, .-_ZSt9boolalphaRSt8ios_base
	.section	.text._ZSt4leftRSt8ios_base,"axG",@progbits,_ZSt4leftRSt8ios_base,comdat
	.weak	_ZSt4leftRSt8ios_base
	.type	_ZSt4leftRSt8ios_base, @function
_ZSt4leftRSt8ios_base:
.LFB3280:
	.cfi_startproc
	endbr64
	movl	24(%rdi), %edx
	movq	%rdi, %rax
	andb	$79, %dl
	orl	$32, %edx
	movl	%edx, 24(%rdi)
	ret
	.cfi_endproc
.LFE3280:
	.size	_ZSt4leftRSt8ios_base, .-_ZSt4leftRSt8ios_base
	.section	.text._ZSt5fixedRSt8ios_base,"axG",@progbits,_ZSt5fixedRSt8ios_base,comdat
	.weak	_ZSt5fixedRSt8ios_base
	.type	_ZSt5fixedRSt8ios_base, @function
_ZSt5fixedRSt8ios_base:
.LFB3285:
	.cfi_startproc
	endbr64
	movl	24(%rdi), %edx
	movq	%rdi, %rax
	andl	$-261, %edx
	orl	$4, %edx
	movl	%edx, 24(%rdi)
	ret
	.cfi_endproc
.LFE3285:
	.size	_ZSt5fixedRSt8ios_base, .-_ZSt5fixedRSt8ios_base
	.text
	.type	_ZL26__cudaUnregisterBinaryUtilv, @function
_ZL26__cudaUnregisterBinaryUtilv:
.LFB3922:
	.cfi_startproc
	endbr64
	movq	_ZL20__cudaFatCubinHandle(%rip), %rdi
	jmp	__cudaUnregisterFatBinary@PLT
	.cfi_endproc
.LFE3922:
	.size	_ZL26__cudaUnregisterBinaryUtilv, .-_ZL26__cudaUnregisterBinaryUtilv
	.align 2
	.type	_ZNSolsEPFRSoS_E.isra.0, @function
_ZNSolsEPFRSoS_E.isra.0:
.LFB4670:
	.cfi_startproc
	jmp	*%rsi
	.cfi_endproc
.LFE4670:
	.size	_ZNSolsEPFRSoS_E.isra.0, .-_ZNSolsEPFRSoS_E.isra.0
	.type	_ZL12cudaSafeCall9cudaError, @function
_ZL12cudaSafeCall9cudaError:
.LFB3915:
	.cfi_startproc
	testl	%edi, %edi
	je	.L6
	pushq	%rax
	.cfi_def_cfa_offset 16
	call	cudaGetErrorString@PLT
	leaq	_ZSt4cerr(%rip), %rdi
	movq	%rax, %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	movl	$1, %edi
	call	exit@PLT
.L6:
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE3915:
	.size	_ZL12cudaSafeCall9cudaError, .-_ZL12cudaSafeCall9cudaError
	.section	.text.startup,"ax",@progbits
	.type	_ZL24__sti____cudaRegisterAllv, @function
_ZL24__sti____cudaRegisterAllv:
.LFB3945:
	.cfi_startproc
	endbr64
	pushq	%rax
	.cfi_def_cfa_offset 16
	leaq	_ZL15__fatDeviceText(%rip), %rdi
	call	__cudaRegisterFatBinary@PLT
	movq	%rax, %rdi
	movq	%rax, _ZL20__cudaFatCubinHandle(%rip)
	call	__cudaRegisterFatBinaryEnd@PLT
	leaq	_ZL26__cudaUnregisterBinaryUtilv(%rip), %rdi
	popq	%rdx
	.cfi_def_cfa_offset 8
	jmp	atexit@PLT
	.cfi_endproc
.LFE3945:
	.size	_ZL24__sti____cudaRegisterAllv, .-_ZL24__sti____cudaRegisterAllv
	.section	.init_array,"aw"
	.align 8
	.quad	_ZL24__sti____cudaRegisterAllv
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	" KiB"
.LC3:
	.string	" MiB"
.LC5:
	.string	" GiB"
	.text
	.type	_ZL10formatSizem, @function
_ZL10formatSizem:
.LFB3917:
	.cfi_startproc
	.cfi_personality 0x9b,DW.ref.__gxx_personality_v0
	.cfi_lsda 0x1b,.LLSDA3917
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	movq	%rdi, %r12
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	movq	%rsi, %rbx
	subq	$384, %rsp
	.cfi_def_cfa_offset 416
	movq	%fs:40, %rax
	movq	%rax, 376(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rbp
	movq	%rbp, %rdi
.LEHB0:
	call	_ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEC1Ev@PLT
.LEHE0:
	leaq	_ZSt5fixedRSt8ios_base(%rip), %rsi
	movq	%rbp, %rdi
	movq	$1, 120(%rsp)
.LEHB1:
	call	_ZNSolsEPFRSt8ios_baseS0_E@PLT
	cmpq	$10239, %rbx
	ja	.L15
	movq	%rbx, %rsi
	movq	%rbp, %rdi
	call	_ZNSo9_M_insertImEERSoT_@PLT
.L18:
	leaq	8(%rsp), %rsi
	movq	%r12, %rdi
	call	_ZNKSt7__cxx1115basic_stringbufIcSt11char_traitsIcESaIcEE3strEv@PLT
	jmp	.L32
.L15:
	cmpq	$10485759, %rbx
	ja	.L17
	cvtsi2ssq	%rbx, %xmm0
	mulss	.LC0(%rip), %xmm0
	movq	%rbp, %rdi
	cvtss2sd	%xmm0, %xmm0
	call	_ZNSo9_M_insertIdEERSoT_@PLT
	movq	%rax, %rdi
	leaq	.LC1(%rip), %rsi
	jmp	.L30
.L17:
	movabsq	$10737418239, %rax
	cmpq	%rbx, %rax
	jb	.L19
	cvtsi2ssq	%rbx, %xmm0
	mulss	.LC2(%rip), %xmm0
	movq	%rbp, %rdi
	cvtss2sd	%xmm0, %xmm0
	call	_ZNSo9_M_insertIdEERSoT_@PLT
	movq	%rax, %rdi
	leaq	.LC3(%rip), %rsi
	jmp	.L30
.L19:
	testq	%rbx, %rbx
	js	.L20
	cvtsi2ssq	%rbx, %xmm0
	jmp	.L21
.L20:
	movq	%rbx, %rax
	andl	$1, %ebx
	shrq	%rax
	orq	%rbx, %rax
	cvtsi2ssq	%rax, %xmm0
	addss	%xmm0, %xmm0
.L21:
	mulss	.LC4(%rip), %xmm0
	movq	%rbp, %rdi
	cvtss2sd	%xmm0, %xmm0
	call	_ZNSo9_M_insertIdEERSoT_@PLT
	movq	%rax, %rdi
	leaq	.LC5(%rip), %rsi
.L30:
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
.LEHE1:
	jmp	.L18
.L32:
	movq	%rbp, %rdi
	call	_ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEED1Ev@PLT
	movq	376(%rsp), %rax
	subq	%fs:40, %rax
	je	.L24
	jmp	.L27
.L25:
	endbr64
	movq	%rax, %rbx
.L22:
	movq	%rbp, %rdi
	call	_ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEED1Ev@PLT
	movq	376(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L27
	movq	%rbx, %rdi
.LEHB2:
	call	_Unwind_Resume@PLT
.LEHE2:
.L27:
	call	__stack_chk_fail@PLT
.L24:
	addq	$384, %rsp
	.cfi_def_cfa_offset 32
	movq	%r12, %rax
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE3917:
	.globl	__gxx_personality_v0
	.section	.gcc_except_table,"a",@progbits
.LLSDA3917:
	.byte	0xff
	.byte	0xff
	.byte	0x1
	.uleb128 .LLSDACSE3917-.LLSDACSB3917
.LLSDACSB3917:
	.uleb128 .LEHB0-.LFB3917
	.uleb128 .LEHE0-.LEHB0
	.uleb128 0
	.uleb128 0
	.uleb128 .LEHB1-.LFB3917
	.uleb128 .LEHE1-.LEHB1
	.uleb128 .L25-.LFB3917
	.uleb128 0
	.uleb128 .LEHB2-.LFB3917
	.uleb128 .LEHE2-.LEHB2
	.uleb128 0
	.uleb128 0
.LLSDACSE3917:
	.text
	.size	_ZL10formatSizem, .-_ZL10formatSizem
	.section	.rodata.str1.1
.LC6:
	.string	"CUDA Runtime Version:"
.LC7:
	.string	"."
.LC8:
	.string	"CUDA Driver Version:"
.LC9:
	.string	"GPU(s):"
.LC10:
	.string	"GPU Device ID:"
.LC11:
	.string	"  Name:"
.LC12:
	.string	"  Compute Capability:"
.LC13:
	.string	"  MultiProcessor(s):"
.LC14:
	.string	"  Cores Per MultiProcessor:"
.LC15:
	.string	"  Max Threads Per MultiProcessor:"
.LC16:
	.string	"  Clock Rate:"
.LC17:
	.string	" MHz"
.LC18:
	.string	"  Warp Size:"
.LC19:
	.string	"  L2 Cache Size:"
.LC20:
	.string	"  Global Memory Size:"
.LC21:
	.string	"  Constant Memory Size:"
.LC22:
	.string	"  One-Dimension Texture Size:"
.LC23:
	.string	"  Two-Dimension Texture Size:"
.LC24:
	.string	" x "
.LC25:
	.string	"  Three-Dimension Texture Size:"
.LC26:
	.string	"  Shared Memory Size Per Block:"
.LC27:
	.string	"  Max Threads Per Block:"
.LC28:
	.string	"  Registers Per Block:"
.LC29:
	.string	"  Block Dimension:"
.LC30:
	.string	"  Grid Dimension:"
.LC31:
	.string	"  Unified address space:"
	.section	.text.startup
	.globl	main
	.type	main, @function
main:
.LFB3919:
	.cfi_startproc
	.cfi_personality 0x9b,DW.ref.__gxx_personality_v0
	.cfi_lsda 0x1b,.LLSDA3919
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$88, %rsp
	.cfi_def_cfa_offset 144
	movq	%fs:40, %rax
	movq	%rax, 72(%rsp)
	xorl	%eax, %eax
	leaq	28(%rsp), %rdi
	xorl	%eax, %eax
	movl	%eax, 28(%rsp)
.LEHB3:
	call	cudaGetDeviceCount@PLT
	movl	%eax, %edi
	call	_ZL12cudaSafeCall9cudaError
	xorl	%edx, %edx
	leaq	32(%rsp), %rdi
	movl	%edx, 32(%rsp)
	call	cudaRuntimeGetVersion@PLT
	movl	%eax, %edi
	call	_ZL12cudaSafeCall9cudaError
	xorl	%ecx, %ecx
	leaq	36(%rsp), %rdi
	movl	%ecx, 36(%rsp)
	call	cudaDriverGetVersion@PLT
	movl	%eax, %edi
	call	_ZL12cudaSafeCall9cudaError
	movslq	28(%rsp), %rdi
	movabsq	$8937376004704240, %rax
	cmpq	%rdi, %rax
	jb	.L34
	imulq	$1032, %rdi, %rdi
	xorl	%ebx, %ebx
	call	_Znam@PLT
	movq	%rax, %r13
	movq	%rax, %rbp
	movq	%rax, %r12
	jmp	.L35
.L34:
	movq	72(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L64
	call	__cxa_throw_bad_array_new_length@PLT
.L35:
	cmpl	%ebx, 28(%rsp)
	jle	.L66
	movl	%ebx, %esi
	movq	%r12, %rdi
	incl	%ebx
	addq	$1032, %r12
	call	cudaGetDeviceProperties_v2@PLT
	movl	%eax, %edi
	call	_ZL12cudaSafeCall9cudaError
	jmp	.L35
.L66:
	movq	_ZSt4cout(%rip), %rax
	leaq	_ZSt4cout(%rip), %rbx
	leaq	_ZSt4leftRSt8ios_base(%rip), %rsi
	movl	$1000, %r15d
	movq	%rbx, %rdi
	movl	$100, %r14d
	movl	$10, %r12d
	movq	-24(%rax), %rax
	movq	$34, 16(%rbx,%rax)
	call	_ZNSolsEPFRSt8ios_baseS0_E@PLT
	leaq	.LC6(%rip), %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	movl	32(%rsp), %eax
	cltd
	idivl	%r15d
	movl	%eax, %esi
	call	_ZNSolsEi@PLT
	leaq	.LC7(%rip), %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	movl	32(%rsp), %eax
	cltd
	idivl	%r14d
	movl	%edx, %eax
	cltd
	idivl	%r12d
	movl	%eax, %esi
	call	_ZNSolsEi@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	movq	_ZSt4cout(%rip), %rax
	leaq	_ZSt4leftRSt8ios_base(%rip), %rsi
	movq	%rbx, %rdi
	movq	-24(%rax), %rax
	movq	$34, 16(%rbx,%rax)
	call	_ZNSolsEPFRSt8ios_baseS0_E@PLT
	leaq	.LC8(%rip), %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	movl	36(%rsp), %eax
	cltd
	idivl	%r15d
	movl	%eax, %esi
	call	_ZNSolsEi@PLT
	leaq	.LC7(%rip), %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	movl	36(%rsp), %eax
	cltd
	idivl	%r14d
	xorl	%r14d, %r14d
	movl	%edx, %eax
	cltd
	idivl	%r12d
	movl	%eax, %esi
	call	_ZNSolsEi@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	movq	_ZSt4cout(%rip), %rax
	leaq	_ZSt4leftRSt8ios_base(%rip), %rsi
	movq	%rbx, %rdi
	movq	-24(%rax), %rax
	movq	$34, 16(%rbx,%rax)
	call	_ZNSolsEPFRSt8ios_baseS0_E@PLT
	leaq	.LC9(%rip), %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	28(%rsp), %esi
	movq	%rax, %rdi
	call	_ZNSolsEi@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
.L38:
	cmpl	%r14d, 28(%rsp)
	jle	.L67
	movq	(%rbx), %rax
	leaq	_ZSt4leftRSt8ios_base(%rip), %rsi
	movq	%rbx, %rdi
	movq	-24(%rax), %rax
	movq	$34, 16(%rbx,%rax)
	call	_ZNSolsEPFRSt8ios_baseS0_E@PLT
	leaq	.LC10(%rip), %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	%r14d, %esi
	movq	%rax, %rdi
	call	_ZNSolsEi@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	movq	(%rbx), %rax
	leaq	_ZSt4leftRSt8ios_base(%rip), %rsi
	movq	%rbx, %rdi
	movq	-24(%rax), %rax
	movq	$34, 16(%rbx,%rax)
	call	_ZNSolsEPFRSt8ios_baseS0_E@PLT
	leaq	.LC11(%rip), %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rbp, %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	movq	(%rbx), %rax
	leaq	_ZSt4leftRSt8ios_base(%rip), %rsi
	movq	%rbx, %rdi
	movq	-24(%rax), %rax
	movq	$34, 16(%rbx,%rax)
	call	_ZNSolsEPFRSt8ios_baseS0_E@PLT
	leaq	.LC12(%rip), %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	360(%rbp), %esi
	movq	%rax, %rdi
	call	_ZNSolsEi@PLT
	leaq	.LC7(%rip), %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	364(%rbp), %esi
	movq	%rax, %rdi
	call	_ZNSolsEi@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	movq	(%rbx), %rax
	leaq	_ZSt4leftRSt8ios_base(%rip), %rsi
	movq	%rbx, %rdi
	movq	-24(%rax), %rax
	movq	$34, 16(%rbx,%rax)
	call	_ZNSolsEPFRSt8ios_baseS0_E@PLT
	leaq	.LC13(%rip), %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	388(%rbp), %esi
	movq	%rax, %rdi
	call	_ZNSolsEi@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	movq	(%rbx), %rax
	leaq	_ZSt4leftRSt8ios_base(%rip), %rsi
	movq	%rbx, %rdi
	movq	-24(%rax), %rax
	movq	$34, 16(%rbx,%rax)
	call	_ZNSolsEPFRSt8ios_baseS0_E@PLT
	leaq	.LC14(%rip), %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	360(%rbp), %edx
	movl	$128, %esi
	movq	%rax, %rdi
	movl	364(%rbp), %eax
	cmpl	$5, %edx
	je	.L39
	jg	.L40
	cmpl	$2, %edx
	je	.L41
	xorl	%esi, %esi
	movl	$192, %eax
	cmpl	$3, %edx
	cmove	%eax, %esi
	jmp	.L39
.L40:
	xorl	%esi, %esi
	cmpl	$6, %edx
	je	.L68
	jmp	.L39
.L41:
	movl	$32, %esi
	testl	%eax, %eax
	je	.L39
	decl	%eax
	movl	$48, %esi
	movl	$0, %eax
	cmovne	%eax, %esi
	jmp	.L39
.L68:
	movl	$64, %esi
	testl	%eax, %eax
	je	.L39
	decl	%eax
	xorl	%esi, %esi
	cmpl	$1, %eax
	setbe	%sil
	sall	$7, %esi
.L39:
	call	_ZNSolsEi@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	movq	(%rbx), %rax
	leaq	_ZSt4leftRSt8ios_base(%rip), %rsi
	movq	%rbx, %rdi
	movq	-24(%rax), %rax
	movq	$34, 16(%rbx,%rax)
	call	_ZNSolsEPFRSt8ios_baseS0_E@PLT
	leaq	.LC15(%rip), %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	624(%rbp), %esi
	movq	%rax, %rdi
	call	_ZNSolsEi@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	movq	(%rbx), %rax
	leaq	_ZSt4leftRSt8ios_base(%rip), %rsi
	movq	%rbx, %rdi
	movq	-24(%rax), %rax
	movq	$34, 16(%rbx,%rax)
	call	_ZNSolsEPFRSt8ios_baseS0_E@PLT
	leaq	.LC16(%rip), %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	$1000, %ecx
	movq	%rax, %rdi
	movl	348(%rbp), %eax
	cltd
	idivl	%ecx
	movl	%eax, %esi
	call	_ZNSolsEi@PLT
	leaq	.LC17(%rip), %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	movq	(%rbx), %rax
	leaq	_ZSt4leftRSt8ios_base(%rip), %rsi
	movq	%rbx, %rdi
	movq	-24(%rax), %rax
	movq	$34, 16(%rbx,%rax)
	call	_ZNSolsEPFRSt8ios_baseS0_E@PLT
	leaq	.LC18(%rip), %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	308(%rbp), %esi
	movq	%rax, %rdi
	call	_ZNSolsEi@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	movq	(%rbx), %rax
	leaq	_ZSt4leftRSt8ios_base(%rip), %rsi
	movq	%rbx, %rdi
	movq	-24(%rax), %rax
	movq	$34, 16(%rbx,%rax)
	call	_ZNSolsEPFRSt8ios_baseS0_E@PLT
	leaq	.LC19(%rip), %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movslq	616(%rbp), %rsi
	movq	%rax, %r12
	leaq	40(%rsp), %rax
	movq	%rax, %rdi
	movq	%rax, 8(%rsp)
	call	_ZL10formatSizem
.LEHE3:
	movq	8(%rsp), %rsi
	movq	%r12, %rdi
.LEHB4:
	call	_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
.LEHE4:
	movq	8(%rsp), %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	movq	(%rbx), %rax
	leaq	_ZSt4leftRSt8ios_base(%rip), %rsi
	movq	%rbx, %rdi
	movq	-24(%rax), %rax
	movq	$34, 16(%rbx,%rax)
.LEHB5:
	call	_ZNSolsEPFRSt8ios_baseS0_E@PLT
	leaq	.LC20(%rip), %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	288(%rbp), %rsi
	movq	8(%rsp), %rdi
	movq	%rax, %r12
	call	_ZL10formatSizem
.LEHE5:
	movq	8(%rsp), %rsi
	movq	%r12, %rdi
.LEHB6:
	call	_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
.LEHE6:
	movq	8(%rsp), %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	movq	(%rbx), %rax
	leaq	_ZSt4leftRSt8ios_base(%rip), %rsi
	movq	%rbx, %rdi
	movq	-24(%rax), %rax
	movq	$34, 16(%rbx,%rax)
.LEHB7:
	call	_ZNSolsEPFRSt8ios_baseS0_E@PLT
	leaq	.LC21(%rip), %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	352(%rbp), %rsi
	movq	8(%rsp), %rdi
	movq	%rax, %r12
	call	_ZL10formatSizem
.LEHE7:
	movq	8(%rsp), %rsi
	movq	%r12, %rdi
.LEHB8:
	call	_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
.LEHE8:
	movq	8(%rsp), %rdi
	leaq	.LC24(%rip), %r12
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	movq	(%rbx), %rax
	leaq	_ZSt4leftRSt8ios_base(%rip), %rsi
	movq	%rbx, %rdi
	movq	-24(%rax), %rax
	movq	$34, 16(%rbx,%rax)
.LEHB9:
	call	_ZNSolsEPFRSt8ios_baseS0_E@PLT
	leaq	.LC22(%rip), %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	408(%rbp), %esi
	movq	%rax, %rdi
	call	_ZNSolsEi@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	movq	(%rbx), %rax
	leaq	_ZSt4leftRSt8ios_base(%rip), %rsi
	movq	%rbx, %rdi
	movq	-24(%rax), %rax
	movq	$34, 16(%rbx,%rax)
	call	_ZNSolsEPFRSt8ios_baseS0_E@PLT
	leaq	.LC23(%rip), %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	420(%rbp), %esi
	movq	%rax, %rdi
	call	_ZNSolsEi@PLT
	movq	%r12, %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	424(%rbp), %esi
	movq	%rax, %rdi
	call	_ZNSolsEi@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	movq	(%rbx), %rax
	leaq	_ZSt4leftRSt8ios_base(%rip), %rsi
	movq	%rbx, %rdi
	movq	-24(%rax), %rax
	movq	$34, 16(%rbx,%rax)
	call	_ZNSolsEPFRSt8ios_baseS0_E@PLT
	leaq	.LC25(%rip), %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	456(%rbp), %esi
	movq	%rax, %rdi
	call	_ZNSolsEi@PLT
	movq	%r12, %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	460(%rbp), %esi
	movq	%rax, %rdi
	call	_ZNSolsEi@PLT
	movq	%r12, %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	464(%rbp), %esi
	movq	%rax, %rdi
	call	_ZNSolsEi@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	movq	(%rbx), %rax
	leaq	_ZSt4leftRSt8ios_base(%rip), %rsi
	movq	%rbx, %rdi
	movq	-24(%rax), %rax
	movq	$34, 16(%rbx,%rax)
	call	_ZNSolsEPFRSt8ios_baseS0_E@PLT
	leaq	.LC26(%rip), %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	296(%rbp), %rsi
	movq	8(%rsp), %rdi
	movq	%rax, %r15
	call	_ZL10formatSizem
.LEHE9:
	movq	8(%rsp), %rsi
	movq	%r15, %rdi
.LEHB10:
	call	_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
.LEHE10:
	movq	8(%rsp), %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	movq	(%rbx), %rax
	leaq	_ZSt4leftRSt8ios_base(%rip), %rsi
	movq	%rbx, %rdi
	movq	-24(%rax), %rax
	movq	$34, 16(%rbx,%rax)
.LEHB11:
	call	_ZNSolsEPFRSt8ios_baseS0_E@PLT
	leaq	.LC27(%rip), %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	320(%rbp), %esi
	movq	%rax, %rdi
	call	_ZNSolsEi@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	movq	(%rbx), %rax
	leaq	_ZSt4leftRSt8ios_base(%rip), %rsi
	movq	%rbx, %rdi
	movq	-24(%rax), %rax
	movq	$34, 16(%rbx,%rax)
	call	_ZNSolsEPFRSt8ios_baseS0_E@PLT
	leaq	.LC28(%rip), %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	304(%rbp), %esi
	movq	%rax, %rdi
	call	_ZNSolsEi@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	movq	(%rbx), %rax
	leaq	_ZSt4leftRSt8ios_base(%rip), %rsi
	movq	%rbx, %rdi
	movq	-24(%rax), %rax
	movq	$34, 16(%rbx,%rax)
	call	_ZNSolsEPFRSt8ios_baseS0_E@PLT
	leaq	.LC29(%rip), %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	324(%rbp), %esi
	movq	%rax, %rdi
	call	_ZNSolsEi@PLT
	movq	%r12, %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	328(%rbp), %esi
	movq	%rax, %rdi
	call	_ZNSolsEi@PLT
	movq	%r12, %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	332(%rbp), %esi
	movq	%rax, %rdi
	call	_ZNSolsEi@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	movq	(%rbx), %rax
	leaq	_ZSt4leftRSt8ios_base(%rip), %rsi
	movq	%rbx, %rdi
	movq	-24(%rax), %rax
	movq	$34, 16(%rbx,%rax)
	call	_ZNSolsEPFRSt8ios_baseS0_E@PLT
	leaq	.LC30(%rip), %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	336(%rbp), %esi
	movq	%rax, %rdi
	call	_ZNSolsEi@PLT
	movq	%r12, %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	340(%rbp), %esi
	movq	%rax, %rdi
	call	_ZNSolsEi@PLT
	movq	%r12, %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	344(%rbp), %esi
	movq	%rax, %rdi
	call	_ZNSolsEi@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	movq	(%rbx), %rax
	leaq	_ZSt4leftRSt8ios_base(%rip), %rsi
	movq	%rbx, %rdi
	movq	-24(%rax), %rax
	movq	$34, 16(%rbx,%rax)
	call	_ZNSolsEPFRSt8ios_baseS0_E@PLT
	leaq	.LC31(%rip), %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	leaq	_ZSt9boolalphaRSt8ios_base(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSt8ios_baseS0_E@PLT
	xorl	%esi, %esi
	cmpl	$0, 604(%rbp)
	setne	%sil
	movq	%rax, %rdi
	incl	%r14d
	addq	$1032, %rbp
	call	_ZNSo9_M_insertIbEERSoT_@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	jmp	.L38
.L61:
	endbr64
	jmp	.L65
.L60:
	endbr64
	jmp	.L65
.L59:
	endbr64
	jmp	.L65
.L58:
	endbr64
.L65:
	movq	%rax, %rbx
.L49:
	movq	8(%rsp), %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	movq	72(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L64
	movq	%rbx, %rdi
	call	_Unwind_Resume@PLT
.LEHE11:
.L67:
	movq	%r13, %rdi
	call	_ZdaPv@PLT
	movq	72(%rsp), %rax
	subq	%fs:40, %rax
	je	.L52
.L64:
	call	__stack_chk_fail@PLT
.L52:
	addq	$88, %rsp
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE3919:
	.section	.gcc_except_table
.LLSDA3919:
	.byte	0xff
	.byte	0xff
	.byte	0x1
	.uleb128 .LLSDACSE3919-.LLSDACSB3919
.LLSDACSB3919:
	.uleb128 .LEHB3-.LFB3919
	.uleb128 .LEHE3-.LEHB3
	.uleb128 0
	.uleb128 0
	.uleb128 .LEHB4-.LFB3919
	.uleb128 .LEHE4-.LEHB4
	.uleb128 .L61-.LFB3919
	.uleb128 0
	.uleb128 .LEHB5-.LFB3919
	.uleb128 .LEHE5-.LEHB5
	.uleb128 0
	.uleb128 0
	.uleb128 .LEHB6-.LFB3919
	.uleb128 .LEHE6-.LEHB6
	.uleb128 .L60-.LFB3919
	.uleb128 0
	.uleb128 .LEHB7-.LFB3919
	.uleb128 .LEHE7-.LEHB7
	.uleb128 0
	.uleb128 0
	.uleb128 .LEHB8-.LFB3919
	.uleb128 .LEHE8-.LEHB8
	.uleb128 .L59-.LFB3919
	.uleb128 0
	.uleb128 .LEHB9-.LFB3919
	.uleb128 .LEHE9-.LEHB9
	.uleb128 0
	.uleb128 0
	.uleb128 .LEHB10-.LFB3919
	.uleb128 .LEHE10-.LEHB10
	.uleb128 .L58-.LFB3919
	.uleb128 0
	.uleb128 .LEHB11-.LFB3919
	.uleb128 .LEHE11-.LEHB11
	.uleb128 0
	.uleb128 0
.LLSDACSE3919:
	.section	.text.startup
	.size	main, .-main
	.section	.nvFatBinSegment,"aw"
	.align 8
	.type	_ZL15__fatDeviceText, @object
	.size	_ZL15__fatDeviceText, 24
_ZL15__fatDeviceText:
	.long	1180844977
	.long	1
	.quad	fatbinData
	.quad	0
	.local	_ZL20__cudaFatCubinHandle
	.comm	_ZL20__cudaFatCubinHandle,8,8
	.section	.rodata.cst4,"aM",@progbits,4
	.align 4
.LC0:
	.long	981467136
	.align 4
.LC2:
	.long	897581056
	.align 4
.LC4:
	.long	813694976
	.hidden	DW.ref.__gxx_personality_v0
	.weak	DW.ref.__gxx_personality_v0
	.section	.data.rel.local.DW.ref.__gxx_personality_v0,"awG",@progbits,DW.ref.__gxx_personality_v0,comdat
	.align 8
	.type	DW.ref.__gxx_personality_v0, @object
	.size	DW.ref.__gxx_personality_v0, 8
DW.ref.__gxx_personality_v0:
	.quad	__gxx_personality_v0
	.ident	"GCC: (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:


#include <hip/hip_runtime.h>
#include <iostream>
#include <sstream>
#include <iomanip>

const int width = 34;

static void cudaSafeCall(hipError_t err)
{
	if (err != hipSuccess)
	{
		std::cerr << hipGetErrorString(err) << std::endl;
		exit(1);
	}
}

static int getCoreNumPerSP(int major, int minor)
{
	switch (major)
	{
		case 2:
		{
			if (minor == 0)
			{
				return 32;
			}
			else if (minor == 1)
			{
				return 48;
			}
			else
			{
				return 0;
			}
		}
		case 3:
		{
			return 192;
		}
		case 5:
		{
			return 128;
		}
		case 6:
		{
			if (minor == 0)
			{
				return 64;
			}
			else if ((minor == 1) || (minor == 2))
			{
				return 128;
			}
			else
			{
				return 0;
			}
		}
		default:
		{
			return 0;
		}
	}
}

static std::string formatSize(size_t size)
{
	std::ostringstream stringStream;

	stringStream.precision(1);
	stringStream << std::fixed;

	if (size < 1024 * 10)
	{
		stringStream << size;
	}
	else if (size < 1024 * 1024 * 10)
	{
		stringStream << (float)size / 1024 << " KiB";
	}
	else if (size < size_t(1024) * size_t(1024) * size_t(1024) * size_t(10))
	{
		stringStream << (float)size / (1024 * 1024) << " MiB";
	}
	else
	{
		stringStream << (float)size / (1024 * 1024 * 1024) << " GiB";
	}
	return stringStream.str();
}

static void displayDeviceProperties(hipDeviceProp_t& prop, int device)
{
	std::cout << std::setw(width) << std::left << "GPU Device ID:" << device << std::endl;
	std::cout << std::setw(width) << std::left << "  Name:" << prop.name << std::endl;
	std::cout << std::setw(width) << std::left << "  Compute Capability:" << prop.major << "." << prop.minor << std::endl;
	std::cout << std::setw(width) << std::left << "  MultiProcessor(s):" << prop.multiProcessorCount << std::endl;
	std::cout << std::setw(width) << std::left << "  Cores Per MultiProcessor:" << getCoreNumPerSP(prop.major, prop.minor) << std::endl;
	std::cout << std::setw(width) << std::left << "  Max Threads Per MultiProcessor:" << prop.maxThreadsPerMultiProcessor << std::endl;
	std::cout << std::setw(width) << std::left << "  Clock Rate:" << prop.clockRate / (1000) << " MHz" << std::endl;
	std::cout << std::setw(width) << std::left << "  Warp Size:" << prop.warpSize << std::endl;
	std::cout << std::setw(width) << std::left << "  L2 Cache Size:" << formatSize(prop.l2CacheSize) << std::endl;
	std::cout << std::setw(width) << std::left << "  Global Memory Size:" << formatSize(prop.totalGlobalMem) << std::endl;
	std::cout << std::setw(width) << std::left << "  Constant Memory Size:" << formatSize(prop.totalConstMem) << std::endl;
	std::cout << std::setw(width) << std::left << "  One-Dimension Texture Size:" << prop.maxTexture1D << std::endl;
	std::cout << std::setw(width) << std::left << "  Two-Dimension Texture Size:" << prop.maxTexture2D[0] << " x "
			<< prop.maxTexture2D[1] << std::endl;
	std::cout << std::setw(width) << std::left << "  Three-Dimension Texture Size:" << prop.maxTexture3D[0] << " x "
			<< prop.maxTexture3D[1] << " x " << prop.maxTexture3D[2] << std::endl;
	std::cout << std::setw(width) << std::left << "  Shared Memory Size Per Block:" << formatSize(prop.sharedMemPerBlock) << std::endl;
	std::cout << std::setw(width) << std::left << "  Max Threads Per Block:" << prop.maxThreadsPerBlock << std::endl;
	std::cout << std::setw(width) << std::left << "  Registers Per Block:" << prop.regsPerBlock << std::endl;
	std::cout << std::setw(width) << std::left << "  Block Dimension:" << prop.maxThreadsDim[0] << " x "
			<< prop.maxThreadsDim[1] << " x " << prop.maxThreadsDim[2] << std::endl;
	std::cout << std::setw(width) << std::left << "  Grid Dimension:" << prop.maxGridSize[0] << " x "
			<< prop.maxGridSize[1] << " x " << prop.maxGridSize[2] << std::endl;
	std::cout << std::setw(width) << std::left << "  Unified address space:" << std::boolalpha << (prop.unifiedAddressing ? true : false) << std::endl;
	
	return;
}

int main(void)
{
	int gpuCount = 0;
	cudaSafeCall(hipGetDeviceCount(&gpuCount));

	int runtimeVersion = 0;
	cudaSafeCall(hipRuntimeGetVersion(&runtimeVersion));

	int driverVersion = 0;
	cudaSafeCall(hipDriverGetVersion(&driverVersion));

	hipDeviceProp_t *prop = new hipDeviceProp_t[gpuCount];
	if (prop == NULL)
	{
		std::cout << "The memory is too small, and please enlarge it, thanks!" << std::endl;
		exit(1);
	}

	for (int i = 0; i < gpuCount; i++)
	{
		cudaSafeCall(hipGetDeviceProperties(prop + i, i));
	}

	std::cout << std::setw(width) << std::left << "CUDA Runtime Version:" << runtimeVersion / 1000 << "." << (runtimeVersion % 100) / 10 << std::endl;
	std::cout << std::setw(width) << std::left << "CUDA Driver Version:" << driverVersion / 1000 << "." << (driverVersion % 100) / 10 << std::endl;
	std::cout << std::setw(width) << std::left << "GPU(s):" << gpuCount << std::endl;

	for (int i = 0; i < gpuCount; i++)
	{
		displayDeviceProperties(prop[i], i);
	}

	delete[] prop;
	return 0;
}



	.text
	.file	"lscuda.hip"
                                        # Start of file scope inline assembly
	.globl	_ZSt21ios_base_library_initv

                                        # End of file scope inline assembly
	.globl	main                            # -- Begin function main
	.type	main,@function
main:                                   # @main
.Lfunc_begin0:
	.cfi_startproc
	.cfi_personality 3, __gxx_personality_v0
	.cfi_lsda 3, .Lexception0
# %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%r15
	.cfi_def_cfa_offset 24
	pushq	%r14
	.cfi_def_cfa_offset 32
	pushq	%r13
	.cfi_def_cfa_offset 40
	pushq	%r12
	.cfi_def_cfa_offset 48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	subq	$56, %rsp
	.cfi_def_cfa_offset 112
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	xorl	%ebp, %ebp
	leaq	4(%rsp), %rbx
	movl	%ebp, (%rbx)
	movq	%rbx, %rdi
	callq	hipGetDeviceCount
	movl	%eax, %edi
	callq	_ZL12cudaSafeCall10hipError_t
	leaq	44(%rsp), %rdi
	movl	%ebp, (%rdi)
	callq	hipRuntimeGetVersion
	movl	%eax, %edi
	callq	_ZL12cudaSafeCall10hipError_t
	leaq	40(%rsp), %rdi
	movl	%ebp, (%rdi)
	callq	hipDriverGetVersion
	movl	%eax, %edi
	callq	_ZL12cudaSafeCall10hipError_t
	movslq	(%rbx), %r14
	movl	$1472, %ecx                     # imm = 0x5C0
	movq	%r14, %rax
	mulq	%rcx
	movq	$-1, %rdi
	cmovnoq	%rax, %rdi
	callq	_Znam
	movq	%rax, 48(%rsp)                  # 8-byte Spill
	testq	%r14, %r14
	jle	.LBB0_3
# %bb.1:                                # %.lr.ph.preheader
	xorl	%r14d, %r14d
	movq	48(%rsp), %r15                  # 8-byte Reload
.LBB0_2:                                # %.lr.ph
                                        # =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	hipGetDevicePropertiesR0600
	movl	%eax, %edi
	callq	_ZL12cudaSafeCall10hipError_t
	incq	%r14
	movslq	4(%rsp), %rax
	addq	$1472, %r15                     # imm = 0x5C0
	cmpq	%rax, %r14
	jl	.LBB0_2
.LBB0_3:                                # %._crit_edge
	movq	_ZSt4cout(%rip), %rax
	movq	-24(%rax), %rcx
	movl	$34, %ebx
	movq	%rbx, _ZSt4cout+16(%rcx)
	movq	-24(%rax), %rax
	movl	$-177, %ebp
	movl	_ZSt4cout+24(%rax), %ecx
	andl	%ebp, %ecx
	orl	$32, %ecx
	movl	%ecx, _ZSt4cout+24(%rax)
	movl	$_ZSt4cout, %edi
	movl	$.L.str.1, %esi
	movl	$21, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movslq	44(%rsp), %rax
	imulq	$274877907, %rax, %rsi          # imm = 0x10624DD3
	movq	%rsi, %rax
	shrq	$63, %rax
	sarq	$38, %rsi
	addl	%eax, %esi
	movl	$_ZSt4cout, %edi
                                        # kill: def $esi killed $esi killed $rsi
	callq	_ZNSolsEi
	movq	%rax, %r14
	movl	$.L.str.2, %esi
	movl	$1, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movslq	44(%rsp), %rax
	imulq	$1374389535, %rax, %rcx         # imm = 0x51EB851F
	movq	%rcx, %rdx
	shrq	$63, %rdx
	shrq	$37, %rcx
	addl	%edx, %ecx
	imull	$100, %ecx, %ecx
	subl	%ecx, %eax
	movsbl	%al, %eax
	imull	$103, %eax, %eax
	movl	$65535, %r15d                   # imm = 0xFFFF
	movswl	%ax, %ecx
	andl	%r15d, %eax
	shrl	$15, %eax
	shrl	$10, %ecx
	addb	%al, %cl
	movsbl	%cl, %esi
	movq	%r14, %rdi
	callq	_ZNSolsEi
	movq	%rax, %r14
	movq	(%rax), %rax
	movq	-24(%rax), %rdi
	addq	%r14, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movq	%r14, %rdi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
	movq	_ZSt4cout(%rip), %rax
	movq	-24(%rax), %rcx
	movq	%rbx, _ZSt4cout+16(%rcx)
	movq	-24(%rax), %rax
	movl	_ZSt4cout+24(%rax), %ecx
	andl	%ebp, %ecx
	orl	$32, %ecx
	movl	%ecx, _ZSt4cout+24(%rax)
	movl	$_ZSt4cout, %edi
	movl	$.L.str.3, %esi
	movl	$20, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movslq	40(%rsp), %rax
	imulq	$274877907, %rax, %rsi          # imm = 0x10624DD3
	movq	%rsi, %rax
	shrq	$63, %rax
	sarq	$38, %rsi
	addl	%eax, %esi
	movl	$_ZSt4cout, %edi
                                        # kill: def $esi killed $esi killed $rsi
	callq	_ZNSolsEi
	movq	%rax, %r14
	movl	$.L.str.2, %esi
	movl	$1, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movslq	40(%rsp), %rax
	imulq	$1374389535, %rax, %rcx         # imm = 0x51EB851F
	movq	%rcx, %rdx
	shrq	$63, %rdx
	shrq	$37, %rcx
	addl	%edx, %ecx
	imull	$100, %ecx, %ecx
	subl	%ecx, %eax
	movsbl	%al, %eax
	imull	$103, %eax, %eax
	andl	%eax, %r15d
	shrl	$15, %r15d
	cwtl
	shrl	$10, %eax
	addb	%r15b, %al
	movsbl	%al, %esi
	movq	%r14, %rdi
	callq	_ZNSolsEi
	movq	%rax, %r14
	movq	(%rax), %rax
	movq	-24(%rax), %rdi
	addq	%r14, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movq	%r14, %rdi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
	movq	_ZSt4cout(%rip), %rax
	movq	-24(%rax), %rcx
	movq	%rbx, _ZSt4cout+16(%rcx)
	movq	-24(%rax), %rax
	movl	_ZSt4cout+24(%rax), %ecx
	andl	%ebp, %ecx
	orl	$32, %ecx
	movl	%ecx, _ZSt4cout+24(%rax)
	movl	$_ZSt4cout, %edi
	movl	$.L.str.4, %esi
	movl	$7, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movl	4(%rsp), %esi
	movl	$_ZSt4cout, %edi
	callq	_ZNSolsEi
	movq	%rax, %r14
	movq	(%rax), %rax
	movq	-24(%rax), %rdi
	addq	%r14, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movq	%r14, %rdi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
	cmpl	$0, 4(%rsp)
	jle	.LBB0_39
# %bb.4:                                # %.lr.ph68
	xorl	%r14d, %r14d
	leaq	8(%rsp), %r15
	movq	48(%rsp), %r12                  # 8-byte Reload
.LBB0_5:                                # =>This Inner Loop Header: Depth=1
	movq	_ZSt4cout(%rip), %rax
	movq	-24(%rax), %rcx
	movq	%rbx, _ZSt4cout+16(%rcx)
	movq	-24(%rax), %rax
	movl	_ZSt4cout+24(%rax), %ecx
	andl	%ebp, %ecx
	orl	$32, %ecx
	movl	%ecx, _ZSt4cout+24(%rax)
	movl	$_ZSt4cout, %edi
	movl	$.L.str.5, %esi
	movl	$14, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movl	$_ZSt4cout, %edi
	movl	%r14d, %esi
	callq	_ZNSolsEi
	movq	%rax, %r13
	movq	(%rax), %rax
	movq	-24(%rax), %rdi
	addq	%r13, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movq	%r13, %rdi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
	movq	_ZSt4cout(%rip), %rax
	movq	-24(%rax), %rcx
	movq	%rbx, _ZSt4cout+16(%rcx)
	movq	-24(%rax), %rax
	movl	_ZSt4cout+24(%rax), %ecx
	andl	%ebp, %ecx
	orl	$32, %ecx
	movl	%ecx, _ZSt4cout+24(%rax)
	movl	$_ZSt4cout, %edi
	movl	$.L.str.6, %esi
	movl	$7, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movq	%r12, %rdi
	callq	strlen
	movl	$_ZSt4cout, %edi
	movq	%r12, %rsi
	movq	%rax, %rdx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movq	_ZSt4cout(%rip), %rax
	movq	-24(%rax), %rdi
	movl	$_ZSt4cout, %eax
	addq	%rax, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movl	$_ZSt4cout, %edi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
	movq	_ZSt4cout(%rip), %rax
	movq	-24(%rax), %rcx
	movq	%rbx, _ZSt4cout+16(%rcx)
	movq	-24(%rax), %rax
	movl	_ZSt4cout+24(%rax), %ecx
	andl	%ebp, %ecx
	orl	$32, %ecx
	movl	%ecx, _ZSt4cout+24(%rax)
	movl	$_ZSt4cout, %edi
	movl	$.L.str.7, %esi
	movl	$21, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movl	360(%r12), %esi
	movl	$_ZSt4cout, %edi
	callq	_ZNSolsEi
	movq	%rax, %r13
	movl	$.L.str.2, %esi
	movl	$1, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movl	364(%r12), %esi
	movq	%r13, %rdi
	callq	_ZNSolsEi
	movq	%rax, %r13
	movq	(%rax), %rax
	movq	-24(%rax), %rdi
	addq	%r13, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movq	%r13, %rdi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
	movq	_ZSt4cout(%rip), %rax
	movq	-24(%rax), %rcx
	movq	%rbx, _ZSt4cout+16(%rcx)
	movq	-24(%rax), %rax
	movl	_ZSt4cout+24(%rax), %ecx
	andl	%ebp, %ecx
	orl	$32, %ecx
	movl	%ecx, _ZSt4cout+24(%rax)
	movl	$_ZSt4cout, %edi
	movl	$.L.str.8, %esi
	movl	$20, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movl	388(%r12), %esi
	movl	$_ZSt4cout, %edi
	callq	_ZNSolsEi
	movq	%rax, %r13
	movq	(%rax), %rax
	movq	-24(%rax), %rdi
	addq	%r13, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movq	%r13, %rdi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
	movq	_ZSt4cout(%rip), %rax
	movq	-24(%rax), %rcx
	movq	%rbx, _ZSt4cout+16(%rcx)
	movq	-24(%rax), %rax
	movl	_ZSt4cout+24(%rax), %ecx
	andl	%ebp, %ecx
	orl	$32, %ecx
	movl	%ecx, _ZSt4cout+24(%rax)
	movl	$_ZSt4cout, %edi
	movl	$.L.str.9, %esi
	movl	$27, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movl	360(%r12), %ecx
	addl	$-2, %ecx
	cmpl	$4, %ecx
	ja	.LBB0_13
# %bb.6:                                #   in Loop: Header=BB0_5 Depth=1
	movl	364(%r12), %eax
	jmpq	*.LJTI0_0(,%rcx,8)
.LBB0_8:                                #   in Loop: Header=BB0_5 Depth=1
	cmpl	$1, %eax
	movl	$0, %esi
	movl	$48, %ecx
	cmovel	%ecx, %esi
	testl	%eax, %eax
	movl	$32, %eax
	cmovel	%eax, %esi
	jmp	.LBB0_14
.LBB0_9:                                #   in Loop: Header=BB0_5 Depth=1
	movl	$128, %esi
	jmp	.LBB0_14
.LBB0_7:                                #   in Loop: Header=BB0_5 Depth=1
	movl	$192, %esi
	jmp	.LBB0_14
.LBB0_10:                               #   in Loop: Header=BB0_5 Depth=1
	testl	%eax, %eax
	je	.LBB0_11
# %bb.12:                               #   in Loop: Header=BB0_5 Depth=1
	xorl	%esi, %esi
	cmpl	$3, %eax
	setb	%sil
	shll	$7, %esi
	jmp	.LBB0_14
.LBB0_13:                               #   in Loop: Header=BB0_5 Depth=1
	xorl	%esi, %esi
	jmp	.LBB0_14
.LBB0_11:                               #   in Loop: Header=BB0_5 Depth=1
	movl	$64, %esi
.LBB0_14:                               # %_ZL15getCoreNumPerSPii.exit.i
                                        #   in Loop: Header=BB0_5 Depth=1
	movl	$_ZSt4cout, %edi
	callq	_ZNSolsEi
	movq	%rax, %r13
	movq	(%rax), %rax
	movq	-24(%rax), %rdi
	addq	%r13, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movq	%r13, %rdi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
	movq	_ZSt4cout(%rip), %rax
	movq	-24(%rax), %rcx
	movq	%rbx, _ZSt4cout+16(%rcx)
	movq	-24(%rax), %rax
	movl	_ZSt4cout+24(%rax), %ecx
	andl	%ebp, %ecx
	orl	$32, %ecx
	movl	%ecx, _ZSt4cout+24(%rax)
	movl	$_ZSt4cout, %edi
	movl	$.L.str.10, %esi
	movl	$33, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movl	624(%r12), %esi
	movl	$_ZSt4cout, %edi
	callq	_ZNSolsEi
	movq	%rax, %r13
	movq	(%rax), %rax
	movq	-24(%rax), %rdi
	addq	%r13, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movq	%r13, %rdi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
	movq	_ZSt4cout(%rip), %rax
	movq	-24(%rax), %rcx
	movq	%rbx, _ZSt4cout+16(%rcx)
	movq	-24(%rax), %rax
	movl	_ZSt4cout+24(%rax), %ecx
	andl	%ebp, %ecx
	orl	$32, %ecx
	movl	%ecx, _ZSt4cout+24(%rax)
	movl	$_ZSt4cout, %edi
	movl	$.L.str.11, %esi
	movl	$13, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movslq	348(%r12), %rax
	imulq	$274877907, %rax, %rsi          # imm = 0x10624DD3
	movq	%rsi, %rax
	shrq	$63, %rax
	sarq	$38, %rsi
	addl	%eax, %esi
	movl	$_ZSt4cout, %edi
                                        # kill: def $esi killed $esi killed $rsi
	callq	_ZNSolsEi
	movq	%rax, %r13
	movl	$.L.str.12, %esi
	movl	$4, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movq	(%r13), %rax
	movq	-24(%rax), %rdi
	addq	%r13, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movq	%r13, %rdi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
	movq	_ZSt4cout(%rip), %rax
	movq	-24(%rax), %rcx
	movq	%rbx, _ZSt4cout+16(%rcx)
	movq	-24(%rax), %rax
	movl	_ZSt4cout+24(%rax), %ecx
	andl	%ebp, %ecx
	orl	$32, %ecx
	movl	%ecx, _ZSt4cout+24(%rax)
	movl	$_ZSt4cout, %edi
	movl	$.L.str.13, %esi
	movl	$12, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movl	308(%r12), %esi
	movl	$_ZSt4cout, %edi
	callq	_ZNSolsEi
	movq	%rax, %r13
	movq	(%rax), %rax
	movq	-24(%rax), %rdi
	addq	%r13, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movq	%r13, %rdi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
	movq	_ZSt4cout(%rip), %rax
	movq	-24(%rax), %rcx
	movq	%rbx, _ZSt4cout+16(%rcx)
	movq	-24(%rax), %rax
	movl	_ZSt4cout+24(%rax), %ecx
	andl	%ebp, %ecx
	orl	$32, %ecx
	movl	%ecx, _ZSt4cout+24(%rax)
	movl	$_ZSt4cout, %edi
	movl	$.L.str.14, %esi
	movl	$16, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movslq	616(%r12), %rsi
	movq	%r15, %rdi
	callq	_ZL10formatSizeB5cxx11m
	movq	8(%rsp), %rsi
	movq	16(%rsp), %rdx
.Ltmp0:
	movl	$_ZSt4cout, %edi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp1:
# %bb.15:                               # %_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE.exit.i
                                        #   in Loop: Header=BB0_5 Depth=1
	movq	%rax, %r13
	movq	(%rax), %rax
	movq	-24(%rax), %rdi
	addq	%r13, %rdi
.Ltmp2:
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
.Ltmp3:
# %bb.16:                               # %.noexc.i
                                        #   in Loop: Header=BB0_5 Depth=1
.Ltmp4:
	movsbl	%al, %esi
	movq	%r13, %rdi
	callq	_ZNSo3putEc
.Ltmp5:
# %bb.17:                               # %.noexc78.i
                                        #   in Loop: Header=BB0_5 Depth=1
.Ltmp6:
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
.Ltmp7:
# %bb.18:                               # %_ZNSolsEPFRSoS_E.exit.i
                                        #   in Loop: Header=BB0_5 Depth=1
	movq	8(%rsp), %rdi
	leaq	24(%rsp), %rax
	cmpq	%rax, %rdi
	je	.LBB0_20
# %bb.19:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i.i
                                        #   in Loop: Header=BB0_5 Depth=1
	callq	_ZdlPv
.LBB0_20:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit.i
                                        #   in Loop: Header=BB0_5 Depth=1
	movq	_ZSt4cout(%rip), %rax
	movq	-24(%rax), %rcx
	movq	$34, _ZSt4cout+16(%rcx)
	movq	-24(%rax), %rax
	movl	_ZSt4cout+24(%rax), %ecx
	andl	%ebp, %ecx
	orl	$32, %ecx
	movl	%ecx, _ZSt4cout+24(%rax)
	movl	$_ZSt4cout, %edi
	movl	$.L.str.15, %esi
	movl	$21, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movq	288(%r12), %rsi
	movq	%r15, %rdi
	callq	_ZL10formatSizeB5cxx11m
	movq	8(%rsp), %rsi
	movq	16(%rsp), %rdx
.Ltmp9:
	movl	$_ZSt4cout, %edi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp10:
# %bb.21:                               # %_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE.exit51.i
                                        #   in Loop: Header=BB0_5 Depth=1
	movq	%rax, %r13
	movq	(%rax), %rax
	movq	-24(%rax), %rdi
	addq	%r13, %rdi
.Ltmp11:
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
.Ltmp12:
# %bb.22:                               # %.noexc80.i
                                        #   in Loop: Header=BB0_5 Depth=1
.Ltmp13:
	movsbl	%al, %esi
	movq	%r13, %rdi
	callq	_ZNSo3putEc
.Ltmp14:
# %bb.23:                               # %.noexc81.i
                                        #   in Loop: Header=BB0_5 Depth=1
.Ltmp15:
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
.Ltmp16:
# %bb.24:                               # %_ZNSolsEPFRSoS_E.exit52.i
                                        #   in Loop: Header=BB0_5 Depth=1
	movq	8(%rsp), %rdi
	leaq	24(%rsp), %rax
	cmpq	%rax, %rdi
	je	.LBB0_26
# %bb.25:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i53.i
                                        #   in Loop: Header=BB0_5 Depth=1
	callq	_ZdlPv
.LBB0_26:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit55.i
                                        #   in Loop: Header=BB0_5 Depth=1
	movq	_ZSt4cout(%rip), %rax
	movq	-24(%rax), %rcx
	movq	$34, _ZSt4cout+16(%rcx)
	movq	-24(%rax), %rax
	movl	_ZSt4cout+24(%rax), %ecx
	andl	%ebp, %ecx
	orl	$32, %ecx
	movl	%ecx, _ZSt4cout+24(%rax)
	movl	$_ZSt4cout, %edi
	movl	$.L.str.16, %esi
	movl	$23, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movq	352(%r12), %rsi
	movq	%r15, %rdi
	callq	_ZL10formatSizeB5cxx11m
	movq	8(%rsp), %rsi
	movq	16(%rsp), %rdx
.Ltmp18:
	movl	$_ZSt4cout, %edi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp19:
# %bb.27:                               # %_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE.exit56.i
                                        #   in Loop: Header=BB0_5 Depth=1
	movq	%rax, %r13
	movq	(%rax), %rax
	movq	-24(%rax), %rdi
	addq	%r13, %rdi
.Ltmp20:
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
.Ltmp21:
# %bb.28:                               # %.noexc84.i
                                        #   in Loop: Header=BB0_5 Depth=1
.Ltmp22:
	movsbl	%al, %esi
	movq	%r13, %rdi
	callq	_ZNSo3putEc
.Ltmp23:
# %bb.29:                               # %.noexc85.i
                                        #   in Loop: Header=BB0_5 Depth=1
.Ltmp24:
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
.Ltmp25:
# %bb.30:                               # %_ZNSolsEPFRSoS_E.exit57.i
                                        #   in Loop: Header=BB0_5 Depth=1
	movq	8(%rsp), %rdi
	leaq	24(%rsp), %rax
	cmpq	%rax, %rdi
	je	.LBB0_32
# %bb.31:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i58.i
                                        #   in Loop: Header=BB0_5 Depth=1
	callq	_ZdlPv
.LBB0_32:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit60.i
                                        #   in Loop: Header=BB0_5 Depth=1
	movq	_ZSt4cout(%rip), %rax
	movq	-24(%rax), %rcx
	movq	%rbx, _ZSt4cout+16(%rcx)
	movq	-24(%rax), %rax
	movl	_ZSt4cout+24(%rax), %ecx
	andl	%ebp, %ecx
	orl	$32, %ecx
	movl	%ecx, _ZSt4cout+24(%rax)
	movl	$_ZSt4cout, %edi
	movl	$.L.str.17, %esi
	movl	$29, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movl	408(%r12), %esi
	movl	$_ZSt4cout, %edi
	callq	_ZNSolsEi
	movq	%rax, %r13
	movq	(%rax), %rax
	movq	-24(%rax), %rdi
	addq	%r13, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movq	%r13, %rdi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
	movq	_ZSt4cout(%rip), %rax
	movq	-24(%rax), %rcx
	movq	%rbx, _ZSt4cout+16(%rcx)
	movq	-24(%rax), %rax
	movl	_ZSt4cout+24(%rax), %ecx
	andl	%ebp, %ecx
	orl	$32, %ecx
	movl	%ecx, _ZSt4cout+24(%rax)
	movl	$_ZSt4cout, %edi
	movl	$.L.str.18, %esi
	movl	$29, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movl	420(%r12), %esi
	movl	$_ZSt4cout, %edi
	callq	_ZNSolsEi
	movq	%rax, %r13
	movl	$.L.str.19, %esi
	movl	$3, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movl	424(%r12), %esi
	movq	%r13, %rdi
	callq	_ZNSolsEi
	movq	%rax, %r13
	movq	(%rax), %rax
	movq	-24(%rax), %rdi
	addq	%r13, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movq	%r13, %rdi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
	movq	_ZSt4cout(%rip), %rax
	movq	-24(%rax), %rcx
	movq	%rbx, _ZSt4cout+16(%rcx)
	movq	-24(%rax), %rax
	movl	_ZSt4cout+24(%rax), %ecx
	andl	%ebp, %ecx
	orl	$32, %ecx
	movl	%ecx, _ZSt4cout+24(%rax)
	movl	$_ZSt4cout, %edi
	movl	$.L.str.20, %esi
	movl	$31, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movl	456(%r12), %esi
	movl	$_ZSt4cout, %edi
	callq	_ZNSolsEi
	movq	%rax, %r13
	movl	$.L.str.19, %esi
	movl	$3, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movl	460(%r12), %esi
	movq	%r13, %rdi
	callq	_ZNSolsEi
	movq	%rax, %r13
	movl	$.L.str.19, %esi
	movl	$3, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movl	464(%r12), %esi
	movq	%r13, %rdi
	callq	_ZNSolsEi
	movq	%rax, %r13
	movq	(%rax), %rax
	movq	-24(%rax), %rdi
	addq	%r13, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movq	%r13, %rdi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
	movq	_ZSt4cout(%rip), %rax
	movq	-24(%rax), %rcx
	movq	%rbx, _ZSt4cout+16(%rcx)
	movq	-24(%rax), %rax
	movl	_ZSt4cout+24(%rax), %ecx
	andl	%ebp, %ecx
	orl	$32, %ecx
	movl	%ecx, _ZSt4cout+24(%rax)
	movl	$_ZSt4cout, %edi
	movl	$.L.str.21, %esi
	movl	$31, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movq	296(%r12), %rsi
	movq	%r15, %rdi
	callq	_ZL10formatSizeB5cxx11m
	movq	8(%rsp), %rsi
	movq	16(%rsp), %rdx
.Ltmp27:
	movl	$_ZSt4cout, %edi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp28:
# %bb.33:                               # %_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE.exit61.i
                                        #   in Loop: Header=BB0_5 Depth=1
	movq	%rax, %r13
	movq	(%rax), %rax
	movq	-24(%rax), %rdi
	addq	%r13, %rdi
.Ltmp29:
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
.Ltmp30:
# %bb.34:                               # %.noexc88.i
                                        #   in Loop: Header=BB0_5 Depth=1
.Ltmp31:
	movsbl	%al, %esi
	movq	%r13, %rdi
	callq	_ZNSo3putEc
.Ltmp32:
# %bb.35:                               # %.noexc89.i
                                        #   in Loop: Header=BB0_5 Depth=1
.Ltmp33:
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
.Ltmp34:
# %bb.36:                               # %_ZNSolsEPFRSoS_E.exit62.i
                                        #   in Loop: Header=BB0_5 Depth=1
	movq	8(%rsp), %rdi
	leaq	24(%rsp), %rax
	cmpq	%rax, %rdi
	je	.LBB0_38
# %bb.37:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i63.i
                                        #   in Loop: Header=BB0_5 Depth=1
	callq	_ZdlPv
.LBB0_38:                               # %_ZL23displayDevicePropertiesR20hipDeviceProp_tR0600i.exit
                                        #   in Loop: Header=BB0_5 Depth=1
	movq	_ZSt4cout(%rip), %rax
	movq	-24(%rax), %rcx
	movq	%rbx, _ZSt4cout+16(%rcx)
	movq	-24(%rax), %rax
	movl	_ZSt4cout+24(%rax), %ecx
	andl	%ebp, %ecx
	orl	$32, %ecx
	movl	%ecx, _ZSt4cout+24(%rax)
	movl	$_ZSt4cout, %edi
	movl	$.L.str.22, %esi
	movl	$24, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movl	320(%r12), %esi
	movl	$_ZSt4cout, %edi
	callq	_ZNSolsEi
	movq	%rax, %r13
	movq	(%rax), %rax
	movq	-24(%rax), %rdi
	addq	%r13, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movq	%r13, %rdi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
	movq	_ZSt4cout(%rip), %rax
	movq	-24(%rax), %rcx
	movq	%rbx, _ZSt4cout+16(%rcx)
	movq	-24(%rax), %rax
	movl	_ZSt4cout+24(%rax), %ecx
	andl	%ebp, %ecx
	orl	$32, %ecx
	movl	%ecx, _ZSt4cout+24(%rax)
	movl	$_ZSt4cout, %edi
	movl	$.L.str.23, %esi
	movl	$22, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movl	304(%r12), %esi
	movl	$_ZSt4cout, %edi
	callq	_ZNSolsEi
	movq	%rax, %r13
	movq	(%rax), %rax
	movq	-24(%rax), %rdi
	addq	%r13, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movq	%r13, %rdi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
	movq	_ZSt4cout(%rip), %rax
	movq	-24(%rax), %rcx
	movq	%rbx, _ZSt4cout+16(%rcx)
	movq	-24(%rax), %rax
	movl	_ZSt4cout+24(%rax), %ecx
	andl	%ebp, %ecx
	orl	$32, %ecx
	movl	%ecx, _ZSt4cout+24(%rax)
	movl	$_ZSt4cout, %edi
	movl	$.L.str.24, %esi
	movl	$18, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movl	324(%r12), %esi
	movl	$_ZSt4cout, %edi
	callq	_ZNSolsEi
	movq	%rax, %r13
	movl	$.L.str.19, %esi
	movl	$3, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movl	328(%r12), %esi
	movq	%r13, %rdi
	callq	_ZNSolsEi
	movq	%rax, %r13
	movl	$.L.str.19, %esi
	movl	$3, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movl	332(%r12), %esi
	movq	%r13, %rdi
	callq	_ZNSolsEi
	movq	%rax, %r13
	movq	(%rax), %rax
	movq	-24(%rax), %rdi
	addq	%r13, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movq	%r13, %rdi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
	movq	_ZSt4cout(%rip), %rax
	movq	-24(%rax), %rcx
	movq	%rbx, _ZSt4cout+16(%rcx)
	movq	-24(%rax), %rax
	movl	_ZSt4cout+24(%rax), %ecx
	andl	%ebp, %ecx
	orl	$32, %ecx
	movl	%ecx, _ZSt4cout+24(%rax)
	movl	$_ZSt4cout, %edi
	movl	$.L.str.25, %esi
	movl	$17, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movl	336(%r12), %esi
	movl	$_ZSt4cout, %edi
	callq	_ZNSolsEi
	movq	%rax, %r13
	movl	$.L.str.19, %esi
	movl	$3, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movl	340(%r12), %esi
	movq	%r13, %rdi
	callq	_ZNSolsEi
	movq	%rax, %r13
	movl	$.L.str.19, %esi
	movl	$3, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movl	344(%r12), %esi
	movq	%r13, %rdi
	callq	_ZNSolsEi
	movq	%rax, %r13
	movq	(%rax), %rax
	movq	-24(%rax), %rdi
	addq	%r13, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movq	%r13, %rdi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
	movq	_ZSt4cout(%rip), %rax
	movq	-24(%rax), %rcx
	movq	%rbx, _ZSt4cout+16(%rcx)
	movq	-24(%rax), %rax
	movl	_ZSt4cout+24(%rax), %ecx
	andl	%ebp, %ecx
	orl	$32, %ecx
	movl	%ecx, _ZSt4cout+24(%rax)
	movl	$_ZSt4cout, %edi
	movl	$.L.str.26, %esi
	movl	$24, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movq	_ZSt4cout(%rip), %rax
	movq	-24(%rax), %rax
	orl	$1, _ZSt4cout+24(%rax)
	xorl	%esi, %esi
	cmpl	$0, 604(%r12)
	setne	%sil
	movl	$_ZSt4cout, %edi
	callq	_ZNSo9_M_insertIbEERSoT_
	movq	%rax, %r13
	movq	(%rax), %rax
	movq	-24(%rax), %rdi
	addq	%r13, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movq	%r13, %rdi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
	incq	%r14
	movslq	4(%rsp), %rax
	addq	$1472, %r12                     # imm = 0x5C0
	cmpq	%rax, %r14
	jl	.LBB0_5
.LBB0_39:                               # %._crit_edge69
	movq	48(%rsp), %rdi                  # 8-byte Reload
	callq	_ZdaPv
	xorl	%eax, %eax
	addq	$56, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	retq
.LBB0_43:
	.cfi_def_cfa_offset 112
.Ltmp35:
	jmp	.LBB0_44
.LBB0_41:
.Ltmp17:
	jmp	.LBB0_44
.LBB0_42:
.Ltmp26:
	jmp	.LBB0_44
.LBB0_40:
.Ltmp8:
.LBB0_44:
	movq	%rax, %rbx
	movq	8(%rsp), %rdi
	leaq	24(%rsp), %rax
	cmpq	%rax, %rdi
	je	.LBB0_46
# %bb.45:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i75.i
	callq	_ZdlPv
.LBB0_46:
	movq	%rbx, %rdi
	callq	_Unwind_Resume@PLT
.Lfunc_end0:
	.size	main, .Lfunc_end0-main
	.cfi_endproc
	.section	.rodata,"a",@progbits
	.p2align	3, 0x0
.LJTI0_0:
	.quad	.LBB0_8
	.quad	.LBB0_7
	.quad	.LBB0_13
	.quad	.LBB0_9
	.quad	.LBB0_10
	.section	.gcc_except_table,"a",@progbits
	.p2align	2, 0x0
GCC_except_table0:
.Lexception0:
	.byte	255                             # @LPStart Encoding = omit
	.byte	255                             # @TType Encoding = omit
	.byte	1                               # Call site Encoding = uleb128
	.uleb128 .Lcst_end0-.Lcst_begin0
.Lcst_begin0:
	.uleb128 .Lfunc_begin0-.Lfunc_begin0    # >> Call Site 1 <<
	.uleb128 .Ltmp0-.Lfunc_begin0           #   Call between .Lfunc_begin0 and .Ltmp0
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp0-.Lfunc_begin0           # >> Call Site 2 <<
	.uleb128 .Ltmp7-.Ltmp0                  #   Call between .Ltmp0 and .Ltmp7
	.uleb128 .Ltmp8-.Lfunc_begin0           #     jumps to .Ltmp8
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp7-.Lfunc_begin0           # >> Call Site 3 <<
	.uleb128 .Ltmp9-.Ltmp7                  #   Call between .Ltmp7 and .Ltmp9
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp9-.Lfunc_begin0           # >> Call Site 4 <<
	.uleb128 .Ltmp16-.Ltmp9                 #   Call between .Ltmp9 and .Ltmp16
	.uleb128 .Ltmp17-.Lfunc_begin0          #     jumps to .Ltmp17
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp16-.Lfunc_begin0          # >> Call Site 5 <<
	.uleb128 .Ltmp18-.Ltmp16                #   Call between .Ltmp16 and .Ltmp18
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp18-.Lfunc_begin0          # >> Call Site 6 <<
	.uleb128 .Ltmp25-.Ltmp18                #   Call between .Ltmp18 and .Ltmp25
	.uleb128 .Ltmp26-.Lfunc_begin0          #     jumps to .Ltmp26
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp25-.Lfunc_begin0          # >> Call Site 7 <<
	.uleb128 .Ltmp27-.Ltmp25                #   Call between .Ltmp25 and .Ltmp27
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp27-.Lfunc_begin0          # >> Call Site 8 <<
	.uleb128 .Ltmp34-.Ltmp27                #   Call between .Ltmp27 and .Ltmp34
	.uleb128 .Ltmp35-.Lfunc_begin0          #     jumps to .Ltmp35
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp34-.Lfunc_begin0          # >> Call Site 9 <<
	.uleb128 .Lfunc_end0-.Ltmp34            #   Call between .Ltmp34 and .Lfunc_end0
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
.Lcst_end0:
	.p2align	2, 0x0
                                        # -- End function
	.text
	.type	_ZL12cudaSafeCall10hipError_t,@function # -- Begin function _ZL12cudaSafeCall10hipError_t
_ZL12cudaSafeCall10hipError_t:          # @_ZL12cudaSafeCall10hipError_t
	.cfi_startproc
# %bb.0:
	testl	%edi, %edi
	jne	.LBB1_2
# %bb.1:
	retq
.LBB1_2:
	pushq	%rax
	.cfi_def_cfa_offset 16
	callq	hipGetErrorString
	movl	$_ZSt4cerr, %edi
	movq	%rax, %rsi
	callq	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc
	movq	%rax, %rdi
	callq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_
	movl	$1, %edi
	callq	exit
.Lfunc_end1:
	.size	_ZL12cudaSafeCall10hipError_t, .Lfunc_end1-_ZL12cudaSafeCall10hipError_t
	.cfi_endproc
                                        # -- End function
	.section	.rodata.cst4,"aM",@progbits,4
	.p2align	2, 0x0                          # -- Begin function _ZL10formatSizeB5cxx11m
.LCPI2_0:
	.long	0x30800000                      # float 9.31322574E-10
.LCPI2_1:
	.long	0x35800000                      # float 9.53674316E-7
.LCPI2_2:
	.long	0x3a800000                      # float 9.765625E-4
	.text
	.type	_ZL10formatSizeB5cxx11m,@function
_ZL10formatSizeB5cxx11m:                # @_ZL10formatSizeB5cxx11m
.Lfunc_begin1:
	.cfi_startproc
	.cfi_personality 3, __gxx_personality_v0
	.cfi_lsda 3, .Lexception1
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	subq	$384, %rsp                      # imm = 0x180
	.cfi_def_cfa_offset 416
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	movq	%rsi, %r14
	movq	%rdi, %rbx
	leaq	8(%rsp), %r15
	movq	%r15, %rdi
	callq	_ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEC1Ev
	movq	(%r15), %rax
	movq	-24(%rax), %rcx
	movq	$1, 16(%rsp,%rcx)
	movq	-24(%rax), %rax
	movl	$-261, %ecx                     # imm = 0xFEFB
	andl	32(%rsp,%rax), %ecx
	orl	$4, %ecx
	movl	%ecx, 32(%rsp,%rax)
	cmpq	$10239, %r14                    # imm = 0x27FF
	ja	.LBB2_3
# %bb.1:
.Ltmp44:
	leaq	8(%rsp), %rdi
	movq	%r14, %rsi
	callq	_ZNSo9_M_insertImEERSoT_
.Ltmp45:
	jmp	.LBB2_18
.LBB2_3:
	cmpq	$10485759, %r14                 # imm = 0x9FFFFF
	ja	.LBB2_9
# %bb.4:
	testq	%r14, %r14
	js	.LBB2_5
# %bb.6:
	cvtsi2ss	%r14, %xmm0
	jmp	.LBB2_7
.LBB2_9:
	movq	%r14, %rax
	shrq	$31, %rax
	testq	%r14, %r14
	js	.LBB2_10
# %bb.11:
	cvtsi2ss	%r14, %xmm0
	jmp	.LBB2_12
.LBB2_5:
	movq	%r14, %rax
	shrq	%rax
	andl	$1, %r14d
	orq	%rax, %r14
	cvtsi2ss	%r14, %xmm0
	addss	%xmm0, %xmm0
.LBB2_7:
	mulss	.LCPI2_2(%rip), %xmm0
	cvtss2sd	%xmm0, %xmm0
.Ltmp40:
	leaq	8(%rsp), %rdi
	callq	_ZNSo9_M_insertIdEERSoT_
.Ltmp41:
# %bb.8:
	movl	$.L.str.27, %esi
	jmp	.LBB2_17
.LBB2_10:
	movq	%r14, %rcx
	shrq	%rcx
	andl	$1, %r14d
	orq	%rcx, %r14
	cvtsi2ss	%r14, %xmm0
	addss	%xmm0, %xmm0
.LBB2_12:
	cmpq	$4, %rax
	ja	.LBB2_15
# %bb.13:
	mulss	.LCPI2_1(%rip), %xmm0
	cvtss2sd	%xmm0, %xmm0
.Ltmp38:
	leaq	8(%rsp), %rdi
	callq	_ZNSo9_M_insertIdEERSoT_
.Ltmp39:
# %bb.14:
	movl	$.L.str.28, %esi
	jmp	.LBB2_17
.LBB2_15:
	mulss	.LCPI2_0(%rip), %xmm0
	cvtss2sd	%xmm0, %xmm0
.Ltmp36:
	leaq	8(%rsp), %rdi
	callq	_ZNSo9_M_insertIdEERSoT_
.Ltmp37:
# %bb.16:
	movl	$.L.str.29, %esi
.LBB2_17:                               # %_ZNSolsEf.exit10.invoke
.Ltmp42:
	movl	$4, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp43:
.LBB2_18:                               # %_ZNSolsEm.exit
	leaq	16(%rsp), %rsi
.Ltmp46:
	movq	%rbx, %rdi
	callq	_ZNKSt7__cxx1115basic_stringbufIcSt11char_traitsIcESaIcEE3strEv
.Ltmp47:
# %bb.19:                               # %_ZNKSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEE3strEv.exit
	leaq	8(%rsp), %rdi
	movl	$_ZTTNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEE, %esi
	callq	_ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEED2Ev
	leaq	120(%rsp), %rdi
	callq	_ZNSt8ios_baseD2Ev
	movq	%rbx, %rax
	addq	$384, %rsp                      # imm = 0x180
	.cfi_def_cfa_offset 32
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.LBB2_2:
	.cfi_def_cfa_offset 416
.Ltmp48:
	movq	%rax, %rbx
	leaq	8(%rsp), %rdi
	movl	$_ZTTNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEE, %esi
	callq	_ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEED2Ev
	leaq	120(%rsp), %rdi
	callq	_ZNSt8ios_baseD2Ev
	movq	%rbx, %rdi
	callq	_Unwind_Resume@PLT
.Lfunc_end2:
	.size	_ZL10formatSizeB5cxx11m, .Lfunc_end2-_ZL10formatSizeB5cxx11m
	.cfi_endproc
	.section	.gcc_except_table,"a",@progbits
	.p2align	2, 0x0
GCC_except_table2:
.Lexception1:
	.byte	255                             # @LPStart Encoding = omit
	.byte	255                             # @TType Encoding = omit
	.byte	1                               # Call site Encoding = uleb128
	.uleb128 .Lcst_end1-.Lcst_begin1
.Lcst_begin1:
	.uleb128 .Lfunc_begin1-.Lfunc_begin1    # >> Call Site 1 <<
	.uleb128 .Ltmp44-.Lfunc_begin1          #   Call between .Lfunc_begin1 and .Ltmp44
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp44-.Lfunc_begin1          # >> Call Site 2 <<
	.uleb128 .Ltmp47-.Ltmp44                #   Call between .Ltmp44 and .Ltmp47
	.uleb128 .Ltmp48-.Lfunc_begin1          #     jumps to .Ltmp48
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp47-.Lfunc_begin1          # >> Call Site 3 <<
	.uleb128 .Lfunc_end2-.Ltmp47            #   Call between .Ltmp47 and .Lfunc_end2
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
.Lcst_end1:
	.p2align	2, 0x0
                                        # -- End function
	.type	.L.str.1,@object                # @.str.1
	.section	.rodata.str1.1,"aMS",@progbits,1
.L.str.1:
	.asciz	"CUDA Runtime Version:"
	.size	.L.str.1, 22

	.type	.L.str.2,@object                # @.str.2
.L.str.2:
	.asciz	"."
	.size	.L.str.2, 2

	.type	.L.str.3,@object                # @.str.3
.L.str.3:
	.asciz	"CUDA Driver Version:"
	.size	.L.str.3, 21

	.type	.L.str.4,@object                # @.str.4
.L.str.4:
	.asciz	"GPU(s):"
	.size	.L.str.4, 8

	.type	.L.str.5,@object                # @.str.5
.L.str.5:
	.asciz	"GPU Device ID:"
	.size	.L.str.5, 15

	.type	.L.str.6,@object                # @.str.6
.L.str.6:
	.asciz	"  Name:"
	.size	.L.str.6, 8

	.type	.L.str.7,@object                # @.str.7
.L.str.7:
	.asciz	"  Compute Capability:"
	.size	.L.str.7, 22

	.type	.L.str.8,@object                # @.str.8
.L.str.8:
	.asciz	"  MultiProcessor(s):"
	.size	.L.str.8, 21

	.type	.L.str.9,@object                # @.str.9
.L.str.9:
	.asciz	"  Cores Per MultiProcessor:"
	.size	.L.str.9, 28

	.type	.L.str.10,@object               # @.str.10
.L.str.10:
	.asciz	"  Max Threads Per MultiProcessor:"
	.size	.L.str.10, 34

	.type	.L.str.11,@object               # @.str.11
.L.str.11:
	.asciz	"  Clock Rate:"
	.size	.L.str.11, 14

	.type	.L.str.12,@object               # @.str.12
.L.str.12:
	.asciz	" MHz"
	.size	.L.str.12, 5

	.type	.L.str.13,@object               # @.str.13
.L.str.13:
	.asciz	"  Warp Size:"
	.size	.L.str.13, 13

	.type	.L.str.14,@object               # @.str.14
.L.str.14:
	.asciz	"  L2 Cache Size:"
	.size	.L.str.14, 17

	.type	.L.str.15,@object               # @.str.15
.L.str.15:
	.asciz	"  Global Memory Size:"
	.size	.L.str.15, 22

	.type	.L.str.16,@object               # @.str.16
.L.str.16:
	.asciz	"  Constant Memory Size:"
	.size	.L.str.16, 24

	.type	.L.str.17,@object               # @.str.17
.L.str.17:
	.asciz	"  One-Dimension Texture Size:"
	.size	.L.str.17, 30

	.type	.L.str.18,@object               # @.str.18
.L.str.18:
	.asciz	"  Two-Dimension Texture Size:"
	.size	.L.str.18, 30

	.type	.L.str.19,@object               # @.str.19
.L.str.19:
	.asciz	" x "
	.size	.L.str.19, 4

	.type	.L.str.20,@object               # @.str.20
.L.str.20:
	.asciz	"  Three-Dimension Texture Size:"
	.size	.L.str.20, 32

	.type	.L.str.21,@object               # @.str.21
.L.str.21:
	.asciz	"  Shared Memory Size Per Block:"
	.size	.L.str.21, 32

	.type	.L.str.22,@object               # @.str.22
.L.str.22:
	.asciz	"  Max Threads Per Block:"
	.size	.L.str.22, 25

	.type	.L.str.23,@object               # @.str.23
.L.str.23:
	.asciz	"  Registers Per Block:"
	.size	.L.str.23, 23

	.type	.L.str.24,@object               # @.str.24
.L.str.24:
	.asciz	"  Block Dimension:"
	.size	.L.str.24, 19

	.type	.L.str.25,@object               # @.str.25
.L.str.25:
	.asciz	"  Grid Dimension:"
	.size	.L.str.25, 18

	.type	.L.str.26,@object               # @.str.26
.L.str.26:
	.asciz	"  Unified address space:"
	.size	.L.str.26, 25

	.type	.L.str.27,@object               # @.str.27
.L.str.27:
	.asciz	" KiB"
	.size	.L.str.27, 5

	.type	.L.str.28,@object               # @.str.28
.L.str.28:
	.asciz	" MiB"
	.size	.L.str.28, 5

	.type	.L.str.29,@object               # @.str.29
.L.str.29:
	.asciz	" GiB"
	.size	.L.str.29, 5

	.type	__hip_cuid_,@object             # @__hip_cuid_
	.bss
	.globl	__hip_cuid_
__hip_cuid_:
	.byte	0                               # 0x0
	.size	__hip_cuid_, 1

	.ident	"AMD clang version 18.0.0git (https://github.com/RadeonOpenCompute/llvm-project roc-6.3.2 25012 e5bf7e55c91490b07c49d8960fa7983d864936c4)"
	.section	".note.GNU-stack","",@progbits
	.addrsig
	.addrsig_sym __gxx_personality_v0
	.addrsig_sym _Unwind_Resume
	.addrsig_sym _ZSt4cout
	.addrsig_sym _ZSt4cerr
	.addrsig_sym __hip_cuid_

	.text
	.p2alignl 7, 3214868480
	.fill 96, 4, 3214868480
	.type	__hip_cuid_,@object             ; @__hip_cuid_
	.section	.bss,"aw",@nobits
	.globl	__hip_cuid_
__hip_cuid_:
	.byte	0                               ; 0x0
	.size	__hip_cuid_, 1

	.ident	"AMD clang version 18.0.0git (https://github.com/RadeonOpenCompute/llvm-project roc-6.3.2 25012 e5bf7e55c91490b07c49d8960fa7983d864936c4)"
	.section	".note.GNU-stack","",@progbits
	.addrsig
	.addrsig_sym __hip_cuid_
	.amdgcn_target "amdgcn-amd-amdhsa--gfx1100"
	.amdgpu_metadata
---
amdhsa.kernels:  []
amdhsa.target:   amdgcn-amd-amdhsa--gfx1100
amdhsa.version:
  - 1
  - 2
...

	.end_amdgpu_metadata
