#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <cuda_runtime.h>
#include <iomanip>
#include <iostream>
#include <vector>

inline void check(cudaError_t err, const char* context) {
    if (err != cudaSuccess) {
        std::cerr << "CUDA error: " << context << ": "
            << cudaGetErrorString(err) << std::endl;
        std::exit(EXIT_FAILURE);
    }
}

#define CHECK(x) check(x, #x)

struct DeviceStat {
    const std::string label;
    const std::string attr_unit;
    const cudaDeviceAttr attr_enum;
    int device;
};

class DeviceAnalyzer {
    const std::vector<DeviceStat> device_stats;
    public:
        DeviceAnalyzer(int);
        void print_stats() const;
};

DeviceAnalyzer::DeviceAnalyzer(int device_num) : device_stats({
    {
        "compute capability",
        "",
        cudaDevAttrComputeCapabilityMajor,
        device_num
    },
    {
        "global memory bus width",
        "bits",
        cudaDevAttrGlobalMemoryBusWidth,
        device_num
    },
    {
        "streaming multiprocessors",
        "",
        cudaDevAttrMultiProcessorCount,
        device_num
    },
    {
        "maximum threads per SM",
        "",
        cudaDevAttrMaxThreadsPerMultiProcessor,
        device_num
    },
    {
        "L2 cache size",
        "bytes",
        cudaDevAttrL2CacheSize,
        device_num
    },
}) { };

void DeviceAnalyzer::print_stats() const {
    for (const auto& stat : device_stats) {
        int attr_value;
        CHECK(cudaDeviceGetAttribute(&attr_value, stat.attr_enum, stat.device));
        std::cout << std::left << std::setw(30)
                  << stat.label + ": " << attr_value
                  << ' ' << stat.attr_unit << std::endl;
    }
}


int main(int argc, char** argv) {
    if (argc > 2 || (argc >= 2 && std::strcmp(argv[1], "-h") == 0)) {
        std::cerr << "usage: ./analyze [-h] [device_num]\n";
        std::exit(2);
    }

    int device_num = 0;
    if (argc == 2) {
        device_num = std::stoi(argv[1]);
    }

    const DeviceAnalyzer analyzer(device_num);
    std::cout << "Device " << device_num << " stats:\n";
    analyzer.print_stats();
}

	.file	"tmpxft_0030875a_00000000-6_analyze.cudafe1.cpp"
	.text
#APP
	.globl _ZSt21ios_base_library_initv

#NO_APP
	.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
	.text
	.type	_ZL26__cudaUnregisterBinaryUtilv, @function
_ZL26__cudaUnregisterBinaryUtilv:
.LFB4292:
	.cfi_startproc
	endbr64
	movq	_ZL20__cudaFatCubinHandle(%rip), %rdi
	jmp	__cudaUnregisterFatBinary@PLT
	.cfi_endproc
.LFE4292:
	.size	_ZL26__cudaUnregisterBinaryUtilv, .-_ZL26__cudaUnregisterBinaryUtilv
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"basic_string::append"
	.text
	.align 2
	.type	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKcm.isra.0, @function
_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKcm.isra.0:
.LFB5071:
	.cfi_startproc
	movabsq	$4611686018427387903, %rax
	subq	8(%rdi), %rax
	cmpq	%rdx, %rax
	jnb	.L4
	pushq	%rax
	.cfi_def_cfa_offset 16
	leaq	.LC0(%rip), %rdi
	call	_ZSt20__throw_length_errorPKc@PLT
.L4:
	.cfi_def_cfa_offset 8
	jmp	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm@PLT
	.cfi_endproc
.LFE5071:
	.size	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKcm.isra.0, .-_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKcm.isra.0
	.section	.text._ZN10DeviceStatD2Ev,"axG",@progbits,_ZN10DeviceStatD5Ev,comdat
	.align 2
	.weak	_ZN10DeviceStatD2Ev
	.type	_ZN10DeviceStatD2Ev, @function
_ZN10DeviceStatD2Ev:
.LFB4281:
	.cfi_startproc
	endbr64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	movq	%rdi, %rbx
	leaq	32(%rdi), %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	movq	%rbx, %rdi
	popq	%rbx
	.cfi_def_cfa_offset 8
	jmp	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	.cfi_endproc
.LFE4281:
	.size	_ZN10DeviceStatD2Ev, .-_ZN10DeviceStatD2Ev
	.weak	_ZN10DeviceStatD1Ev
	.set	_ZN10DeviceStatD1Ev,_ZN10DeviceStatD2Ev
	.section	.rodata.str1.1
.LC1:
	.string	"CUDA error: "
.LC2:
	.string	"cudaDeviceGetAttribute(&attr_value, stat.attr_enum, stat.device)"
.LC3:
	.string	": "
	.text
	.align 2
	.globl	_ZNK14DeviceAnalyzer11print_statsEv
	.type	_ZNK14DeviceAnalyzer11print_statsEv, @function
_ZNK14DeviceAnalyzer11print_statsEv:
.LFB4285:
	.cfi_startproc
	.cfi_personality 0x9b,DW.ref.__gxx_personality_v0
	.cfi_lsda 0x1b,.LLSDA4285
	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
	leaq	.LC3(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$72, %rsp
	.cfi_def_cfa_offset 128
	movq	8(%rdi), %r14
	movq	(%rdi), %rbx
	movq	%fs:40, %rax
	movq	%rax, 56(%rsp)
	xorl	%eax, %eax
.L12:
	cmpq	%rbx, %r14
	je	.L29
	movl	68(%rbx), %edx
	movl	64(%rbx), %esi
	leaq	20(%rsp), %rdi
.LEHB0:
	call	cudaDeviceGetAttribute@PLT
	movl	%eax, %ebp
	testl	%eax, %eax
	je	.L13
	leaq	.LC1(%rip), %rsi
	leaq	_ZSt4cerr(%rip), %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	leaq	.LC2(%rip), %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%r12, %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	%ebp, %edi
	movq	%rax, %rbx
	call	cudaGetErrorString@PLT
	movq	%rbx, %rdi
	movq	%rax, %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	call	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@PLT
	movl	$1, %edi
	call	exit@PLT
.L13:
	leaq	_ZSt4leftRSt8ios_base(%rip), %rsi
	leaq	_ZSt4cout(%rip), %rdi
	call	_ZNSolsEPFRSt8ios_baseS0_E@PLT
.LEHE0:
	movq	(%rbx), %r15
	movq	%rax, %rbp
	movq	(%rax), %rax
	movq	-24(%rax), %rax
	movq	$30, 16(%rbp,%rax)
	leaq	24(%rsp), %rax
	movq	8(%rbx), %r13
	movq	%rax, 8(%rsp)
	leaq	40(%rsp), %rax
	movq	8(%rsp), %rdi
	movq	%rax, 24(%rsp)
	leaq	2(%r13), %rsi
	xorl	%eax, %eax
	movq	%rax, 32(%rsp)
	movb	$0, 40(%rsp)
.LEHB1:
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7reserveEm@PLT
	movq	8(%rsp), %rdi
	movq	%r13, %rdx
	movq	%r15, %rsi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKcm.isra.0
	movq	8(%rsp), %rdi
	movl	$2, %edx
	movq	%r12, %rsi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKcm.isra.0
.LEHE1:
	jmp	.L30
.L22:
	endbr64
	jmp	.L28
.L30:
	movq	8(%rsp), %rsi
	movq	%rbp, %rdi
.LEHB2:
	call	_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE@PLT
	movl	20(%rsp), %esi
	movq	%rax, %rdi
	call	_ZNSolsEi@PLT
	movq	%rax, %rdi
	movl	$32, %esi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c@PLT
	movq	%rax, %rdi
	leaq	32(%rbx), %rsi
	call	_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE@PLT
	movq	%rax, %rdi
	call	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@PLT
.LEHE2:
	movq	8(%rsp), %rdi
	addq	$72, %rbx
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	jmp	.L12
.L21:
	endbr64
.L28:
	movq	%rax, %rbx
.L18:
	movq	8(%rsp), %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	movq	56(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L27
	movq	%rbx, %rdi
.LEHB3:
	call	_Unwind_Resume@PLT
.LEHE3:
.L29:
	movq	56(%rsp), %rax
	subq	%fs:40, %rax
	je	.L20
.L27:
	call	__stack_chk_fail@PLT
.L20:
	addq	$72, %rsp
	.cfi_def_cfa_offset 56
	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
.LFE4285:
	.globl	__gxx_personality_v0
	.section	.gcc_except_table,"a",@progbits
.LLSDA4285:
	.byte	0xff
	.byte	0xff
	.byte	0x1
	.uleb128 .LLSDACSE4285-.LLSDACSB4285
.LLSDACSB4285:
	.uleb128 .LEHB0-.LFB4285
	.uleb128 .LEHE0-.LEHB0
	.uleb128 0
	.uleb128 0
	.uleb128 .LEHB1-.LFB4285
	.uleb128 .LEHE1-.LEHB1
	.uleb128 .L22-.LFB4285
	.uleb128 0
	.uleb128 .LEHB2-.LFB4285
	.uleb128 .LEHE2-.LEHB2
	.uleb128 .L21-.LFB4285
	.uleb128 0
	.uleb128 .LEHB3-.LFB4285
	.uleb128 .LEHE3-.LEHB3
	.uleb128 0
	.uleb128 0
.LLSDACSE4285:
	.text
	.size	_ZNK14DeviceAnalyzer11print_statsEv, .-_ZNK14DeviceAnalyzer11print_statsEv
	.section	.text.startup,"ax",@progbits
	.type	_ZL24__sti____cudaRegisterAllv, @function
_ZL24__sti____cudaRegisterAllv:
.LFB4315:
	.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
.LFE4315:
	.size	_ZL24__sti____cudaRegisterAllv, .-_ZL24__sti____cudaRegisterAllv
	.section	.init_array,"aw"
	.align 8
	.quad	_ZL24__sti____cudaRegisterAllv
	.section	.text._ZZN9__gnu_cxx6__stoaIlicJiEEET0_PFT_PKT1_PPS3_DpT2_EPKcS5_PmS9_EN11_Save_errnoD2Ev,"axG",@progbits,_ZZN9__gnu_cxx6__stoaIlicJiEEET0_PFT_PKT1_PPS3_DpT2_EPKcS5_PmS9_EN11_Save_errnoD5Ev,comdat
	.align 2
	.weak	_ZZN9__gnu_cxx6__stoaIlicJiEEET0_PFT_PKT1_PPS3_DpT2_EPKcS5_PmS9_EN11_Save_errnoD2Ev
	.type	_ZZN9__gnu_cxx6__stoaIlicJiEEET0_PFT_PKT1_PPS3_DpT2_EPKcS5_PmS9_EN11_Save_errnoD2Ev, @function
_ZZN9__gnu_cxx6__stoaIlicJiEEET0_PFT_PKT1_PPS3_DpT2_EPKcS5_PmS9_EN11_Save_errnoD2Ev:
.LFB4394:
	.cfi_startproc
	endbr64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	movq	%rdi, %rbx
	call	__errno_location@PLT
	cmpl	$0, (%rax)
	jne	.L33
	movl	(%rbx), %edx
	movl	%edx, (%rax)
.L33:
	popq	%rbx
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4394:
	.size	_ZZN9__gnu_cxx6__stoaIlicJiEEET0_PFT_PKT1_PPS3_DpT2_EPKcS5_PmS9_EN11_Save_errnoD2Ev, .-_ZZN9__gnu_cxx6__stoaIlicJiEEET0_PFT_PKT1_PPS3_DpT2_EPKcS5_PmS9_EN11_Save_errnoD2Ev
	.weak	_ZZN9__gnu_cxx6__stoaIlicJiEEET0_PFT_PKT1_PPS3_DpT2_EPKcS5_PmS9_EN11_Save_errnoD1Ev
	.set	_ZZN9__gnu_cxx6__stoaIlicJiEEET0_PFT_PKT1_PPS3_DpT2_EPKcS5_PmS9_EN11_Save_errnoD1Ev,_ZZN9__gnu_cxx6__stoaIlicJiEEET0_PFT_PKT1_PPS3_DpT2_EPKcS5_PmS9_EN11_Save_errnoD2Ev
	.section	.rodata._ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_.str1.1,"aMS",@progbits,1
.LC4:
	.string	"basic_string: construction from null is not valid"
	.section	.text._ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_,"axG",@progbits,_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC5IS3_EEPKcRKS3_,comdat
	.align 2
	.weak	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_
	.type	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_, @function
_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_:
.LFB4633:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	subq	$16, %rsp
	.cfi_def_cfa_offset 48
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	16(%rdi), %rax
	movq	%rax, (%rdi)
	testq	%rsi, %rsi
	jne	.L37
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L42
	leaq	.LC4(%rip), %rdi
	call	_ZSt19__throw_logic_errorPKc@PLT
.L37:
	movq	%rdi, %rbx
	movq	%rsi, %rdi
	movq	%rsi, %rbp
	call	strlen@PLT
	movq	%rax, (%rsp)
	leaq	0(%rbp,%rax), %r12
	cmpq	$15, %rax
	jbe	.L39
	movq	%rsp, %rsi
	xorl	%edx, %edx
	movq	%rbx, %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_createERmm@PLT
	movq	%rax, (%rbx)
	movq	(%rsp), %rax
	movq	%rax, 16(%rbx)
.L39:
	movq	(%rbx), %rdi
	movq	%r12, %rdx
	movq	%rbp, %rsi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE13_S_copy_charsEPcPKcS7_@PLT
	movq	(%rsp), %rax
	movq	(%rbx), %rdx
	movq	%rax, 8(%rbx)
	movb	$0, (%rdx,%rax)
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	je	.L40
.L42:
	call	__stack_chk_fail@PLT
.L40:
	addq	$16, %rsp
	.cfi_def_cfa_offset 32
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4633:
	.size	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_, .-_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_
	.weak	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1IS3_EEPKcRKS3_
	.set	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1IS3_EEPKcRKS3_,_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_
	.section	.text._ZNSt12_Vector_baseI10DeviceStatSaIS0_EED2Ev,"axG",@progbits,_ZNSt12_Vector_baseI10DeviceStatSaIS0_EED5Ev,comdat
	.align 2
	.weak	_ZNSt12_Vector_baseI10DeviceStatSaIS0_EED2Ev
	.type	_ZNSt12_Vector_baseI10DeviceStatSaIS0_EED2Ev, @function
_ZNSt12_Vector_baseI10DeviceStatSaIS0_EED2Ev:
.LFB4814:
	.cfi_startproc
	endbr64
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	.L43
	movq	16(%rdi), %rsi
	movq	%rax, %rdi
	subq	%rax, %rsi
	jmp	_ZdlPvm@PLT
.L43:
	ret
	.cfi_endproc
.LFE4814:
	.size	_ZNSt12_Vector_baseI10DeviceStatSaIS0_EED2Ev, .-_ZNSt12_Vector_baseI10DeviceStatSaIS0_EED2Ev
	.weak	_ZNSt12_Vector_baseI10DeviceStatSaIS0_EED1Ev
	.set	_ZNSt12_Vector_baseI10DeviceStatSaIS0_EED1Ev,_ZNSt12_Vector_baseI10DeviceStatSaIS0_EED2Ev
	.section	.text._ZNSt6vectorI10DeviceStatSaIS0_EED2Ev,"axG",@progbits,_ZNSt6vectorI10DeviceStatSaIS0_EED5Ev,comdat
	.align 2
	.weak	_ZNSt6vectorI10DeviceStatSaIS0_EED2Ev
	.type	_ZNSt6vectorI10DeviceStatSaIS0_EED2Ev, @function
_ZNSt6vectorI10DeviceStatSaIS0_EED2Ev:
.LFB4647:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	movq	8(%rdi), %r12
	movq	%rdi, %rbx
	movq	(%rdi), %rbp
.L46:
	cmpq	%rbp, %r12
	je	.L49
	movq	%rbp, %rdi
	addq	$72, %rbp
	call	_ZN10DeviceStatD1Ev
	jmp	.L46
.L49:
	movq	%rbx, %rdi
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	jmp	_ZNSt12_Vector_baseI10DeviceStatSaIS0_EED2Ev
	.cfi_endproc
.LFE4647:
	.size	_ZNSt6vectorI10DeviceStatSaIS0_EED2Ev, .-_ZNSt6vectorI10DeviceStatSaIS0_EED2Ev
	.weak	_ZNSt6vectorI10DeviceStatSaIS0_EED1Ev
	.set	_ZNSt6vectorI10DeviceStatSaIS0_EED1Ev,_ZNSt6vectorI10DeviceStatSaIS0_EED2Ev
	.section	.rodata.str1.1
.LC5:
	.string	"compute capability"
.LC6:
	.string	""
.LC7:
	.string	"global memory bus width"
.LC8:
	.string	"bits"
.LC9:
	.string	"streaming multiprocessors"
.LC10:
	.string	"maximum threads per SM"
.LC11:
	.string	"L2 cache size"
.LC12:
	.string	"bytes"
	.text
	.align 2
	.globl	_ZN14DeviceAnalyzerC2Ei
	.type	_ZN14DeviceAnalyzerC2Ei, @function
_ZN14DeviceAnalyzerC2Ei:
.LFB4283:
	.cfi_startproc
	.cfi_personality 0x9b,DW.ref.__gxx_personality_v0
	.cfi_lsda 0x1b,.LLSDA4283
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movl	$18, %ecx
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	movl	%esi, %r13d
	leaq	.LC5(%rip), %rsi
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movq	%rdi, %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$408, %rsp
	.cfi_def_cfa_offset 464
	movq	%fs:40, %rax
	movq	%rax, 392(%rsp)
	xorl	%eax, %eax
	leaq	32(%rsp), %rdi
	leaq	31(%rsp), %rbx
	leaq	32(%rsp), %rbp
	movq	%rbx, %rdx
	rep stosl
	movq	%rbp, %rdi
	movl	$75, 96(%rsp)
.LEHB4:
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1IS3_EEPKcRKS3_
.LEHE4:
	jmp	.L115
.L92:
	endbr64
.L52:
	jmp	.L107
.L115:
	leaq	.LC6(%rip), %r15
	leaq	64(%rsp), %rdi
	movq	%rbx, %rdx
	movq	%r15, %rsi
.LEHB5:
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1IS3_EEPKcRKS3_
.LEHE5:
	leaq	104(%rsp), %rdi
	movl	$18, %ecx
	xorl	%eax, %eax
	movq	%rbx, %rdx
	rep stosl
	leaq	104(%rsp), %r14
	movl	%r13d, 100(%rsp)
	leaq	.LC7(%rip), %rsi
	movl	$37, 168(%rsp)
	movq	%r14, %rdi
.LEHB6:
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1IS3_EEPKcRKS3_
.LEHE6:
	jmp	.L116
.L93:
	endbr64
.L55:
	jmp	.L109
.L116:
	leaq	136(%rsp), %rdi
	movq	%rbx, %rdx
	leaq	.LC8(%rip), %rsi
.LEHB7:
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1IS3_EEPKcRKS3_
.LEHE7:
	leaq	176(%rsp), %rdi
	movl	$18, %ecx
	xorl	%eax, %eax
	movq	%rbx, %rdx
	leaq	176(%rsp), %r14
	leaq	.LC9(%rip), %rsi
	movl	%r13d, 172(%rsp)
	rep stosl
	movq	%r14, %rdi
	movl	$16, 240(%rsp)
.LEHB8:
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1IS3_EEPKcRKS3_
.LEHE8:
	jmp	.L117
.L82:
	endbr64
.L57:
	jmp	.L108
.L117:
	leaq	208(%rsp), %rdi
	movq	%rbx, %rdx
	movq	%r15, %rsi
.LEHB9:
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1IS3_EEPKcRKS3_
.LEHE9:
	leaq	248(%rsp), %rdi
	movl	$18, %ecx
	xorl	%eax, %eax
	movq	%rbx, %rdx
	leaq	248(%rsp), %r14
	leaq	.LC10(%rip), %rsi
	movl	%r13d, 244(%rsp)
	rep stosl
	movq	%r14, %rdi
	movl	$39, 312(%rsp)
.LEHB10:
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1IS3_EEPKcRKS3_
.LEHE10:
	jmp	.L118
.L94:
	endbr64
.L59:
	jmp	.L111
.L118:
	leaq	280(%rsp), %rdi
	movq	%rbx, %rdx
	movq	%r15, %rsi
.LEHB11:
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1IS3_EEPKcRKS3_
.LEHE11:
	leaq	320(%rsp), %rdi
	movl	$18, %ecx
	xorl	%eax, %eax
	movq	%rbx, %rdx
	leaq	320(%rsp), %r14
	leaq	.LC11(%rip), %rsi
	movl	%r13d, 316(%rsp)
	rep stosl
	movq	%r14, %rdi
	movl	$38, 384(%rsp)
.LEHB12:
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1IS3_EEPKcRKS3_
.LEHE12:
	jmp	.L119
.L95:
	endbr64
.L61:
	jmp	.L110
.L119:
	leaq	352(%rsp), %rdi
	movq	%rbx, %rdx
	leaq	.LC12(%rip), %rsi
.LEHB13:
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1IS3_EEPKcRKS3_
.LEHE13:
	xorl	%eax, %eax
	movl	$360, %edi
	movl	%r13d, 388(%rsp)
	movq	%rax, (%r12)
	movq	%rax, 8(%r12)
	movq	%rax, 16(%r12)
.LEHB14:
	call	_Znwm@PLT
.LEHE14:
	movq	%rax, %r14
	movq	%rax, (%r12)
	leaq	360(%rax), %rax
	movq	%rbp, %rbx
	movq	%rax, 16(%r12)
	movq	%r14, %r13
	leaq	392(%rsp), %r15
.L62:
	movq	%rbx, %rsi
	movq	%r13, %rdi
.LEHB15:
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1ERKS4_@PLT
.LEHE15:
	leaq	32(%rbx), %rsi
	leaq	32(%r13), %rdi
.LEHB16:
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1ERKS4_@PLT
.LEHE16:
	movl	64(%rbx), %eax
	addq	$72, %rbx
	addq	$72, %r13
	movl	%eax, -8(%r13)
	movl	-4(%rbx), %eax
	movl	%eax, -4(%r13)
	cmpq	%r15, %rbx
	jne	.L62
	movq	%r13, 8(%r12)
	jmp	.L66
.L86:
	endbr64
	movq	%rax, %rbx
.L64:
	movq	%r13, %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	movq	%rbx, %rdi
	jmp	.L65
.L85:
	endbr64
	movq	%rax, %rdi
.L65:
	call	__cxa_begin_catch@PLT
.L67:
	cmpq	%r13, %r14
	je	.L120
	movq	%r14, %rdi
	addq	$72, %r14
	call	_ZN10DeviceStatD1Ev
	jmp	.L67
.L120:
	movq	392(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L114
.LEHB17:
	call	__cxa_rethrow@PLT
.LEHE17:
.L84:
	endbr64
	movq	%rax, %rbx
.L70:
	call	__cxa_end_catch@PLT
	jmp	.L71
.L83:
	endbr64
	movq	%rax, %rbx
.L71:
	movq	%r12, %rdi
	leaq	392(%rsp), %r12
	call	_ZNSt12_Vector_baseI10DeviceStatSaIS0_EED2Ev
	jmp	.L72
.L66:
	subq	$72, %rbx
	movq	%rbx, %rdi
	call	_ZN10DeviceStatD1Ev
	cmpq	%rbp, %rbx
	jne	.L66
	jmp	.L121
.L72:
	subq	$72, %r12
	movq	%r12, %rdi
	call	_ZN10DeviceStatD1Ev
	cmpq	%rbp, %r12
	je	.L112
	jmp	.L72
.L91:
	endbr64
	movq	%rax, %rbx
.L73:
	movq	%r14, %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	movq	%rbx, %rax
.L110:
	xorl	%edx, %edx
	jmp	.L53
.L90:
	endbr64
	movq	%rax, %rbx
.L74:
	movq	%r14, %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	movq	%rbx, %rax
.L111:
	movl	$1, %edx
	jmp	.L53
.L89:
	endbr64
	movq	%rax, %rbx
.L75:
	movq	%r14, %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	movq	%rbx, %rax
.L108:
	movl	$2, %edx
	jmp	.L53
.L88:
	endbr64
	movq	%rax, %rbx
.L76:
	movq	%r14, %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	movq	%rbx, %rax
.L109:
	movl	$3, %edx
	jmp	.L53
.L87:
	endbr64
	movq	%rax, %rbx
.L77:
	movq	%rbp, %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
.L112:
	movq	%rbx, %rax
.L107:
	movl	$4, %edx
.L53:
	movl	$4, %ebx
	subq	%rdx, %rbx
	imulq	$72, %rbx, %rbx
	addq	%rbp, %rbx
.L79:
	cmpq	%rbp, %rbx
	je	.L78
	subq	$72, %rbx
	movq	%rax, 8(%rsp)
	movq	%rbx, %rdi
	call	_ZN10DeviceStatD1Ev
	movq	8(%rsp), %rax
	jmp	.L79
.L78:
	movq	392(%rsp), %rdx
	subq	%fs:40, %rdx
	jne	.L114
	movq	%rax, %rdi
.LEHB18:
	call	_Unwind_Resume@PLT
.LEHE18:
.L121:
	movq	392(%rsp), %rax
	subq	%fs:40, %rax
	je	.L81
.L114:
	call	__stack_chk_fail@PLT
.L81:
	addq	$408, %rsp
	.cfi_def_cfa_offset 56
	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
.LFE4283:
	.section	.gcc_except_table
	.align 4
.LLSDA4283:
	.byte	0xff
	.byte	0x9b
	.uleb128 .LLSDATT4283-.LLSDATTD4283
.LLSDATTD4283:
	.byte	0x1
	.uleb128 .LLSDACSE4283-.LLSDACSB4283
.LLSDACSB4283:
	.uleb128 .LEHB4-.LFB4283
	.uleb128 .LEHE4-.LEHB4
	.uleb128 .L92-.LFB4283
	.uleb128 0
	.uleb128 .LEHB5-.LFB4283
	.uleb128 .LEHE5-.LEHB5
	.uleb128 .L87-.LFB4283
	.uleb128 0
	.uleb128 .LEHB6-.LFB4283
	.uleb128 .LEHE6-.LEHB6
	.uleb128 .L93-.LFB4283
	.uleb128 0
	.uleb128 .LEHB7-.LFB4283
	.uleb128 .LEHE7-.LEHB7
	.uleb128 .L88-.LFB4283
	.uleb128 0
	.uleb128 .LEHB8-.LFB4283
	.uleb128 .LEHE8-.LEHB8
	.uleb128 .L82-.LFB4283
	.uleb128 0
	.uleb128 .LEHB9-.LFB4283
	.uleb128 .LEHE9-.LEHB9
	.uleb128 .L89-.LFB4283
	.uleb128 0
	.uleb128 .LEHB10-.LFB4283
	.uleb128 .LEHE10-.LEHB10
	.uleb128 .L94-.LFB4283
	.uleb128 0
	.uleb128 .LEHB11-.LFB4283
	.uleb128 .LEHE11-.LEHB11
	.uleb128 .L90-.LFB4283
	.uleb128 0
	.uleb128 .LEHB12-.LFB4283
	.uleb128 .LEHE12-.LEHB12
	.uleb128 .L95-.LFB4283
	.uleb128 0
	.uleb128 .LEHB13-.LFB4283
	.uleb128 .LEHE13-.LEHB13
	.uleb128 .L91-.LFB4283
	.uleb128 0
	.uleb128 .LEHB14-.LFB4283
	.uleb128 .LEHE14-.LEHB14
	.uleb128 .L83-.LFB4283
	.uleb128 0
	.uleb128 .LEHB15-.LFB4283
	.uleb128 .LEHE15-.LEHB15
	.uleb128 .L85-.LFB4283
	.uleb128 0x1
	.uleb128 .LEHB16-.LFB4283
	.uleb128 .LEHE16-.LEHB16
	.uleb128 .L86-.LFB4283
	.uleb128 0x1
	.uleb128 .LEHB17-.LFB4283
	.uleb128 .LEHE17-.LEHB17
	.uleb128 .L84-.LFB4283
	.uleb128 0
	.uleb128 .LEHB18-.LFB4283
	.uleb128 .LEHE18-.LEHB18
	.uleb128 0
	.uleb128 0
.LLSDACSE4283:
	.byte	0x1
	.byte	0
	.align 4
	.long	0

.LLSDATT4283:
	.text
	.size	_ZN14DeviceAnalyzerC2Ei, .-_ZN14DeviceAnalyzerC2Ei
	.globl	_ZN14DeviceAnalyzerC1Ei
	.set	_ZN14DeviceAnalyzerC1Ei,_ZN14DeviceAnalyzerC2Ei
	.section	.rodata.str1.1
.LC13:
	.string	"-h"
.LC14:
	.string	"usage: ./analyze [-h] [device_num]\n"
.LC15:
	.string	"stoi"
.LC16:
	.string	"Device "
.LC17:
	.string	" stats:\n"
	.section	.text.startup
	.globl	main
	.type	main, @function
main:
.LFB4286:
	.cfi_startproc
	.cfi_personality 0x9b,DW.ref.__gxx_personality_v0
	.cfi_lsda 0x1b,.LLSDA4286
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	subq	$80, %rsp
	.cfi_def_cfa_offset 128
	movq	%fs:40, %rax
	movq	%rax, 72(%rsp)
	xorl	%eax, %eax
	cmpl	$2, %edi
	jg	.L123
	leaq	16(%rsp), %r12
	jne	.L136
	movq	8(%rsi), %rbx
	leaq	.LC13(%rip), %rsi
	movq	%rbx, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L125
.L123:
	leaq	_ZSt4cerr(%rip), %rdi
	leaq	.LC14(%rip), %rsi
.LEHB19:
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	$2, %edi
	call	exit@PLT
.L125:
	leaq	40(%rsp), %r13
	movq	%rbx, %rsi
	leaq	11(%rsp), %rdx
	movq	%r13, %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1IS3_EEPKcRKS3_
.LEHE19:
	movq	40(%rsp), %r14
	call	__errno_location@PLT
	movl	$10, %edx
	movq	%r12, %rsi
	movq	%rax, %rbp
	movl	(%rax), %eax
	movq	%r14, %rdi
	movl	%eax, 12(%rsp)
	xorl	%eax, %eax
	movl	%eax, 0(%rbp)
	call	__isoc23_strtol@PLT
	cmpq	16(%rsp), %r14
	leaq	12(%rsp), %r14
	movq	%rax, %rbx
	jne	.L126
	movq	72(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L139
	leaq	.LC15(%rip), %rdi
.LEHB20:
	call	_ZSt24__throw_invalid_argumentPKc@PLT
.L126:
	cmpl	$34, 0(%rbp)
	je	.L128
	movl	$2147483648, %eax
	movl	$4294967295, %edx
	addq	%rbx, %rax
	cmpq	%rax, %rdx
	jnb	.L129
.L128:
	movq	72(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L139
	leaq	.LC15(%rip), %rdi
	call	_ZSt20__throw_out_of_rangePKc@PLT
.LEHE20:
.L129:
	movq	%r14, %rdi
	call	_ZZN9__gnu_cxx6__stoaIlicJiEEET0_PFT_PKT1_PPS3_DpT2_EPKcS5_PmS9_EN11_Save_errnoD1Ev
	movq	%r13, %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	jmp	.L124
.L138:
	endbr64
	movq	%rax, %rbx
.L131:
	movq	%r14, %rdi
	call	_ZZN9__gnu_cxx6__stoaIlicJiEEET0_PFT_PKT1_PPS3_DpT2_EPKcS5_PmS9_EN11_Save_errnoD1Ev
	movq	%r13, %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	jmp	.L142
.L136:
	xorl	%ebx, %ebx
.L124:
	movl	%ebx, %esi
	movq	%r12, %rdi
.LEHB21:
	call	_ZN14DeviceAnalyzerC1Ei
.LEHE21:
	leaq	.LC16(%rip), %rsi
	leaq	_ZSt4cout(%rip), %rdi
.LEHB22:
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	movl	%ebx, %esi
	call	_ZNSolsEi@PLT
	movq	%rax, %rdi
	leaq	.LC17(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%r12, %rdi
	call	_ZNK14DeviceAnalyzer11print_statsEv
.LEHE22:
	movq	%r12, %rdi
	call	_ZNSt6vectorI10DeviceStatSaIS0_EED1Ev
	movq	72(%rsp), %rax
	subq	%fs:40, %rax
	je	.L135
	jmp	.L139
.L137:
	endbr64
	movq	%rax, %rbx
.L133:
	movq	%r12, %rdi
	call	_ZNSt6vectorI10DeviceStatSaIS0_EED1Ev
.L142:
	movq	72(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L139
	movq	%rbx, %rdi
.LEHB23:
	call	_Unwind_Resume@PLT
.LEHE23:
.L139:
	call	__stack_chk_fail@PLT
.L135:
	addq	$80, %rsp
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4286:
	.section	.gcc_except_table
.LLSDA4286:
	.byte	0xff
	.byte	0xff
	.byte	0x1
	.uleb128 .LLSDACSE4286-.LLSDACSB4286
.LLSDACSB4286:
	.uleb128 .LEHB19-.LFB4286
	.uleb128 .LEHE19-.LEHB19
	.uleb128 0
	.uleb128 0
	.uleb128 .LEHB20-.LFB4286
	.uleb128 .LEHE20-.LEHB20
	.uleb128 .L138-.LFB4286
	.uleb128 0
	.uleb128 .LEHB21-.LFB4286
	.uleb128 .LEHE21-.LEHB21
	.uleb128 0
	.uleb128 0
	.uleb128 .LEHB22-.LFB4286
	.uleb128 .LEHE22-.LEHB22
	.uleb128 .L137-.LFB4286
	.uleb128 0
	.uleb128 .LEHB23-.LFB4286
	.uleb128 .LEHE23-.LEHB23
	.uleb128 0
	.uleb128 0
.LLSDACSE4286:
	.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
	.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 <cstdio>
#include <cstdlib>
#include <cstring>
#include <hip/hip_runtime.h>
#include <iomanip>
#include <iostream>
#include <vector>

inline void check(hipError_t err, const char* context) {
    if (err != hipSuccess) {
        std::cerr << "CUDA error: " << context << ": "
            << hipGetErrorString(err) << std::endl;
        std::exit(EXIT_FAILURE);
    }
}

#define CHECK(x) check(x, #x)

struct DeviceStat {
    const std::string label;
    const std::string attr_unit;
    const hipDeviceAttribute_t attr_enum;
    int device;
};

class DeviceAnalyzer {
    const std::vector<DeviceStat> device_stats;
    public:
        DeviceAnalyzer(int);
        void print_stats() const;
};

DeviceAnalyzer::DeviceAnalyzer(int device_num) : device_stats({
    {
        "compute capability",
        "",
        hipDeviceAttributeComputeCapabilityMajor,
        device_num
    },
    {
        "global memory bus width",
        "bits",
        hipDeviceAttributeMemoryBusWidth,
        device_num
    },
    {
        "streaming multiprocessors",
        "",
        hipDeviceAttributeMultiprocessorCount,
        device_num
    },
    {
        "maximum threads per SM",
        "",
        hipDeviceAttributeMaxThreadsPerMultiProcessor,
        device_num
    },
    {
        "L2 cache size",
        "bytes",
        hipDeviceAttributeL2CacheSize,
        device_num
    },
}) { };

void DeviceAnalyzer::print_stats() const {
    for (const auto& stat : device_stats) {
        int attr_value;
        CHECK(hipDeviceGetAttribute(&attr_value, stat.attr_enum, stat.device));
        std::cout << std::left << std::setw(30)
                  << stat.label + ": " << attr_value
                  << ' ' << stat.attr_unit << std::endl;
    }
}


int main(int argc, char** argv) {
    if (argc > 2 || (argc >= 2 && std::strcmp(argv[1], "-h") == 0)) {
        std::cerr << "usage: ./analyze [-h] [device_num]\n";
        std::exit(2);
    }

    int device_num = 0;
    if (argc == 2) {
        device_num = std::stoi(argv[1]);
    }

    const DeviceAnalyzer analyzer(device_num);
    std::cout << "Device " << device_num << " stats:\n";
    analyzer.print_stats();
}

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

                                        # End of file scope inline assembly
	.globl	_ZN14DeviceAnalyzerC2Ei         # -- Begin function _ZN14DeviceAnalyzerC2Ei
	.p2align	1, 0x90
	.type	_ZN14DeviceAnalyzerC2Ei,@function
_ZN14DeviceAnalyzerC2Ei:                # @_ZN14DeviceAnalyzerC2Ei
.Lfunc_begin0:
	.cfi_startproc
	.cfi_personality 3, __gxx_personality_v0
	.cfi_lsda 3, .Lexception0
# %bb.0:                                # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_.exit
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%r15
	.cfi_def_cfa_offset 24
	pushq	%r14
	.cfi_def_cfa_offset 32
	pushq	%r12
	.cfi_def_cfa_offset 40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	subq	$368, %rsp                      # imm = 0x170
	.cfi_def_cfa_offset 416
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movl	%esi, %ebp
	movq	%rdi, %r15
	leaq	24(%rsp), %r14
	movq	%r14, -16(%r14)
	leaq	8(%rsp), %rbx
	movl	$.L.str, %esi
	movl	$.L.str+18, %edx
	movq	%rbx, %rdi
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag
	leaq	40(%rsp), %rdi
	leaq	56(%rsp), %rax
	movq	%rax, -16(%rax)
.Ltmp0:
	movl	$.L.str.1, %esi
	movl	$.L.str.1, %edx
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag
.Ltmp1:
# %bb.1:                                # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_.exit60
	leaq	80(%rsp), %r14
	movl	$23, -8(%r14)
	movl	%ebp, -4(%r14)
	leaq	96(%rsp), %r12
	movq	%r12, -16(%r12)
.Ltmp3:
	movl	$.L.str.2, %esi
	movl	$.L.str.2+23, %edx
	movq	%r14, %rdi
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag
.Ltmp4:
# %bb.2:                                # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_.exit61
	leaq	112(%rsp), %rdi
	leaq	128(%rsp), %rax
	movq	%rax, -16(%rax)
.Ltmp6:
	movl	$.L.str.3, %esi
	movl	$.L.str.3+4, %edx
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag
.Ltmp7:
# %bb.3:                                # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_.exit62
	leaq	152(%rsp), %r14
	movl	$59, -8(%r14)
	movl	%ebp, -4(%r14)
	leaq	168(%rsp), %r12
	movq	%r12, -16(%r12)
.Ltmp9:
	movl	$.L.str.4, %esi
	movl	$.L.str.4+25, %edx
	movq	%r14, %rdi
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag
.Ltmp10:
# %bb.4:                                # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_.exit63
	leaq	184(%rsp), %rdi
	leaq	200(%rsp), %rax
	movq	%rax, -16(%rax)
.Ltmp12:
	movl	$.L.str.1, %esi
	movl	$.L.str.1, %edx
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag
.Ltmp13:
# %bb.5:                                # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_.exit64
	leaq	224(%rsp), %r14
	movl	$63, -8(%r14)
	movl	%ebp, -4(%r14)
	leaq	240(%rsp), %r12
	movq	%r12, -16(%r12)
.Ltmp15:
	movl	$.L.str.5, %esi
	movl	$.L.str.5+22, %edx
	movq	%r14, %rdi
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag
.Ltmp16:
# %bb.6:                                # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_.exit65
	leaq	256(%rsp), %rdi
	leaq	272(%rsp), %rax
	movq	%rax, -16(%rax)
.Ltmp18:
	movl	$.L.str.1, %esi
	movl	$.L.str.1, %edx
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag
.Ltmp19:
# %bb.7:                                # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_.exit66
	leaq	296(%rsp), %r14
	movl	$57, -8(%r14)
	movl	%ebp, -4(%r14)
	leaq	312(%rsp), %r12
	movq	%r12, -16(%r12)
.Ltmp21:
	movl	$.L.str.6, %esi
	movl	$.L.str.6+13, %edx
	movq	%r14, %rdi
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag
.Ltmp22:
# %bb.8:                                # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_.exit67
	leaq	328(%rsp), %rdi
	leaq	344(%rsp), %rax
	movq	%rax, -16(%rax)
.Ltmp24:
	movl	$.L.str.7, %esi
	movl	$.L.str.7+5, %edx
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag
.Ltmp25:
# %bb.9:                                # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_.exit68
	leaq	8(%rsp), %rsi
	movl	$19, 352(%rsi)
	movl	%ebp, 356(%rsi)
.Ltmp27:
	leaq	7(%rsp), %rcx
	movl	$5, %edx
	movq	%r15, %rdi
	callq	_ZNSt6vectorI10DeviceStatSaIS0_EEC2ESt16initializer_listIS0_ERKS1_
.Ltmp28:
# %bb.10:
	movq	$-360, %rbx                     # imm = 0xFE98
	leaq	368(%rsp), %r14
.LBB0_11:                               # =>This Inner Loop Header: Depth=1
	movq	-40(%r14), %rdi
	leaq	-24(%r14), %rax
	cmpq	%rdi, %rax
	je	.LBB0_13
# %bb.12:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i.i
                                        #   in Loop: Header=BB0_11 Depth=1
	callq	_ZdlPv
.LBB0_13:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit.i
                                        #   in Loop: Header=BB0_11 Depth=1
	movq	-72(%r14), %rdi
	leaq	-56(%r14), %rax
	cmpq	%rdi, %rax
	je	.LBB0_15
# %bb.14:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i1.i
                                        #   in Loop: Header=BB0_11 Depth=1
	callq	_ZdlPv
.LBB0_15:                               # %_ZN10DeviceStatD2Ev.exit
                                        #   in Loop: Header=BB0_11 Depth=1
	addq	$-72, %r14
	addq	$72, %rbx
	jne	.LBB0_11
# %bb.16:
	addq	$368, %rsp                      # imm = 0x170
	.cfi_def_cfa_offset 48
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%r12
	.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_20:
	.cfi_def_cfa_offset 416
.Ltmp29:
	movq	%rax, %r15
	movl	$288, %ebx                      # imm = 0x120
.LBB0_21:                               # =>This Inner Loop Header: Depth=1
	leaq	(%rsp,%rbx), %rdi
	addq	$8, %rdi
	callq	_ZN10DeviceStatD2Ev
	addq	$-72, %rbx
	cmpq	$-72, %rbx
	jne	.LBB0_21
	jmp	.LBB0_33
.LBB0_22:
.Ltmp26:
	movq	%rax, %r15
	movq	296(%rsp), %rdi
	jmp	.LBB0_23
.LBB0_19:
.Ltmp23:
	jmp	.LBB0_31
.LBB0_25:
.Ltmp20:
	movq	%rax, %r15
	movq	224(%rsp), %rdi
	jmp	.LBB0_23
.LBB0_18:
.Ltmp17:
	jmp	.LBB0_31
.LBB0_26:
.Ltmp14:
	movq	%rax, %r15
	movq	152(%rsp), %rdi
	jmp	.LBB0_23
.LBB0_17:
.Ltmp11:
	jmp	.LBB0_31
.LBB0_27:
.Ltmp8:
	movq	%rax, %r15
	movq	80(%rsp), %rdi
.LBB0_23:
	cmpq	%r12, %rdi
	je	.LBB0_32
# %bb.24:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i
	callq	_ZdlPv
	jmp	.LBB0_32
.LBB0_30:
.Ltmp5:
.LBB0_31:
	movq	%rax, %r15
.LBB0_32:                               # =>This Inner Loop Header: Depth=1
	addq	$-72, %r14
	movq	%r14, %rdi
	callq	_ZN10DeviceStatD2Ev
	cmpq	%rbx, %r14
	jne	.LBB0_32
.LBB0_33:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit80.thread
	movq	%r15, %rdi
	callq	_Unwind_Resume@PLT
.LBB0_28:
.Ltmp2:
	movq	%rax, %r15
	movq	8(%rsp), %rdi
	cmpq	%r14, %rdi
	je	.LBB0_33
# %bb.29:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i78
	callq	_ZdlPv
	jmp	.LBB0_33
.Lfunc_end0:
	.size	_ZN14DeviceAnalyzerC2Ei, .Lfunc_end0-_ZN14DeviceAnalyzerC2Ei
	.cfi_endproc
	.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 .Ltmp1-.Ltmp0                  #   Call between .Ltmp0 and .Ltmp1
	.uleb128 .Ltmp2-.Lfunc_begin0           #     jumps to .Ltmp2
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp3-.Lfunc_begin0           # >> Call Site 3 <<
	.uleb128 .Ltmp4-.Ltmp3                  #   Call between .Ltmp3 and .Ltmp4
	.uleb128 .Ltmp5-.Lfunc_begin0           #     jumps to .Ltmp5
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp6-.Lfunc_begin0           # >> Call Site 4 <<
	.uleb128 .Ltmp7-.Ltmp6                  #   Call between .Ltmp6 and .Ltmp7
	.uleb128 .Ltmp8-.Lfunc_begin0           #     jumps to .Ltmp8
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp9-.Lfunc_begin0           # >> Call Site 5 <<
	.uleb128 .Ltmp10-.Ltmp9                 #   Call between .Ltmp9 and .Ltmp10
	.uleb128 .Ltmp11-.Lfunc_begin0          #     jumps to .Ltmp11
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp12-.Lfunc_begin0          # >> Call Site 6 <<
	.uleb128 .Ltmp13-.Ltmp12                #   Call between .Ltmp12 and .Ltmp13
	.uleb128 .Ltmp14-.Lfunc_begin0          #     jumps to .Ltmp14
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp15-.Lfunc_begin0          # >> Call Site 7 <<
	.uleb128 .Ltmp16-.Ltmp15                #   Call between .Ltmp15 and .Ltmp16
	.uleb128 .Ltmp17-.Lfunc_begin0          #     jumps to .Ltmp17
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp18-.Lfunc_begin0          # >> Call Site 8 <<
	.uleb128 .Ltmp19-.Ltmp18                #   Call between .Ltmp18 and .Ltmp19
	.uleb128 .Ltmp20-.Lfunc_begin0          #     jumps to .Ltmp20
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp21-.Lfunc_begin0          # >> Call Site 9 <<
	.uleb128 .Ltmp22-.Ltmp21                #   Call between .Ltmp21 and .Ltmp22
	.uleb128 .Ltmp23-.Lfunc_begin0          #     jumps to .Ltmp23
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp24-.Lfunc_begin0          # >> Call Site 10 <<
	.uleb128 .Ltmp25-.Ltmp24                #   Call between .Ltmp24 and .Ltmp25
	.uleb128 .Ltmp26-.Lfunc_begin0          #     jumps to .Ltmp26
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp27-.Lfunc_begin0          # >> Call Site 11 <<
	.uleb128 .Ltmp28-.Ltmp27                #   Call between .Ltmp27 and .Ltmp28
	.uleb128 .Ltmp29-.Lfunc_begin0          #     jumps to .Ltmp29
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp28-.Lfunc_begin0          # >> Call Site 12 <<
	.uleb128 .Lfunc_end0-.Ltmp28            #   Call between .Ltmp28 and .Lfunc_end0
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
.Lcst_end0:
	.p2align	2, 0x0
                                        # -- End function
	.section	.text._ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_,"axG",@progbits,_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_,comdat
	.weak	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_ # -- Begin function _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_
	.p2align	1, 0x90
	.type	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_,@function
_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_: # @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_
	.cfi_startproc
# %bb.0:
	pushq	%r14
	.cfi_def_cfa_offset 16
	pushq	%rbx
	.cfi_def_cfa_offset 24
	pushq	%rax
	.cfi_def_cfa_offset 32
	.cfi_offset %rbx, -24
	.cfi_offset %r14, -16
	leaq	16(%rdi), %rax
	movq	%rax, (%rdi)
	testq	%rsi, %rsi
	je	.LBB1_1
# %bb.2:
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	strlen
	leaq	(%rax,%rbx), %rdx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	addq	$8, %rsp
	.cfi_def_cfa_offset 24
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	jmp	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag # TAILCALL
.LBB1_1:
	.cfi_def_cfa_offset 32
	movl	$.L.str.16, %edi
	callq	_ZSt19__throw_logic_errorPKc
.Lfunc_end1:
	.size	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_, .Lfunc_end1-_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt6vectorI10DeviceStatSaIS0_EEC2ESt16initializer_listIS0_ERKS1_,"axG",@progbits,_ZNSt6vectorI10DeviceStatSaIS0_EEC2ESt16initializer_listIS0_ERKS1_,comdat
	.weak	_ZNSt6vectorI10DeviceStatSaIS0_EEC2ESt16initializer_listIS0_ERKS1_ # -- Begin function _ZNSt6vectorI10DeviceStatSaIS0_EEC2ESt16initializer_listIS0_ERKS1_
	.p2align	1, 0x90
	.type	_ZNSt6vectorI10DeviceStatSaIS0_EEC2ESt16initializer_listIS0_ERKS1_,@function
_ZNSt6vectorI10DeviceStatSaIS0_EEC2ESt16initializer_listIS0_ERKS1_: # @_ZNSt6vectorI10DeviceStatSaIS0_EEC2ESt16initializer_listIS0_ERKS1_
.Lfunc_begin1:
	.cfi_startproc
	.cfi_personality 3, __gxx_personality_v0
	.cfi_lsda 3, .Lexception1
# %bb.0:
	pushq	%r14
	.cfi_def_cfa_offset 16
	pushq	%rbx
	.cfi_def_cfa_offset 24
	pushq	%rax
	.cfi_def_cfa_offset 32
	.cfi_offset %rbx, -24
	.cfi_offset %r14, -16
	movq	%rdi, %rbx
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rdi)
	movq	$0, 16(%rdi)
	leaq	(%rdx,%rdx,8), %rax
	leaq	(%rsi,%rax,8), %rdx
.Ltmp30:
	callq	_ZNSt6vectorI10DeviceStatSaIS0_EE19_M_range_initializeIPKS0_EEvT_S6_St20forward_iterator_tag
.Ltmp31:
# %bb.1:
	addq	$8, %rsp
	.cfi_def_cfa_offset 24
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	retq
.LBB2_2:
	.cfi_def_cfa_offset 32
.Ltmp32:
	movq	%rax, %r14
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	.LBB2_4
# %bb.3:
	callq	_ZdlPv
.LBB2_4:                                # %_ZNSt12_Vector_baseI10DeviceStatSaIS0_EED2Ev.exit
	movq	%r14, %rdi
	callq	_Unwind_Resume@PLT
.Lfunc_end2:
	.size	_ZNSt6vectorI10DeviceStatSaIS0_EEC2ESt16initializer_listIS0_ERKS1_, .Lfunc_end2-_ZNSt6vectorI10DeviceStatSaIS0_EEC2ESt16initializer_listIS0_ERKS1_
	.cfi_endproc
	.section	.gcc_except_table._ZNSt6vectorI10DeviceStatSaIS0_EEC2ESt16initializer_listIS0_ERKS1_,"aG",@progbits,_ZNSt6vectorI10DeviceStatSaIS0_EEC2ESt16initializer_listIS0_ERKS1_,comdat
	.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 .Ltmp30-.Lfunc_begin1          # >> Call Site 1 <<
	.uleb128 .Ltmp31-.Ltmp30                #   Call between .Ltmp30 and .Ltmp31
	.uleb128 .Ltmp32-.Lfunc_begin1          #     jumps to .Ltmp32
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp31-.Lfunc_begin1          # >> Call Site 2 <<
	.uleb128 .Lfunc_end2-.Ltmp31            #   Call between .Ltmp31 and .Lfunc_end2
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
.Lcst_end1:
	.p2align	2, 0x0
                                        # -- End function
	.section	.text._ZN10DeviceStatD2Ev,"axG",@progbits,_ZN10DeviceStatD2Ev,comdat
	.weak	_ZN10DeviceStatD2Ev             # -- Begin function _ZN10DeviceStatD2Ev
	.p2align	1, 0x90
	.type	_ZN10DeviceStatD2Ev,@function
_ZN10DeviceStatD2Ev:                    # @_ZN10DeviceStatD2Ev
	.cfi_startproc
# %bb.0:
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset %rbx, -16
	movq	%rdi, %rbx
	movq	32(%rdi), %rdi
	leaq	48(%rbx), %rax
	cmpq	%rax, %rdi
	je	.LBB3_2
# %bb.1:                                # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i
	callq	_ZdlPv
.LBB3_2:                                # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit
	movq	(%rbx), %rdi
	addq	$16, %rbx
	cmpq	%rbx, %rdi
	je	.LBB3_3
# %bb.4:                                # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i1
	popq	%rbx
	.cfi_def_cfa_offset 8
	jmp	_ZdlPv                          # TAILCALL
.LBB3_3:                                # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit3
	.cfi_def_cfa_offset 16
	popq	%rbx
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end3:
	.size	_ZN10DeviceStatD2Ev, .Lfunc_end3-_ZN10DeviceStatD2Ev
	.cfi_endproc
                                        # -- End function
	.text
	.globl	_ZNK14DeviceAnalyzer11print_statsEv # -- Begin function _ZNK14DeviceAnalyzer11print_statsEv
	.p2align	1, 0x90
	.type	_ZNK14DeviceAnalyzer11print_statsEv,@function
_ZNK14DeviceAnalyzer11print_statsEv:    # @_ZNK14DeviceAnalyzer11print_statsEv
.Lfunc_begin2:
	.cfi_startproc
	.cfi_personality 3, __gxx_personality_v0
	.cfi_lsda 3, .Lexception2
# %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	$40, %rsp
	.cfi_def_cfa_offset 96
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movq	(%rdi), %rbx
	movq	8(%rdi), %r15
	cmpq	%r15, %rbx
	je	.LBB4_23
# %bb.1:                                # %.lr.ph
	leaq	24(%rsp), %rbp
	leaq	8(%rsp), %r14
.LBB4_2:                                # =>This Inner Loop Header: Depth=1
	movl	64(%rbx), %esi
	movl	68(%rbx), %edx
	leaq	4(%rsp), %rdi
	callq	hipDeviceGetAttribute
	testl	%eax, %eax
	jne	.LBB4_25
# %bb.3:                                # %_Z5check10hipError_tPKc.exit
                                        #   in Loop: Header=BB4_2 Depth=1
	movq	_ZSt4cout(%rip), %rax
	movq	-24(%rax), %rcx
	movl	_ZSt4cout+24(%rcx), %edx
	movl	$-177, %esi
	andl	%esi, %edx
	orl	$32, %edx
	movl	%edx, _ZSt4cout+24(%rcx)
	movq	-24(%rax), %rax
	movq	$30, _ZSt4cout+16(%rax)
	movq	(%rbx), %r12
	movq	8(%rbx), %r13
	movq	%rbp, 8(%rsp)
	movq	$0, 16(%rsp)
	movb	$0, 24(%rsp)
	leaq	2(%r13), %rsi
.Ltmp33:
	movq	%r14, %rdi
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7reserveEm
.Ltmp34:
# %bb.4:                                #   in Loop: Header=BB4_2 Depth=1
.Ltmp35:
	movq	%r14, %rdi
	movq	%r12, %rsi
	movq	%r13, %rdx
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKcm
.Ltmp36:
# %bb.5:                                #   in Loop: Header=BB4_2 Depth=1
.Ltmp37:
	movl	$.L.str.9, %esi
	movl	$2, %edx
	movq	%r14, %rdi
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKcm
.Ltmp38:
# %bb.6:                                # %_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EERKS8_PKS5_.exit
                                        #   in Loop: Header=BB4_2 Depth=1
	movq	8(%rsp), %rsi
	movq	16(%rsp), %rdx
.Ltmp40:
	movl	$_ZSt4cout, %edi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp41:
# %bb.7:                                # %_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE.exit
                                        #   in Loop: Header=BB4_2 Depth=1
	movl	4(%rsp), %esi
.Ltmp42:
	movq	%rax, %rdi
	callq	_ZNSolsEi
.Ltmp43:
# %bb.8:                                #   in Loop: Header=BB4_2 Depth=1
	movq	%rax, %r12
	movb	$32, 3(%rsp)
	movq	(%rax), %rax
	movq	-24(%rax), %rax
	cmpq	$0, 16(%r12,%rax)
	je	.LBB4_15
# %bb.9:                                #   in Loop: Header=BB4_2 Depth=1
.Ltmp44:
	movl	$1, %edx
	movq	%r12, %rdi
	leaq	3(%rsp), %rsi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp45:
# %bb.10:                               #   in Loop: Header=BB4_2 Depth=1
	movq	%rax, %r12
	jmp	.LBB4_16
.LBB4_15:                               #   in Loop: Header=BB4_2 Depth=1
.Ltmp46:
	movq	%r12, %rdi
	movl	$32, %esi
	callq	_ZNSo3putEc
.Ltmp47:
.LBB4_16:                               #   in Loop: Header=BB4_2 Depth=1
	movq	32(%rbx), %rsi
	movq	40(%rbx), %rdx
.Ltmp48:
	movq	%r12, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp49:
# %bb.17:                               # %_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE.exit11
                                        #   in Loop: Header=BB4_2 Depth=1
	movq	%rax, %r12
	movq	(%rax), %rax
	movq	-24(%rax), %rdi
	addq	%r12, %rdi
.Ltmp50:
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
.Ltmp51:
# %bb.18:                               # %.noexc16
                                        #   in Loop: Header=BB4_2 Depth=1
.Ltmp52:
	movsbl	%al, %esi
	movq	%r12, %rdi
	callq	_ZNSo3putEc
.Ltmp53:
# %bb.19:                               # %.noexc17
                                        #   in Loop: Header=BB4_2 Depth=1
.Ltmp54:
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
.Ltmp55:
# %bb.20:                               # %_ZNSolsEPFRSoS_E.exit
                                        #   in Loop: Header=BB4_2 Depth=1
	movq	8(%rsp), %rdi
	cmpq	%rbp, %rdi
	je	.LBB4_22
# %bb.21:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i
                                        #   in Loop: Header=BB4_2 Depth=1
	callq	_ZdlPv
.LBB4_22:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit
                                        #   in Loop: Header=BB4_2 Depth=1
	addq	$72, %rbx
	cmpq	%r15, %rbx
	jne	.LBB4_2
.LBB4_23:                               # %._crit_edge
	addq	$40, %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
.LBB4_25:
	.cfi_def_cfa_offset 96
	movl	%eax, %r12d
	movl	$_ZSt4cerr, %edi
	movl	$.L.str.14, %esi
	callq	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc
	movl	$.L.str.8, %esi
	movq	%rax, %rdi
	callq	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc
	movl	$.L.str.9, %esi
	movq	%rax, %rdi
	callq	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc
	movq	%rax, %rbx
	movl	%r12d, %edi
	callq	hipGetErrorString
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc
	movq	%rax, %rdi
	callq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_
	movl	$1, %edi
	callq	exit
.LBB4_11:
.Ltmp39:
	jmp	.LBB4_12
.LBB4_24:
.Ltmp56:
.LBB4_12:
	movq	%rax, %rbx
	movq	8(%rsp), %rdi
	cmpq	%rbp, %rdi
	je	.LBB4_14
# %bb.13:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i.i.i
	callq	_ZdlPv
.LBB4_14:                               # %common.resume
	movq	%rbx, %rdi
	callq	_Unwind_Resume@PLT
.Lfunc_end4:
	.size	_ZNK14DeviceAnalyzer11print_statsEv, .Lfunc_end4-_ZNK14DeviceAnalyzer11print_statsEv
	.cfi_endproc
	.section	.gcc_except_table,"a",@progbits
	.p2align	2, 0x0
GCC_except_table4:
.Lexception2:
	.byte	255                             # @LPStart Encoding = omit
	.byte	255                             # @TType Encoding = omit
	.byte	1                               # Call site Encoding = uleb128
	.uleb128 .Lcst_end2-.Lcst_begin2
.Lcst_begin2:
	.uleb128 .Lfunc_begin2-.Lfunc_begin2    # >> Call Site 1 <<
	.uleb128 .Ltmp33-.Lfunc_begin2          #   Call between .Lfunc_begin2 and .Ltmp33
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp33-.Lfunc_begin2          # >> Call Site 2 <<
	.uleb128 .Ltmp38-.Ltmp33                #   Call between .Ltmp33 and .Ltmp38
	.uleb128 .Ltmp39-.Lfunc_begin2          #     jumps to .Ltmp39
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp40-.Lfunc_begin2          # >> Call Site 3 <<
	.uleb128 .Ltmp55-.Ltmp40                #   Call between .Ltmp40 and .Ltmp55
	.uleb128 .Ltmp56-.Lfunc_begin2          #     jumps to .Ltmp56
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp55-.Lfunc_begin2          # >> Call Site 4 <<
	.uleb128 .Lfunc_end4-.Ltmp55            #   Call between .Ltmp55 and .Lfunc_end4
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
.Lcst_end2:
	.p2align	2, 0x0
                                        # -- End function
	.text
	.globl	main                            # -- Begin function main
	.type	main,@function
main:                                   # @main
.Lfunc_begin3:
	.cfi_startproc
	.cfi_personality 3, __gxx_personality_v0
	.cfi_lsda 3, .Lexception3
# %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%r15
	.cfi_def_cfa_offset 24
	pushq	%r14
	.cfi_def_cfa_offset 32
	pushq	%r12
	.cfi_def_cfa_offset 40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	subq	$48, %rsp
	.cfi_def_cfa_offset 96
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	cmpl	$2, %edi
	jg	.LBB5_27
# %bb.1:
	xorl	%ebx, %ebx
	cmpl	$2, %edi
	jne	.LBB5_19
# %bb.2:
	movq	8(%rsi), %rbx
	movl	$.L.str.10, %esi
	movq	%rbx, %rdi
	callq	strcmp
	testl	%eax, %eax
	je	.LBB5_27
# %bb.3:
.Ltmp57:
	leaq	8(%rsp), %rdi
	leaq	7(%rsp), %rdx
	movq	%rbx, %rsi
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_
.Ltmp58:
# %bb.4:
	movq	8(%rsp), %r15
	callq	__errno_location
	movq	%rax, %r14
	movl	(%rax), %ebp
	movl	$0, (%rax)
	leaq	40(%rsp), %r12
	movq	%r15, %rdi
	movq	%r12, %rsi
	movl	$10, %edx
	callq	__isoc23_strtol
	cmpq	%r15, (%r12)
	je	.LBB5_5
# %bb.11:
	movq	%rax, %rbx
	movslq	%ebx, %rax
	cmpq	%rbx, %rax
	jne	.LBB5_13
# %bb.12:
	movl	(%r14), %eax
	cmpl	$34, %eax
	je	.LBB5_13
# %bb.15:
	testl	%eax, %eax
	jne	.LBB5_17
# %bb.16:
	movl	%ebp, (%r14)
.LBB5_17:
	leaq	24(%rsp), %rax
	movq	-16(%rax), %rdi
	cmpq	%rax, %rdi
	je	.LBB5_19
# %bb.18:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i
	callq	_ZdlPv
.LBB5_19:
	leaq	8(%rsp), %rdi
	movl	%ebx, %esi
	callq	_ZN14DeviceAnalyzerC2Ei
.Ltmp60:
	movl	$_ZSt4cout, %edi
	movl	$.L.str.12, %esi
	movl	$7, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp61:
# %bb.20:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit
.Ltmp62:
	movl	$_ZSt4cout, %edi
	movl	%ebx, %esi
	callq	_ZNSolsEi
.Ltmp63:
# %bb.21:
.Ltmp64:
	movl	$.L.str.13, %esi
	movl	$8, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp65:
# %bb.22:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit19
.Ltmp66:
	leaq	8(%rsp), %rdi
	callq	_ZNK14DeviceAnalyzer11print_statsEv
.Ltmp67:
# %bb.23:
	leaq	8(%rsp), %rdi
	callq	_ZNSt6vectorI10DeviceStatSaIS0_EED2Ev
	xorl	%eax, %eax
	addq	$48, %rsp
	.cfi_def_cfa_offset 48
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%r12
	.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
.LBB5_27:
	.cfi_def_cfa_offset 96
	movl	$_ZSt4cerr, %edi
	movl	$.L.str.11, %esi
	callq	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc
	movl	$2, %edi
	callq	exit
.LBB5_5:
.Ltmp71:
	movl	$.L.str.15, %edi
	callq	_ZSt24__throw_invalid_argumentPKc
.Ltmp72:
# %bb.6:
.LBB5_13:                               # %.critedge.i.i
.Ltmp69:
	movl	$.L.str.15, %edi
	callq	_ZSt20__throw_out_of_rangePKc
.Ltmp70:
# %bb.14:
.LBB5_24:
.Ltmp59:
	movq	%rax, %rbx
	jmp	.LBB5_26
.LBB5_7:
.Ltmp73:
	movq	%rax, %rbx
	cmpl	$0, (%r14)
	jne	.LBB5_9
# %bb.8:
	movl	%ebp, (%r14)
.LBB5_9:                                # %_ZZN9__gnu_cxx6__stoaIlicJiEEET0_PFT_PKT1_PPS3_DpT2_EPKcS5_PmS9_EN11_Save_errnoD2Ev.exit.i.i
	leaq	24(%rsp), %rax
	movq	-16(%rax), %rdi
	cmpq	%rax, %rdi
	je	.LBB5_26
# %bb.10:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i16
	callq	_ZdlPv
	jmp	.LBB5_26
.LBB5_25:
.Ltmp68:
	movq	%rax, %rbx
	leaq	8(%rsp), %rdi
	callq	_ZNSt6vectorI10DeviceStatSaIS0_EED2Ev
.LBB5_26:
	movq	%rbx, %rdi
	callq	_Unwind_Resume@PLT
.Lfunc_end5:
	.size	main, .Lfunc_end5-main
	.cfi_endproc
	.section	.gcc_except_table,"a",@progbits
	.p2align	2, 0x0
GCC_except_table5:
.Lexception3:
	.byte	255                             # @LPStart Encoding = omit
	.byte	255                             # @TType Encoding = omit
	.byte	1                               # Call site Encoding = uleb128
	.uleb128 .Lcst_end3-.Lcst_begin3
.Lcst_begin3:
	.uleb128 .Ltmp57-.Lfunc_begin3          # >> Call Site 1 <<
	.uleb128 .Ltmp58-.Ltmp57                #   Call between .Ltmp57 and .Ltmp58
	.uleb128 .Ltmp59-.Lfunc_begin3          #     jumps to .Ltmp59
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp58-.Lfunc_begin3          # >> Call Site 2 <<
	.uleb128 .Ltmp60-.Ltmp58                #   Call between .Ltmp58 and .Ltmp60
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp60-.Lfunc_begin3          # >> Call Site 3 <<
	.uleb128 .Ltmp67-.Ltmp60                #   Call between .Ltmp60 and .Ltmp67
	.uleb128 .Ltmp68-.Lfunc_begin3          #     jumps to .Ltmp68
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp67-.Lfunc_begin3          # >> Call Site 4 <<
	.uleb128 .Ltmp71-.Ltmp67                #   Call between .Ltmp67 and .Ltmp71
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp71-.Lfunc_begin3          # >> Call Site 5 <<
	.uleb128 .Ltmp70-.Ltmp71                #   Call between .Ltmp71 and .Ltmp70
	.uleb128 .Ltmp73-.Lfunc_begin3          #     jumps to .Ltmp73
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp70-.Lfunc_begin3          # >> Call Site 6 <<
	.uleb128 .Lfunc_end5-.Ltmp70            #   Call between .Ltmp70 and .Lfunc_end5
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
.Lcst_end3:
	.p2align	2, 0x0
                                        # -- End function
	.section	.text.__clang_call_terminate,"axG",@progbits,__clang_call_terminate,comdat
	.hidden	__clang_call_terminate          # -- Begin function __clang_call_terminate
	.weak	__clang_call_terminate
	.type	__clang_call_terminate,@function
__clang_call_terminate:                 # @__clang_call_terminate
	.cfi_startproc
# %bb.0:
	pushq	%rax
	.cfi_def_cfa_offset 16
	callq	__cxa_begin_catch
	callq	_ZSt9terminatev
.Lfunc_end6:
	.size	__clang_call_terminate, .Lfunc_end6-__clang_call_terminate
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt6vectorI10DeviceStatSaIS0_EED2Ev,"axG",@progbits,_ZNSt6vectorI10DeviceStatSaIS0_EED2Ev,comdat
	.weak	_ZNSt6vectorI10DeviceStatSaIS0_EED2Ev # -- Begin function _ZNSt6vectorI10DeviceStatSaIS0_EED2Ev
	.p2align	1, 0x90
	.type	_ZNSt6vectorI10DeviceStatSaIS0_EED2Ev,@function
_ZNSt6vectorI10DeviceStatSaIS0_EED2Ev:  # @_ZNSt6vectorI10DeviceStatSaIS0_EED2Ev
.Lfunc_begin4:
	.cfi_startproc
	.cfi_personality 3, __gxx_personality_v0
	.cfi_lsda 3, .Lexception4
# %bb.0:
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset %rbx, -16
	movq	%rdi, %rbx
	movq	(%rdi), %rdi
	movq	8(%rbx), %rsi
.Ltmp74:
	callq	_ZNSt12_Destroy_auxILb0EE9__destroyIP10DeviceStatEEvT_S4_
.Ltmp75:
# %bb.1:                                # %_ZSt8_DestroyIP10DeviceStatS0_EvT_S2_RSaIT0_E.exit
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	.LBB7_2
# %bb.4:
	popq	%rbx
	.cfi_def_cfa_offset 8
	jmp	_ZdlPv                          # TAILCALL
.LBB7_2:                                # %_ZNSt12_Vector_baseI10DeviceStatSaIS0_EED2Ev.exit
	.cfi_def_cfa_offset 16
	popq	%rbx
	.cfi_def_cfa_offset 8
	retq
.LBB7_3:
	.cfi_def_cfa_offset 16
.Ltmp76:
	movq	%rax, %rdi
	callq	__clang_call_terminate
.Lfunc_end7:
	.size	_ZNSt6vectorI10DeviceStatSaIS0_EED2Ev, .Lfunc_end7-_ZNSt6vectorI10DeviceStatSaIS0_EED2Ev
	.cfi_endproc
	.section	.gcc_except_table._ZNSt6vectorI10DeviceStatSaIS0_EED2Ev,"aG",@progbits,_ZNSt6vectorI10DeviceStatSaIS0_EED2Ev,comdat
	.p2align	2, 0x0
GCC_except_table7:
.Lexception4:
	.byte	255                             # @LPStart Encoding = omit
	.byte	3                               # @TType Encoding = udata4
	.uleb128 .Lttbase0-.Lttbaseref0
.Lttbaseref0:
	.byte	1                               # Call site Encoding = uleb128
	.uleb128 .Lcst_end4-.Lcst_begin4
.Lcst_begin4:
	.uleb128 .Ltmp74-.Lfunc_begin4          # >> Call Site 1 <<
	.uleb128 .Ltmp75-.Ltmp74                #   Call between .Ltmp74 and .Ltmp75
	.uleb128 .Ltmp76-.Lfunc_begin4          #     jumps to .Ltmp76
	.byte	1                               #   On action: 1
.Lcst_end4:
	.byte	1                               # >> Action Record 1 <<
                                        #   Catch TypeInfo 1
	.byte	0                               #   No further actions
	.p2align	2, 0x0
                                        # >> Catch TypeInfos <<
	.long	0                               # TypeInfo 1
.Lttbase0:
	.p2align	2, 0x0
                                        # -- End function
	.section	.text._ZNSt12_Destroy_auxILb0EE9__destroyIP10DeviceStatEEvT_S4_,"axG",@progbits,_ZNSt12_Destroy_auxILb0EE9__destroyIP10DeviceStatEEvT_S4_,comdat
	.weak	_ZNSt12_Destroy_auxILb0EE9__destroyIP10DeviceStatEEvT_S4_ # -- Begin function _ZNSt12_Destroy_auxILb0EE9__destroyIP10DeviceStatEEvT_S4_
	.p2align	1, 0x90
	.type	_ZNSt12_Destroy_auxILb0EE9__destroyIP10DeviceStatEEvT_S4_,@function
_ZNSt12_Destroy_auxILb0EE9__destroyIP10DeviceStatEEvT_S4_: # @_ZNSt12_Destroy_auxILb0EE9__destroyIP10DeviceStatEEvT_S4_
	.cfi_startproc
# %bb.0:
	cmpq	%rsi, %rdi
	je	.LBB8_8
# %bb.1:                                # %.lr.ph.preheader
	pushq	%r14
	.cfi_def_cfa_offset 16
	pushq	%rbx
	.cfi_def_cfa_offset 24
	pushq	%rax
	.cfi_def_cfa_offset 32
	.cfi_offset %rbx, -24
	.cfi_offset %r14, -16
	movq	%rsi, %rbx
	movq	%rdi, %r14
.LBB8_2:                                # %.lr.ph
                                        # =>This Inner Loop Header: Depth=1
	movq	32(%r14), %rdi
	leaq	48(%r14), %rax
	cmpq	%rdi, %rax
	je	.LBB8_4
# %bb.3:                                # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i.i.i
                                        #   in Loop: Header=BB8_2 Depth=1
	callq	_ZdlPv
.LBB8_4:                                # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit.i.i
                                        #   in Loop: Header=BB8_2 Depth=1
	movq	(%r14), %rdi
	leaq	16(%r14), %rax
	cmpq	%rdi, %rax
	je	.LBB8_6
# %bb.5:                                # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i1.i.i
                                        #   in Loop: Header=BB8_2 Depth=1
	callq	_ZdlPv
.LBB8_6:                                # %_ZSt8_DestroyI10DeviceStatEvPT_.exit
                                        #   in Loop: Header=BB8_2 Depth=1
	addq	$72, %r14
	cmpq	%rbx, %r14
	jne	.LBB8_2
# %bb.7:
	addq	$8, %rsp
	.cfi_def_cfa_offset 24
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	.cfi_restore %rbx
	.cfi_restore %r14
.LBB8_8:                                # %._crit_edge
	retq
.Lfunc_end8:
	.size	_ZNSt12_Destroy_auxILb0EE9__destroyIP10DeviceStatEEvT_S4_, .Lfunc_end8-_ZNSt12_Destroy_auxILb0EE9__destroyIP10DeviceStatEEvT_S4_
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag,"axG",@progbits,_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag,comdat
	.weak	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag # -- Begin function _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag
	.p2align	1, 0x90
	.type	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag,@function
_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag: # @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r12
	.cfi_def_cfa_offset 32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	pushq	%rax
	.cfi_def_cfa_offset 48
	.cfi_offset %rbx, -40
	.cfi_offset %r12, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	subq	%rsi, %r14
	movq	%r14, (%rsp)
	cmpq	$15, %r14
	jbe	.LBB9_1
# %bb.2:
	movq	%rsp, %r12
	movq	%rbx, %rdi
	movq	%r12, %rsi
	xorl	%edx, %edx
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_createERmm
	movq	%rax, (%rbx)
	movq	(%r12), %rcx
	movq	%rcx, 16(%rbx)
	jmp	.LBB9_3
.LBB9_1:                                # %._crit_edge
	movq	(%rbx), %rax
.LBB9_3:
	testq	%r14, %r14
	je	.LBB9_7
# %bb.4:
	cmpq	$1, %r14
	jne	.LBB9_6
# %bb.5:
	movb	(%r15), %cl
	movb	%cl, (%rax)
	jmp	.LBB9_7
.LBB9_6:
	movq	%rax, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	memcpy@PLT
.LBB9_7:                                # %_ZZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tagEN6_GuardD2Ev.exit
	movq	(%rsp), %rax
	movq	%rax, 8(%rbx)
	movq	(%rbx), %rcx
	movb	$0, (%rcx,%rax)
	addq	$8, %rsp
	.cfi_def_cfa_offset 40
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end9:
	.size	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag, .Lfunc_end9-_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt6vectorI10DeviceStatSaIS0_EE19_M_range_initializeIPKS0_EEvT_S6_St20forward_iterator_tag,"axG",@progbits,_ZNSt6vectorI10DeviceStatSaIS0_EE19_M_range_initializeIPKS0_EEvT_S6_St20forward_iterator_tag,comdat
	.weak	_ZNSt6vectorI10DeviceStatSaIS0_EE19_M_range_initializeIPKS0_EEvT_S6_St20forward_iterator_tag # -- Begin function _ZNSt6vectorI10DeviceStatSaIS0_EE19_M_range_initializeIPKS0_EEvT_S6_St20forward_iterator_tag
	.p2align	1, 0x90
	.type	_ZNSt6vectorI10DeviceStatSaIS0_EE19_M_range_initializeIPKS0_EEvT_S6_St20forward_iterator_tag,@function
_ZNSt6vectorI10DeviceStatSaIS0_EE19_M_range_initializeIPKS0_EEvT_S6_St20forward_iterator_tag: # @_ZNSt6vectorI10DeviceStatSaIS0_EE19_M_range_initializeIPKS0_EEvT_S6_St20forward_iterator_tag
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r12
	.cfi_def_cfa_offset 32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	pushq	%rax
	.cfi_def_cfa_offset 48
	.cfi_offset %rbx, -40
	.cfi_offset %r12, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	movq	%rdx, %rax
	subq	%rsi, %rax
	sarq	$3, %rax
	movabsq	$-8198552921648689607, %r12     # imm = 0x8E38E38E38E38E39
	imulq	%rax, %r12
	movabsq	$128102389400760776, %rax       # imm = 0x1C71C71C71C71C8
	cmpq	%rax, %r12
	jae	.LBB10_5
# %bb.1:                                # %_ZNSt6vectorI10DeviceStatSaIS0_EE17_S_check_init_lenEmRKS1_.exit
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	cmpq	%rsi, %rdx
	je	.LBB10_2
# %bb.3:
	movq	%rbx, %rdi
	movq	%r12, %rsi
	xorl	%edx, %edx
	callq	_ZNSt15__new_allocatorI10DeviceStatE8allocateEmPKv
	movq	%rax, %rdx
	jmp	.LBB10_4
.LBB10_2:
	xorl	%edx, %edx
.LBB10_4:                               # %_ZNSt12_Vector_baseI10DeviceStatSaIS0_EE11_M_allocateEm.exit
	movq	%rdx, (%rbx)
	leaq	(%r12,%r12,8), %rax
	leaq	(%rdx,%rax,8), %rax
	movq	%rax, 16(%rbx)
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_ZSt16__do_uninit_copyIPK10DeviceStatPS0_ET0_T_S5_S4_
	movq	%rax, 8(%rbx)
	addq	$8, %rsp
	.cfi_def_cfa_offset 40
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.LBB10_5:
	.cfi_def_cfa_offset 48
	movl	$.L.str.17, %edi
	callq	_ZSt20__throw_length_errorPKc
.Lfunc_end10:
	.size	_ZNSt6vectorI10DeviceStatSaIS0_EE19_M_range_initializeIPKS0_EEvT_S6_St20forward_iterator_tag, .Lfunc_end10-_ZNSt6vectorI10DeviceStatSaIS0_EE19_M_range_initializeIPKS0_EEvT_S6_St20forward_iterator_tag
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt15__new_allocatorI10DeviceStatE8allocateEmPKv,"axG",@progbits,_ZNSt15__new_allocatorI10DeviceStatE8allocateEmPKv,comdat
	.weak	_ZNSt15__new_allocatorI10DeviceStatE8allocateEmPKv # -- Begin function _ZNSt15__new_allocatorI10DeviceStatE8allocateEmPKv
	.p2align	1, 0x90
	.type	_ZNSt15__new_allocatorI10DeviceStatE8allocateEmPKv,@function
_ZNSt15__new_allocatorI10DeviceStatE8allocateEmPKv: # @_ZNSt15__new_allocatorI10DeviceStatE8allocateEmPKv
	.cfi_startproc
# %bb.0:
	pushq	%rax
	.cfi_def_cfa_offset 16
	movabsq	$128102389400760776, %rax       # imm = 0x1C71C71C71C71C8
	cmpq	%rax, %rsi
	jae	.LBB11_1
# %bb.3:
	shlq	$3, %rsi
	leaq	(%rsi,%rsi,8), %rdi
	popq	%rax
	.cfi_def_cfa_offset 8
	jmp	_Znwm                           # TAILCALL
.LBB11_1:
	.cfi_def_cfa_offset 16
	movabsq	$256204778801521551, %rax       # imm = 0x38E38E38E38E38F
	cmpq	%rax, %rsi
	jb	.LBB11_2
# %bb.4:
	callq	_ZSt28__throw_bad_array_new_lengthv
.LBB11_2:
	callq	_ZSt17__throw_bad_allocv
.Lfunc_end11:
	.size	_ZNSt15__new_allocatorI10DeviceStatE8allocateEmPKv, .Lfunc_end11-_ZNSt15__new_allocatorI10DeviceStatE8allocateEmPKv
	.cfi_endproc
                                        # -- End function
	.section	.text._ZSt16__do_uninit_copyIPK10DeviceStatPS0_ET0_T_S5_S4_,"axG",@progbits,_ZSt16__do_uninit_copyIPK10DeviceStatPS0_ET0_T_S5_S4_,comdat
	.weak	_ZSt16__do_uninit_copyIPK10DeviceStatPS0_ET0_T_S5_S4_ # -- Begin function _ZSt16__do_uninit_copyIPK10DeviceStatPS0_ET0_T_S5_S4_
	.type	_ZSt16__do_uninit_copyIPK10DeviceStatPS0_ET0_T_S5_S4_,@function
_ZSt16__do_uninit_copyIPK10DeviceStatPS0_ET0_T_S5_S4_: # @_ZSt16__do_uninit_copyIPK10DeviceStatPS0_ET0_T_S5_S4_
.Lfunc_begin5:
	.cfi_startproc
	.cfi_personality 3, __gxx_personality_v0
	.cfi_lsda 3, .Lexception5
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r13
	.cfi_def_cfa_offset 32
	pushq	%r12
	.cfi_def_cfa_offset 40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	movq	%rdx, %rbx
	cmpq	%rsi, %rdi
	je	.LBB12_1
# %bb.2:                                # %.lr.ph.preheader
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	%rbx, %r14
.LBB12_3:                               # %.lr.ph
                                        # =>This Inner Loop Header: Depth=1
	leaq	16(%r14), %r13
	movq	%r13, (%r14)
	movq	(%r12), %rsi
	movq	8(%r12), %rdx
	addq	%rsi, %rdx
.Ltmp77:
	movq	%r14, %rdi
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag
.Ltmp78:
# %bb.4:                                # %.noexc
                                        #   in Loop: Header=BB12_3 Depth=1
	leaq	32(%r14), %rdi
	leaq	48(%r14), %rax
	movq	%rax, 32(%r14)
	movq	32(%r12), %rsi
	movq	40(%r12), %rdx
	addq	%rsi, %rdx
.Ltmp80:
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag
.Ltmp81:
# %bb.5:                                #   in Loop: Header=BB12_3 Depth=1
	movq	64(%r12), %rax
	movq	%rax, 64(%r14)
	addq	$72, %r14
	addq	$72, %r12
	cmpq	%r15, %r12
	jne	.LBB12_3
	jmp	.LBB12_6
.LBB12_1:
	movq	%rbx, %r14
.LBB12_6:                               # %._crit_edge
	movq	%r14, %rax
	popq	%rbx
	.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
	retq
.LBB12_9:
	.cfi_def_cfa_offset 48
.Ltmp79:
	movq	%rax, %r15
	jmp	.LBB12_10
.LBB12_7:
.Ltmp82:
	movq	%rax, %r15
	movq	(%r14), %rdi
	cmpq	%rdi, %r13
	je	.LBB12_10
# %bb.8:                                # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i.i.i
	callq	_ZdlPv
.LBB12_10:                              # %.body
	movq	%r15, %rdi
	callq	__cxa_begin_catch
.Ltmp83:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_ZNSt12_Destroy_auxILb0EE9__destroyIP10DeviceStatEEvT_S4_
.Ltmp84:
# %bb.11:                               # %_ZSt8_DestroyIP10DeviceStatEvT_S2_.exit
.Ltmp85:
	callq	__cxa_rethrow
.Ltmp86:
# %bb.15:
.LBB12_12:
.Ltmp87:
	movq	%rax, %rbx
.Ltmp88:
	callq	__cxa_end_catch
.Ltmp89:
# %bb.13:
	movq	%rbx, %rdi
	callq	_Unwind_Resume@PLT
.LBB12_14:
.Ltmp90:
	movq	%rax, %rdi
	callq	__clang_call_terminate
.Lfunc_end12:
	.size	_ZSt16__do_uninit_copyIPK10DeviceStatPS0_ET0_T_S5_S4_, .Lfunc_end12-_ZSt16__do_uninit_copyIPK10DeviceStatPS0_ET0_T_S5_S4_
	.cfi_endproc
	.section	.gcc_except_table._ZSt16__do_uninit_copyIPK10DeviceStatPS0_ET0_T_S5_S4_,"aG",@progbits,_ZSt16__do_uninit_copyIPK10DeviceStatPS0_ET0_T_S5_S4_,comdat
	.p2align	2, 0x0
GCC_except_table12:
.Lexception5:
	.byte	255                             # @LPStart Encoding = omit
	.byte	3                               # @TType Encoding = udata4
	.uleb128 .Lttbase1-.Lttbaseref1
.Lttbaseref1:
	.byte	1                               # Call site Encoding = uleb128
	.uleb128 .Lcst_end5-.Lcst_begin5
.Lcst_begin5:
	.uleb128 .Ltmp77-.Lfunc_begin5          # >> Call Site 1 <<
	.uleb128 .Ltmp78-.Ltmp77                #   Call between .Ltmp77 and .Ltmp78
	.uleb128 .Ltmp79-.Lfunc_begin5          #     jumps to .Ltmp79
	.byte	1                               #   On action: 1
	.uleb128 .Ltmp80-.Lfunc_begin5          # >> Call Site 2 <<
	.uleb128 .Ltmp81-.Ltmp80                #   Call between .Ltmp80 and .Ltmp81
	.uleb128 .Ltmp82-.Lfunc_begin5          #     jumps to .Ltmp82
	.byte	1                               #   On action: 1
	.uleb128 .Ltmp81-.Lfunc_begin5          # >> Call Site 3 <<
	.uleb128 .Ltmp83-.Ltmp81                #   Call between .Ltmp81 and .Ltmp83
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp83-.Lfunc_begin5          # >> Call Site 4 <<
	.uleb128 .Ltmp86-.Ltmp83                #   Call between .Ltmp83 and .Ltmp86
	.uleb128 .Ltmp87-.Lfunc_begin5          #     jumps to .Ltmp87
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp88-.Lfunc_begin5          # >> Call Site 5 <<
	.uleb128 .Ltmp89-.Ltmp88                #   Call between .Ltmp88 and .Ltmp89
	.uleb128 .Ltmp90-.Lfunc_begin5          #     jumps to .Ltmp90
	.byte	1                               #   On action: 1
	.uleb128 .Ltmp89-.Lfunc_begin5          # >> Call Site 6 <<
	.uleb128 .Lfunc_end12-.Ltmp89           #   Call between .Ltmp89 and .Lfunc_end12
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
.Lcst_end5:
	.byte	1                               # >> Action Record 1 <<
                                        #   Catch TypeInfo 1
	.byte	0                               #   No further actions
	.p2align	2, 0x0
                                        # >> Catch TypeInfos <<
	.long	0                               # TypeInfo 1
.Lttbase1:
	.p2align	2, 0x0
                                        # -- End function
	.section	.text._ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag,"axG",@progbits,_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag,comdat
	.weak	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag # -- Begin function _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag
	.p2align	1, 0x90
	.type	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag,@function
_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag: # @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r12
	.cfi_def_cfa_offset 32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	pushq	%rax
	.cfi_def_cfa_offset 48
	.cfi_offset %rbx, -40
	.cfi_offset %r12, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	subq	%rsi, %r14
	movq	%r14, (%rsp)
	cmpq	$15, %r14
	jbe	.LBB13_1
# %bb.2:
	movq	%rsp, %r12
	movq	%rbx, %rdi
	movq	%r12, %rsi
	xorl	%edx, %edx
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_createERmm
	movq	%rax, (%rbx)
	movq	(%r12), %rcx
	movq	%rcx, 16(%rbx)
	jmp	.LBB13_3
.LBB13_1:                               # %._crit_edge
	movq	(%rbx), %rax
.LBB13_3:
	testq	%r14, %r14
	je	.LBB13_7
# %bb.4:
	cmpq	$1, %r14
	jne	.LBB13_6
# %bb.5:
	movb	(%r15), %cl
	movb	%cl, (%rax)
	jmp	.LBB13_7
.LBB13_6:
	movq	%rax, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	memcpy@PLT
.LBB13_7:                               # %_ZZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tagEN6_GuardD2Ev.exit
	movq	(%rsp), %rax
	movq	%rax, 8(%rbx)
	movq	(%rbx), %rcx
	movb	$0, (%rcx,%rax)
	addq	$8, %rsp
	.cfi_def_cfa_offset 40
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end13:
	.size	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag, .Lfunc_end13-_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag
	.cfi_endproc
                                        # -- End function
	.type	.L.str,@object                  # @.str
	.section	.rodata.str1.1,"aMS",@progbits,1
.L.str:
	.asciz	"compute capability"
	.size	.L.str, 19

	.type	.L.str.1,@object                # @.str.1
.L.str.1:
	.zero	1
	.size	.L.str.1, 1

	.type	.L.str.2,@object                # @.str.2
.L.str.2:
	.asciz	"global memory bus width"
	.size	.L.str.2, 24

	.type	.L.str.3,@object                # @.str.3
.L.str.3:
	.asciz	"bits"
	.size	.L.str.3, 5

	.type	.L.str.4,@object                # @.str.4
.L.str.4:
	.asciz	"streaming multiprocessors"
	.size	.L.str.4, 26

	.type	.L.str.5,@object                # @.str.5
.L.str.5:
	.asciz	"maximum threads per SM"
	.size	.L.str.5, 23

	.type	.L.str.6,@object                # @.str.6
.L.str.6:
	.asciz	"L2 cache size"
	.size	.L.str.6, 14

	.type	.L.str.7,@object                # @.str.7
.L.str.7:
	.asciz	"bytes"
	.size	.L.str.7, 6

	.type	.L.str.8,@object                # @.str.8
.L.str.8:
	.asciz	"hipDeviceGetAttribute(&attr_value, stat.attr_enum, stat.device)"
	.size	.L.str.8, 64

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

	.type	.L.str.10,@object               # @.str.10
.L.str.10:
	.asciz	"-h"
	.size	.L.str.10, 3

	.type	.L.str.11,@object               # @.str.11
.L.str.11:
	.asciz	"usage: ./analyze [-h] [device_num]\n"
	.size	.L.str.11, 36

	.type	.L.str.12,@object               # @.str.12
.L.str.12:
	.asciz	"Device "
	.size	.L.str.12, 8

	.type	.L.str.13,@object               # @.str.13
.L.str.13:
	.asciz	" stats:\n"
	.size	.L.str.13, 9

	.type	.L.str.14,@object               # @.str.14
.L.str.14:
	.asciz	"CUDA error: "
	.size	.L.str.14, 13

	.type	.L.str.15,@object               # @.str.15
.L.str.15:
	.asciz	"stoi"
	.size	.L.str.15, 5

	.type	.L.str.16,@object               # @.str.16
.L.str.16:
	.asciz	"basic_string: construction from null is not valid"
	.size	.L.str.16, 50

	.type	.L.str.17,@object               # @.str.17
.L.str.17:
	.asciz	"cannot create std::vector larger than max_size()"
	.size	.L.str.17, 49

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

	.globl	_ZN14DeviceAnalyzerC1Ei
	.type	_ZN14DeviceAnalyzerC1Ei,@function
.set _ZN14DeviceAnalyzerC1Ei, _ZN14DeviceAnalyzerC2Ei
	.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
