#include "model.cuh"
#include <vector>

int main(int argc, char* argv[])
{
	try
	{
		Model nn (losses::MSE);
		nn += new Dense(10,300);
		nn += new Dense(300, 5);

		Matrix m(10);
		std::cout << nn.feed(m);

		std::vector<Matrix> train_data;
		std::vector<Matrix> ans;
		// generate some training data
		for(int i = 0; i < 10; ++i)
		{
			Matrix m(10);
			Matrix a(5, 1.0f);
			train_data.push_back(m);
			ans.push_back(a);
		}
		for (int i = 0; i < 20; ++i)
		std::cout << nn.train_batch(train_data.begin(), ans.begin(), 10, 0.01f) << "\n";
	}
	catch (char const* s)
	{
		std::cout << s << "\n";
	}
}
	.file	"tmpxft_0022133e_00000000-6_main.cudafe1.cpp"
	.text
#APP
	.globl _ZSt21ios_base_library_initv

#NO_APP
	.type	_ZL26__cudaUnregisterBinaryUtilv, @function
_ZL26__cudaUnregisterBinaryUtilv:
.LFB4235:
	.cfi_startproc
	endbr64
	movq	_ZL20__cudaFatCubinHandle(%rip), %rdi
	jmp	__cudaUnregisterFatBinary@PLT
	.cfi_endproc
.LFE4235:
	.size	_ZL26__cudaUnregisterBinaryUtilv, .-_ZL26__cudaUnregisterBinaryUtilv
	.section	.text.startup,"ax",@progbits
	.type	_ZL24__sti____cudaRegisterAllv, @function
_ZL24__sti____cudaRegisterAllv:
.LFB4258:
	.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
.LFE4258:
	.size	_ZL24__sti____cudaRegisterAllv, .-_ZL24__sti____cudaRegisterAllv
	.section	.init_array,"aw"
	.align 8
	.quad	_ZL24__sti____cudaRegisterAllv
	.section	.text._ZNSt7__cxx1110_List_baseIP5LayerSaIS2_EE8_M_clearEv,"axG",@progbits,_ZNSt7__cxx1110_List_baseIP5LayerSaIS2_EE8_M_clearEv,comdat
	.align 2
	.weak	_ZNSt7__cxx1110_List_baseIP5LayerSaIS2_EE8_M_clearEv
	.type	_ZNSt7__cxx1110_List_baseIP5LayerSaIS2_EE8_M_clearEv, @function
_ZNSt7__cxx1110_List_baseIP5LayerSaIS2_EE8_M_clearEv:
.LFB4723:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	movq	%rdi, %rbx
	pushq	%rdx
	.cfi_def_cfa_offset 32
	movq	(%rdi), %rdi
.L5:
	cmpq	%rdi, %rbx
	je	.L9
	movq	(%rdi), %rbp
	movl	$24, %esi
	call	_ZdlPvm@PLT
	movq	%rbp, %rdi
	jmp	.L5
.L9:
	popq	%rax
	.cfi_def_cfa_offset 24
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4723:
	.size	_ZNSt7__cxx1110_List_baseIP5LayerSaIS2_EE8_M_clearEv, .-_ZNSt7__cxx1110_List_baseIP5LayerSaIS2_EE8_M_clearEv
	.section	.text._ZNSt12_Destroy_auxILb0EE9__destroyIP6MatrixEEvT_S4_,"axG",@progbits,_ZNSt12_Destroy_auxILb0EE9__destroyIP6MatrixEEvT_S4_,comdat
	.weak	_ZNSt12_Destroy_auxILb0EE9__destroyIP6MatrixEEvT_S4_
	.type	_ZNSt12_Destroy_auxILb0EE9__destroyIP6MatrixEEvT_S4_, @function
_ZNSt12_Destroy_auxILb0EE9__destroyIP6MatrixEEvT_S4_:
.LFB4918:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsi, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	movq	%rdi, %rbx
	pushq	%rdx
	.cfi_def_cfa_offset 32
.L11:
	cmpq	%rbp, %rbx
	je	.L14
	movq	%rbx, %rdi
	addq	$32, %rbx
	call	_ZN6MatrixD1Ev@PLT
	jmp	.L11
.L14:
	popq	%rax
	.cfi_def_cfa_offset 24
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4918:
	.size	_ZNSt12_Destroy_auxILb0EE9__destroyIP6MatrixEEvT_S4_, .-_ZNSt12_Destroy_auxILb0EE9__destroyIP6MatrixEEvT_S4_
	.section	.text._ZNSt6vectorI6MatrixSaIS0_EED2Ev,"axG",@progbits,_ZNSt6vectorI6MatrixSaIS0_EED5Ev,comdat
	.align 2
	.weak	_ZNSt6vectorI6MatrixSaIS0_EED2Ev
	.type	_ZNSt6vectorI6MatrixSaIS0_EED2Ev, @function
_ZNSt6vectorI6MatrixSaIS0_EED2Ev:
.LFB4574:
	.cfi_startproc
	endbr64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	movq	%rdi, %rbx
	movq	8(%rdi), %rsi
	movq	(%rdi), %rdi
	call	_ZNSt12_Destroy_auxILb0EE9__destroyIP6MatrixEEvT_S4_
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	.L15
	movq	16(%rbx), %rsi
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	subq	%rdi, %rsi
	jmp	_ZdlPvm@PLT
.L15:
	.cfi_restore_state
	popq	%rbx
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4574:
	.size	_ZNSt6vectorI6MatrixSaIS0_EED2Ev, .-_ZNSt6vectorI6MatrixSaIS0_EED2Ev
	.weak	_ZNSt6vectorI6MatrixSaIS0_EED1Ev
	.set	_ZNSt6vectorI6MatrixSaIS0_EED1Ev,_ZNSt6vectorI6MatrixSaIS0_EED2Ev
	.section	.text._ZSt16__do_uninit_copyIPK6MatrixPS0_ET0_T_S5_S4_,"axG",@progbits,_ZSt16__do_uninit_copyIPK6MatrixPS0_ET0_T_S5_S4_,comdat
	.weak	_ZSt16__do_uninit_copyIPK6MatrixPS0_ET0_T_S5_S4_
	.type	_ZSt16__do_uninit_copyIPK6MatrixPS0_ET0_T_S5_S4_, @function
_ZSt16__do_uninit_copyIPK6MatrixPS0_ET0_T_S5_S4_:
.LFB4973:
	.cfi_startproc
	.cfi_personality 0x9b,DW.ref.__gxx_personality_v0
	.cfi_lsda 0x1b,.LLSDA4973
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	movq	%rsi, %r13
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	movq	%rdx, %r12
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	movq	%rdx, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	movq	%rdi, %rbx
	pushq	%rcx
	.cfi_def_cfa_offset 48
.L19:
	cmpq	%r13, %rbx
	je	.L27
	movq	%rbx, %rsi
	movq	%rbp, %rdi
.LEHB0:
	call	_ZN6MatrixC1ERKS_@PLT
.LEHE0:
	addq	$32, %rbx
	addq	$32, %rbp
	jmp	.L19
.L23:
	endbr64
	movq	%rax, %rdi
.L21:
	call	__cxa_begin_catch@PLT
	movq	%rbp, %rsi
	movq	%r12, %rdi
	call	_ZNSt12_Destroy_auxILb0EE9__destroyIP6MatrixEEvT_S4_
.LEHB1:
	call	__cxa_rethrow@PLT
.LEHE1:
.L24:
	endbr64
	movq	%rax, %rbx
.L22:
	call	__cxa_end_catch@PLT
	movq	%rbx, %rdi
.LEHB2:
	call	_Unwind_Resume@PLT
.LEHE2:
.L27:
	popq	%rdx
	.cfi_def_cfa_offset 40
	movq	%rbp, %rax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4973:
	.globl	__gxx_personality_v0
	.section	.gcc_except_table._ZSt16__do_uninit_copyIPK6MatrixPS0_ET0_T_S5_S4_,"aG",@progbits,_ZSt16__do_uninit_copyIPK6MatrixPS0_ET0_T_S5_S4_,comdat
	.align 4
.LLSDA4973:
	.byte	0xff
	.byte	0x9b
	.uleb128 .LLSDATT4973-.LLSDATTD4973
.LLSDATTD4973:
	.byte	0x1
	.uleb128 .LLSDACSE4973-.LLSDACSB4973
.LLSDACSB4973:
	.uleb128 .LEHB0-.LFB4973
	.uleb128 .LEHE0-.LEHB0
	.uleb128 .L23-.LFB4973
	.uleb128 0x1
	.uleb128 .LEHB1-.LFB4973
	.uleb128 .LEHE1-.LEHB1
	.uleb128 .L24-.LFB4973
	.uleb128 0
	.uleb128 .LEHB2-.LFB4973
	.uleb128 .LEHE2-.LEHB2
	.uleb128 0
	.uleb128 0
.LLSDACSE4973:
	.byte	0x1
	.byte	0
	.align 4
	.long	0

.LLSDATT4973:
	.section	.text._ZSt16__do_uninit_copyIPK6MatrixPS0_ET0_T_S5_S4_,"axG",@progbits,_ZSt16__do_uninit_copyIPK6MatrixPS0_ET0_T_S5_S4_,comdat
	.size	_ZSt16__do_uninit_copyIPK6MatrixPS0_ET0_T_S5_S4_, .-_ZSt16__do_uninit_copyIPK6MatrixPS0_ET0_T_S5_S4_
	.section	.rodata._ZNSt6vectorI6MatrixSaIS0_EE17_M_realloc_insertIJRKS0_EEEvN9__gnu_cxx17__normal_iteratorIPS0_S2_EEDpOT_.str1.1,"aMS",@progbits,1
.LC0:
	.string	"vector::_M_realloc_insert"
	.section	.text._ZNSt6vectorI6MatrixSaIS0_EE17_M_realloc_insertIJRKS0_EEEvN9__gnu_cxx17__normal_iteratorIPS0_S2_EEDpOT_,"axG",@progbits,_ZNSt6vectorI6MatrixSaIS0_EE17_M_realloc_insertIJRKS0_EEEvN9__gnu_cxx17__normal_iteratorIPS0_S2_EEDpOT_,comdat
	.align 2
	.weak	_ZNSt6vectorI6MatrixSaIS0_EE17_M_realloc_insertIJRKS0_EEEvN9__gnu_cxx17__normal_iteratorIPS0_S2_EEDpOT_
	.type	_ZNSt6vectorI6MatrixSaIS0_EE17_M_realloc_insertIJRKS0_EEEvN9__gnu_cxx17__normal_iteratorIPS0_S2_EEDpOT_, @function
_ZNSt6vectorI6MatrixSaIS0_EE17_M_realloc_insertIJRKS0_EEEvN9__gnu_cxx17__normal_iteratorIPS0_S2_EEDpOT_:
.LFB4739:
	.cfi_startproc
	.cfi_personality 0x9b,DW.ref.__gxx_personality_v0
	.cfi_lsda 0x1b,.LLSDA4739
	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	$24, %rsp
	.cfi_def_cfa_offset 80
	movq	8(%rdi), %r15
	movq	(%rdi), %r13
	movq	%rsi, (%rsp)
	movq	%rdx, %rsi
	movabsq	$288230376151711743, %rdx
	movq	%r15, %rbx
	subq	%r13, %rbx
	sarq	$5, %rbx
	cmpq	%rdx, %rbx
	jne	.L29
	leaq	.LC0(%rip), %rdi
.LEHB3:
	call	_ZSt20__throw_length_errorPKc@PLT
.L29:
	cmpq	%r13, %r15
	movl	$1, %eax
	movq	(%rsp), %r14
	movq	%rdi, %r12
	cmovne	%rbx, %rax
	addq	%rax, %rbx
	setc	%al
	subq	%r13, %r14
	movzbl	%al, %eax
	testq	%rax, %rax
	jne	.L45
	xorl	%ebp, %ebp
	testq	%rbx, %rbx
	je	.L34
	movabsq	$288230376151711743, %rax
	cmpq	%rax, %rbx
	cmova	%rax, %rbx
	jmp	.L33
.L45:
	movq	%rdx, %rbx
.L33:
	movq	%rbx, %rdi
	movq	%rsi, 8(%rsp)
	salq	$5, %rdi
	call	_Znwm@PLT
.LEHE3:
	movq	8(%rsp), %rsi
	movq	%rax, %rbp
.L34:
	leaq	0(%rbp,%r14), %rax
	movq	%rax, %rdi
	movq	%rax, 8(%rsp)
.LEHB4:
	call	_ZN6MatrixC1ERKS_@PLT
.LEHE4:
	movq	(%rsp), %rsi
	movq	%rbp, %rdx
	movq	%r13, %rdi
.LEHB5:
	call	_ZSt16__do_uninit_copyIPK6MatrixPS0_ET0_T_S5_S4_
.LEHE5:
	leaq	32(%rax), %r14
	movq	(%rsp), %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
.LEHB6:
	call	_ZSt16__do_uninit_copyIPK6MatrixPS0_ET0_T_S5_S4_
.LEHE6:
	jmp	.L61
.L50:
	endbr64
.L36:
	xorl	%r14d, %r14d
	jmp	.L37
.L61:
	movq	%r15, %rsi
	movq	%r13, %rdi
	movq	%rax, %r14
	call	_ZNSt12_Destroy_auxILb0EE9__destroyIP6MatrixEEvT_S4_
	testq	%r13, %r13
	je	.L38
	movq	16(%r12), %rsi
	movq	%r13, %rdi
	subq	%r13, %rsi
	call	_ZdlPvm@PLT
.L38:
	salq	$5, %rbx
	movq	%rbp, (%r12)
	addq	%rbp, %rbx
	movq	%r14, 8(%r12)
	movq	%rbx, 16(%r12)
	addq	$24, %rsp
	.cfi_remember_state
	.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
.L49:
	.cfi_restore_state
	endbr64
.L39:
	movq	%rbp, %r14
	jmp	.L37
.L47:
	endbr64
.L37:
	movq	%rax, %rdi
	call	__cxa_begin_catch@PLT
	testq	%r14, %r14
	jne	.L40
	movq	8(%rsp), %rdi
	call	_ZN6MatrixD1Ev@PLT
	jmp	.L41
.L40:
	movq	%r14, %rsi
	movq	%rbp, %rdi
	call	_ZNSt12_Destroy_auxILb0EE9__destroyIP6MatrixEEvT_S4_
.L41:
	testq	%rbp, %rbp
	je	.L42
	movq	%rbx, %rsi
	movq	%rbp, %rdi
	salq	$5, %rsi
	call	_ZdlPvm@PLT
.L42:
.LEHB7:
	call	__cxa_rethrow@PLT
.LEHE7:
.L48:
	endbr64
	movq	%rax, %rbx
.L43:
	call	__cxa_end_catch@PLT
	movq	%rbx, %rdi
.LEHB8:
	call	_Unwind_Resume@PLT
.LEHE8:
	.cfi_endproc
.LFE4739:
	.section	.gcc_except_table._ZNSt6vectorI6MatrixSaIS0_EE17_M_realloc_insertIJRKS0_EEEvN9__gnu_cxx17__normal_iteratorIPS0_S2_EEDpOT_,"aG",@progbits,_ZNSt6vectorI6MatrixSaIS0_EE17_M_realloc_insertIJRKS0_EEEvN9__gnu_cxx17__normal_iteratorIPS0_S2_EEDpOT_,comdat
	.align 4
.LLSDA4739:
	.byte	0xff
	.byte	0x9b
	.uleb128 .LLSDATT4739-.LLSDATTD4739
.LLSDATTD4739:
	.byte	0x1
	.uleb128 .LLSDACSE4739-.LLSDACSB4739
.LLSDACSB4739:
	.uleb128 .LEHB3-.LFB4739
	.uleb128 .LEHE3-.LEHB3
	.uleb128 0
	.uleb128 0
	.uleb128 .LEHB4-.LFB4739
	.uleb128 .LEHE4-.LEHB4
	.uleb128 .L49-.LFB4739
	.uleb128 0x1
	.uleb128 .LEHB5-.LFB4739
	.uleb128 .LEHE5-.LEHB5
	.uleb128 .L50-.LFB4739
	.uleb128 0x1
	.uleb128 .LEHB6-.LFB4739
	.uleb128 .LEHE6-.LEHB6
	.uleb128 .L47-.LFB4739
	.uleb128 0x1
	.uleb128 .LEHB7-.LFB4739
	.uleb128 .LEHE7-.LEHB7
	.uleb128 .L48-.LFB4739
	.uleb128 0
	.uleb128 .LEHB8-.LFB4739
	.uleb128 .LEHE8-.LEHB8
	.uleb128 0
	.uleb128 0
.LLSDACSE4739:
	.byte	0x1
	.byte	0
	.align 4
	.long	0

.LLSDATT4739:
	.section	.text._ZNSt6vectorI6MatrixSaIS0_EE17_M_realloc_insertIJRKS0_EEEvN9__gnu_cxx17__normal_iteratorIPS0_S2_EEDpOT_,"axG",@progbits,_ZNSt6vectorI6MatrixSaIS0_EE17_M_realloc_insertIJRKS0_EEEvN9__gnu_cxx17__normal_iteratorIPS0_S2_EEDpOT_,comdat
	.size	_ZNSt6vectorI6MatrixSaIS0_EE17_M_realloc_insertIJRKS0_EEEvN9__gnu_cxx17__normal_iteratorIPS0_S2_EEDpOT_, .-_ZNSt6vectorI6MatrixSaIS0_EE17_M_realloc_insertIJRKS0_EEEvN9__gnu_cxx17__normal_iteratorIPS0_S2_EEDpOT_
	.section	.text._ZNSt6vectorI6MatrixSaIS0_EE9push_backERKS0_,"axG",@progbits,_ZNSt6vectorI6MatrixSaIS0_EE9push_backERKS0_,comdat
	.align 2
	.weak	_ZNSt6vectorI6MatrixSaIS0_EE9push_backERKS0_
	.type	_ZNSt6vectorI6MatrixSaIS0_EE9push_backERKS0_, @function
_ZNSt6vectorI6MatrixSaIS0_EE9push_backERKS0_:
.LFB4576:
	.cfi_startproc
	endbr64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	movq	%rdi, %rbx
	movq	8(%rdi), %rdi
	cmpq	16(%rbx), %rdi
	je	.L63
	call	_ZN6MatrixC1ERKS_@PLT
	addq	$32, 8(%rbx)
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L63:
	.cfi_restore_state
	movq	%rsi, %rdx
	movq	%rdi, %rsi
	movq	%rbx, %rdi
	popq	%rbx
	.cfi_def_cfa_offset 8
	jmp	_ZNSt6vectorI6MatrixSaIS0_EE17_M_realloc_insertIJRKS0_EEEvN9__gnu_cxx17__normal_iteratorIPS0_S2_EEDpOT_
	.cfi_endproc
.LFE4576:
	.size	_ZNSt6vectorI6MatrixSaIS0_EE9push_backERKS0_, .-_ZNSt6vectorI6MatrixSaIS0_EE9push_backERKS0_
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC4:
	.string	"\n"
	.section	.text.startup
	.globl	main
	.type	main, @function
main:
.LFB4216:
	.cfi_startproc
	.cfi_personality 0x9b,DW.ref.__gxx_personality_v0
	.cfi_lsda 0x1b,.LLSDA4216
	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	$216, %rsp
	.cfi_def_cfa_offset 272
	movq	_ZN6lossesL3MSEE(%rip), %rsi
	movq	8+_ZN6lossesL3MSEE(%rip), %rdx
	movq	%fs:40, %rax
	movq	%rax, 200(%rsp)
	xorl	%eax, %eax
	leaq	160(%rsp), %rax
	movq	%rax, %rdi
	movq	%rax, (%rsp)
.LEHB9:
	call	_ZN5ModelC1E13Loss_Function@PLT
.LEHE9:
	movl	$256, %edi
.LEHB10:
	call	_Znwm@PLT
.LEHE10:
	movl	$300, %edx
	movl	$10, %esi
	movq	%rax, %rdi
	movq	%rax, %r12
	movq	_ZN10activationL6LINEARE(%rip), %rcx
	movq	8+_ZN10activationL6LINEARE(%rip), %r8
.LEHB11:
	call	_ZN5DenseC1Eii19Activation_Function@PLT
.LEHE11:
	movq	(%rsp), %rdi
	movq	%r12, %rsi
.LEHB12:
	call	_ZN5ModelpLEP5Layer@PLT
	movl	$256, %edi
	call	_Znwm@PLT
.LEHE12:
	movl	$5, %edx
	movl	$300, %esi
	movq	%rax, %rdi
	movq	%rax, %r12
	movq	_ZN10activationL6LINEARE(%rip), %rcx
	movq	8+_ZN10activationL6LINEARE(%rip), %r8
.LEHB13:
	call	_ZN5DenseC1Eii19Activation_Function@PLT
.LEHE13:
	movq	(%rsp), %rdi
	movq	%r12, %rsi
.LEHB14:
	call	_ZN5ModelpLEP5Layer@PLT
	leaq	64(%rsp), %rax
	movl	$1, %edx
	movl	$10, %esi
	movq	%rax, %rdi
	movq	%rax, 8(%rsp)
	call	_ZN6MatrixC1Eib@PLT
.LEHE14:
	leaq	128(%rsp), %r12
	movq	8(%rsp), %rdx
	movq	(%rsp), %rsi
	movq	%r12, %rdi
.LEHB15:
	call	_ZNK5Model4feedERK6Matrix@PLT
.LEHE15:
	movq	%r12, %rsi
	leaq	_ZSt4cout(%rip), %rdi
.LEHB16:
	call	_ZlsRSoRK6Matrix@PLT
.LEHE16:
	movq	%r12, %rdi
	movl	$10, %ebx
	leaq	96(%rsp), %r13
	call	_ZN6MatrixD1Ev@PLT
	xorl	%eax, %eax
	movq	%rax, 16(%rsp)
	movq	%rax, 24(%rsp)
	movq	%rax, 32(%rsp)
	movq	%rax, 40(%rsp)
	movq	%rax, 48(%rsp)
	movq	%rax, 56(%rsp)
.L68:
	movl	$1, %edx
	movl	$10, %esi
	movq	%r13, %rdi
	leaq	16(%rsp), %r14
	leaq	40(%rsp), %r15
.LEHB17:
	call	_ZN6MatrixC1Eib@PLT
.LEHE17:
	movss	.LC1(%rip), %xmm0
	movl	$1, %edx
	movl	$5, %esi
	movq	%r12, %rdi
.LEHB18:
	call	_ZN6MatrixC1Eifb@PLT
.LEHE18:
	movq	%r13, %rsi
	movq	%r14, %rdi
.LEHB19:
	call	_ZNSt6vectorI6MatrixSaIS0_EE9push_backERKS0_
	movq	%r12, %rsi
	movq	%r15, %rdi
	call	_ZNSt6vectorI6MatrixSaIS0_EE9push_backERKS0_
.LEHE19:
	movq	%r12, %rdi
	call	_ZN6MatrixD1Ev@PLT
	movq	%r13, %rdi
	call	_ZN6MatrixD1Ev@PLT
	decl	%ebx
	jne	.L68
	movl	$20, %ebx
.L69:
	movss	.LC3(%rip), %xmm0
	movq	(%rsp), %rdi
	xorps	%xmm1, %xmm1
	movl	$10, %ecx
	movq	40(%rsp), %rdx
	movq	16(%rsp), %rsi
.LEHB20:
	call	_ZN5Model11train_batchEN9__gnu_cxx17__normal_iteratorIP6MatrixSt6vectorIS2_SaIS2_EEEES7_jff@PLT
	leaq	_ZSt4cout(%rip), %rdi
	cvtss2sd	%xmm0, %xmm0
	call	_ZNSo9_M_insertIdEERSoT_@PLT
	movq	%rax, %rdi
	leaq	.LC4(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
.LEHE20:
	decl	%ebx
	jne	.L69
	movq	%r15, %rdi
	call	_ZNSt6vectorI6MatrixSaIS0_EED1Ev
	movq	%r14, %rdi
	call	_ZNSt6vectorI6MatrixSaIS0_EED1Ev
	movq	8(%rsp), %rdi
	call	_ZN6MatrixD1Ev@PLT
	movq	(%rsp), %rdi
	call	_ZNSt7__cxx1110_List_baseIP5LayerSaIS2_EE8_M_clearEv
.L81:
	movq	200(%rsp), %rax
	subq	%fs:40, %rax
	je	.L84
	jmp	.L97
.L94:
	endbr64
	jmp	.L101
.L87:
	endbr64
.L101:
	movq	%rax, %rbx
	movq	%rdx, %rbp
.L72:
	movl	$256, %esi
	movq	%r12, %rdi
	call	_ZdlPvm@PLT
	jmp	.L71
.L88:
	endbr64
	movq	%rax, %rbx
	movq	%rdx, %rbp
.L73:
	movq	%r12, %rdi
	call	_ZN6MatrixD1Ev@PLT
	jmp	.L74
.L91:
	endbr64
	movq	%rax, %rbx
	movq	%rdx, %rbp
.L75:
	movq	%r12, %rdi
	call	_ZN6MatrixD1Ev@PLT
	jmp	.L76
.L90:
	endbr64
	movq	%rax, %rbx
	movq	%rdx, %rbp
.L76:
	movq	%r13, %rdi
	call	_ZN6MatrixD1Ev@PLT
	jmp	.L77
.L92:
	endbr64
	movq	%rax, %rbx
	movq	%rdx, %rbp
.L77:
	movq	%r15, %rdi
	call	_ZNSt6vectorI6MatrixSaIS0_EED1Ev
	movq	%r14, %rdi
	call	_ZNSt6vectorI6MatrixSaIS0_EED1Ev
	jmp	.L74
.L89:
	endbr64
	movq	%rax, %rbx
	movq	%rdx, %rbp
.L74:
	movq	8(%rsp), %rdi
	call	_ZN6MatrixD1Ev@PLT
	jmp	.L71
.L86:
	endbr64
	movq	%rax, %rbx
	movq	%rdx, %rbp
.L71:
	movq	(%rsp), %rdi
	call	_ZNSt7__cxx1110_List_baseIP5LayerSaIS2_EE8_M_clearEv
	movq	%rbx, %rdi
	jmp	.L78
.L85:
	endbr64
	movq	%rax, %rdi
	movq	%rdx, %rbp
.L78:
	decq	%rbp
	je	.L79
	movq	200(%rsp), %rax
	subq	%fs:40, %rax
	je	.L100
	jmp	.L97
.L79:
	call	__cxa_begin_catch@PLT
	leaq	_ZSt4cout(%rip), %rdi
	movq	%rax, %rsi
.LEHB21:
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	leaq	.LC4(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
.LEHE21:
	call	__cxa_end_catch@PLT
	jmp	.L81
.L93:
	endbr64
	movq	%rax, %rbx
.L82:
	call	__cxa_end_catch@PLT
	movq	%rbx, %rdi
	movq	200(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L97
.L100:
.LEHB22:
	call	_Unwind_Resume@PLT
.LEHE22:
.L97:
	call	__stack_chk_fail@PLT
.L84:
	addq	$216, %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
.LFE4216:
	.section	.gcc_except_table,"a",@progbits
	.align 4
.LLSDA4216:
	.byte	0xff
	.byte	0x9b
	.uleb128 .LLSDATT4216-.LLSDATTD4216
.LLSDATTD4216:
	.byte	0x1
	.uleb128 .LLSDACSE4216-.LLSDACSB4216
.LLSDACSB4216:
	.uleb128 .LEHB9-.LFB4216
	.uleb128 .LEHE9-.LEHB9
	.uleb128 .L85-.LFB4216
	.uleb128 0x1
	.uleb128 .LEHB10-.LFB4216
	.uleb128 .LEHE10-.LEHB10
	.uleb128 .L86-.LFB4216
	.uleb128 0x3
	.uleb128 .LEHB11-.LFB4216
	.uleb128 .LEHE11-.LEHB11
	.uleb128 .L94-.LFB4216
	.uleb128 0x3
	.uleb128 .LEHB12-.LFB4216
	.uleb128 .LEHE12-.LEHB12
	.uleb128 .L86-.LFB4216
	.uleb128 0x3
	.uleb128 .LEHB13-.LFB4216
	.uleb128 .LEHE13-.LEHB13
	.uleb128 .L87-.LFB4216
	.uleb128 0x3
	.uleb128 .LEHB14-.LFB4216
	.uleb128 .LEHE14-.LEHB14
	.uleb128 .L86-.LFB4216
	.uleb128 0x3
	.uleb128 .LEHB15-.LFB4216
	.uleb128 .LEHE15-.LEHB15
	.uleb128 .L89-.LFB4216
	.uleb128 0x3
	.uleb128 .LEHB16-.LFB4216
	.uleb128 .LEHE16-.LEHB16
	.uleb128 .L88-.LFB4216
	.uleb128 0x3
	.uleb128 .LEHB17-.LFB4216
	.uleb128 .LEHE17-.LEHB17
	.uleb128 .L92-.LFB4216
	.uleb128 0x3
	.uleb128 .LEHB18-.LFB4216
	.uleb128 .LEHE18-.LEHB18
	.uleb128 .L90-.LFB4216
	.uleb128 0x3
	.uleb128 .LEHB19-.LFB4216
	.uleb128 .LEHE19-.LEHB19
	.uleb128 .L91-.LFB4216
	.uleb128 0x3
	.uleb128 .LEHB20-.LFB4216
	.uleb128 .LEHE20-.LEHB20
	.uleb128 .L92-.LFB4216
	.uleb128 0x3
	.uleb128 .LEHB21-.LFB4216
	.uleb128 .LEHE21-.LEHB21
	.uleb128 .L93-.LFB4216
	.uleb128 0
	.uleb128 .LEHB22-.LFB4216
	.uleb128 .LEHE22-.LEHB22
	.uleb128 0
	.uleb128 0
.LLSDACSE4216:
	.byte	0x1
	.byte	0
	.byte	0
	.byte	0x7d
	.align 4
	.long	DW.ref._ZTIPKc-.
.LLSDATT4216:
	.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	.data.rel.ro,"aw"
	.align 16
	.type	_ZN6lossesL3MSEE, @object
	.size	_ZN6lossesL3MSEE, 16
_ZN6lossesL3MSEE:
	.quad	_ZN6losses8func_mseERK6MatrixS2_
	.quad	_ZN6losses9deriv_mseERK6MatrixS2_
	.section	.rodata
	.align 16
	.type	_ZN10activationL6LINEARE, @object
	.size	_ZN10activationL6LINEARE, 16
_ZN10activationL6LINEARE:
	.zero	16
	.section	.rodata.cst4,"aM",@progbits,4
	.align 4
.LC1:
	.long	1065353216
	.align 4
.LC3:
	.long	1008981770
	.hidden	DW.ref._ZTIPKc
	.weak	DW.ref._ZTIPKc
	.section	.data.rel.local.DW.ref._ZTIPKc,"awG",@progbits,DW.ref._ZTIPKc,comdat
	.align 8
	.type	DW.ref._ZTIPKc, @object
	.size	DW.ref._ZTIPKc, 8
DW.ref._ZTIPKc:
	.quad	_ZTIPKc
	.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 "model.cuh"
#include <vector>

int main(int argc, char* argv[])
{
	try
	{
		Model nn (losses::MSE);
		nn += new Dense(10,300);
		nn += new Dense(300, 5);

		Matrix m(10);
		std::cout << nn.feed(m);

		std::vector<Matrix> train_data;
		std::vector<Matrix> ans;
		// generate some training data
		for(int i = 0; i < 10; ++i)
		{
			Matrix m(10);
			Matrix a(5, 1.0f);
			train_data.push_back(m);
			ans.push_back(a);
		}
		for (int i = 0; i < 20; ++i)
		std::cout << nn.train_batch(train_data.begin(), ans.begin(), 10, 0.01f) << "\n";
	}
	catch (char const* s)
	{
		std::cout << s << "\n";
	}
}
	.text
	.file	"main.hip"
                                        # Start of file scope inline assembly
	.globl	_ZSt21ios_base_library_initv

                                        # End of file scope inline assembly
	.section	.rodata.cst4,"aM",@progbits,4
	.p2align	2, 0x0                          # -- Begin function main
.LCPI0_0:
	.long	0x3f800000                      # float 1
.LCPI0_1:
	.long	0x3c23d70a                      # float 0.00999999977
	.text
	.globl	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	$200, %rsp
	.cfi_def_cfa_offset 256
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
.Ltmp0:
	leaq	8(%rsp), %rbx
	movl	$_ZN6losses8func_mseERK6MatrixS2_, %esi
	movl	$_ZN6losses9deriv_mseERK6MatrixS2_, %edx
	movq	%rbx, %rdi
	callq	_ZN5ModelC1E13Loss_Function
.Ltmp1:
# %bb.1:
.Ltmp3:
	movl	$256, %edi                      # imm = 0x100
	callq	_Znwm
.Ltmp4:
# %bb.2:
.Ltmp5:
	movq	%rax, %r12
	movq	%rax, %rdi
	movl	$10, %esi
	movl	$300, %edx                      # imm = 0x12C
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_ZN5DenseC1Eii19Activation_Function
.Ltmp6:
# %bb.3:
.Ltmp8:
	leaq	8(%rsp), %rdi
	movq	%r12, %rsi
	callq	_ZN5ModelpLEP5Layer
.Ltmp9:
# %bb.4:
.Ltmp10:
	movl	$256, %edi                      # imm = 0x100
	callq	_Znwm
.Ltmp11:
# %bb.5:
.Ltmp12:
	movq	%rax, %r12
	movq	%rax, %rdi
	movl	$300, %esi                      # imm = 0x12C
	movl	$5, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_ZN5DenseC1Eii19Activation_Function
.Ltmp13:
# %bb.6:
.Ltmp15:
	leaq	8(%rsp), %rdi
	movq	%r12, %rsi
	callq	_ZN5ModelpLEP5Layer
.Ltmp16:
# %bb.7:
.Ltmp18:
	leaq	136(%rsp), %rdi
	movl	$10, %esi
	movl	$1, %edx
	callq	_ZN6MatrixC1Eib
.Ltmp19:
# %bb.8:
.Ltmp21:
	leaq	104(%rsp), %rdi
	leaq	8(%rsp), %rsi
	leaq	136(%rsp), %rdx
	callq	_ZNK5Model4feedERK6Matrix
.Ltmp22:
# %bb.9:
.Ltmp24:
	leaq	104(%rsp), %rsi
	movl	$_ZSt4cout, %edi
	callq	_ZlsRSoRK6Matrix
.Ltmp25:
# %bb.10:
	leaq	104(%rsp), %r14
	movq	%r14, %rdi
	callq	_ZN6MatrixD1Ev
	xorl	%eax, %eax
	leaq	80(%rsp), %r15
	movq	%rax, 16(%r15)
	xorps	%xmm0, %xmm0
	movaps	%xmm0, (%r15)
	leaq	48(%rsp), %r12
	movq	%rax, 16(%r12)
	movaps	%xmm0, (%r12)
	movl	$10, %ebp
	leaq	168(%rsp), %r13
.LBB0_11:                               # =>This Inner Loop Header: Depth=1
.Ltmp27:
	movq	%r14, %rdi
	movl	$10, %esi
	movl	$1, %edx
	callq	_ZN6MatrixC1Eib
.Ltmp28:
# %bb.12:                               #   in Loop: Header=BB0_11 Depth=1
.Ltmp30:
	movq	%r13, %rdi
	movl	$5, %esi
	movss	.LCPI0_0(%rip), %xmm0           # xmm0 = mem[0],zero,zero,zero
	movl	$1, %edx
	callq	_ZN6MatrixC1Eifb
.Ltmp31:
# %bb.13:                               #   in Loop: Header=BB0_11 Depth=1
.Ltmp33:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_ZNSt6vectorI6MatrixSaIS0_EE9push_backERKS0_
.Ltmp34:
# %bb.14:                               #   in Loop: Header=BB0_11 Depth=1
.Ltmp35:
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_ZNSt6vectorI6MatrixSaIS0_EE9push_backERKS0_
.Ltmp36:
# %bb.15:                               #   in Loop: Header=BB0_11 Depth=1
	movq	%r13, %rdi
	callq	_ZN6MatrixD1Ev
	movq	%r14, %rdi
	callq	_ZN6MatrixD1Ev
	decl	%ebp
	jne	.LBB0_11
# %bb.16:                               # %.preheader.preheader
	movl	$20, %ebp
	leaq	8(%rsp), %r14
.LBB0_17:                               # %.preheader
                                        # =>This Inner Loop Header: Depth=1
	movq	80(%rsp), %rsi
	movq	48(%rsp), %rdx
.Ltmp38:
	xorps	%xmm1, %xmm1
	movq	%r14, %rdi
	movl	$10, %ecx
	movss	.LCPI0_1(%rip), %xmm0           # xmm0 = mem[0],zero,zero,zero
	callq	_ZN5Model11train_batchEN9__gnu_cxx17__normal_iteratorIP6MatrixSt6vectorIS2_SaIS2_EEEES7_jff
.Ltmp39:
# %bb.18:                               #   in Loop: Header=BB0_17 Depth=1
	cvtss2sd	%xmm0, %xmm0
.Ltmp40:
	movl	$_ZSt4cout, %edi
	callq	_ZNSo9_M_insertIdEERSoT_
.Ltmp41:
# %bb.19:                               # %_ZNSolsEf.exit
                                        #   in Loop: Header=BB0_17 Depth=1
.Ltmp42:
	movl	$.L.str, %esi
	movl	$1, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp43:
# %bb.20:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit
                                        #   in Loop: Header=BB0_17 Depth=1
	decl	%ebp
	jne	.LBB0_17
# %bb.21:
	leaq	48(%rsp), %rdi
	callq	_ZNSt6vectorI6MatrixSaIS0_EED2Ev
	leaq	80(%rsp), %rdi
	callq	_ZNSt6vectorI6MatrixSaIS0_EED2Ev
	leaq	136(%rsp), %rdi
	callq	_ZN6MatrixD1Ev
	movq	8(%rsp), %rdi
	cmpq	%r14, %rdi
	je	.LBB0_46
.LBB0_22:                               # %.lr.ph.i.i.i
                                        # =>This Inner Loop Header: Depth=1
	movq	(%rdi), %rbx
	callq	_ZdlPv
	movq	%rbx, %rdi
	cmpq	%r14, %rbx
	jne	.LBB0_22
.LBB0_46:
	xorl	%eax, %eax
	addq	$200, %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_31:
	.cfi_def_cfa_offset 256
.Ltmp26:
	movq	%rdx, %r15
	movq	%rax, %r14
	leaq	104(%rsp), %rdi
	callq	_ZN6MatrixD1Ev
	jmp	.LBB0_39
.LBB0_30:
.Ltmp23:
	movq	%rdx, %r15
	movq	%rax, %r14
	jmp	.LBB0_39
.LBB0_29:
.Ltmp20:
	jmp	.LBB0_25
.LBB0_28:
.Ltmp14:
	jmp	.LBB0_27
.LBB0_26:
.Ltmp7:
.LBB0_27:
	movq	%rdx, %r15
	movq	%rax, %r14
	movq	%r12, %rdi
	callq	_ZdlPv
	jmp	.LBB0_40
.LBB0_23:
.Ltmp2:
	movq	%rdx, %r15
	movq	%rax, %r14
	jmp	.LBB0_42
.LBB0_24:
.Ltmp17:
.LBB0_25:
	movq	%rdx, %r15
	movq	%rax, %r14
	jmp	.LBB0_40
.LBB0_32:
.Ltmp29:
	jmp	.LBB0_37
.LBB0_33:
.Ltmp32:
	movq	%rdx, %r15
	movq	%rax, %r14
	jmp	.LBB0_35
.LBB0_34:
.Ltmp37:
	movq	%rdx, %r15
	movq	%rax, %r14
	leaq	168(%rsp), %rdi
	callq	_ZN6MatrixD1Ev
.LBB0_35:
	leaq	104(%rsp), %rdi
	callq	_ZN6MatrixD1Ev
	jmp	.LBB0_38
.LBB0_36:
.Ltmp44:
.LBB0_37:
	movq	%rdx, %r15
	movq	%rax, %r14
.LBB0_38:
	leaq	48(%rsp), %rdi
	callq	_ZNSt6vectorI6MatrixSaIS0_EED2Ev
	leaq	80(%rsp), %rdi
	callq	_ZNSt6vectorI6MatrixSaIS0_EED2Ev
.LBB0_39:
	leaq	136(%rsp), %rdi
	callq	_ZN6MatrixD1Ev
.LBB0_40:
	movq	8(%rsp), %rdi
	cmpq	%rbx, %rdi
	je	.LBB0_42
.LBB0_41:                               # %.lr.ph.i.i.i36
                                        # =>This Inner Loop Header: Depth=1
	movq	(%rdi), %r12
	callq	_ZdlPv
	movq	%r12, %rdi
	cmpq	%rbx, %r12
	jne	.LBB0_41
.LBB0_42:                               # %_ZN5ModelD2Ev.exit39
	cmpl	$1, %r15d
	jne	.LBB0_48
# %bb.43:
	movq	%r14, %rdi
	callq	__cxa_begin_catch
.Ltmp45:
	movl	$_ZSt4cout, %edi
	movq	%rax, %rsi
	callq	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc
.Ltmp46:
# %bb.44:
.Ltmp47:
	movl	$.L.str, %esi
	movl	$1, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp48:
# %bb.45:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit40
	callq	__cxa_end_catch
	jmp	.LBB0_46
.LBB0_47:
.Ltmp49:
	movq	%rax, %r14
	callq	__cxa_end_catch
.LBB0_48:
	movq	%r14, %rdi
	callq	_Unwind_Resume@PLT
.Lfunc_end0:
	.size	main, .Lfunc_end0-main
	.cfi_endproc
	.section	.gcc_except_table,"a",@progbits
	.p2align	2, 0x0
GCC_except_table0:
.Lexception0:
	.byte	255                             # @LPStart Encoding = omit
	.byte	3                               # @TType Encoding = udata4
	.uleb128 .Lttbase0-.Lttbaseref0
.Lttbaseref0:
	.byte	1                               # Call site Encoding = uleb128
	.uleb128 .Lcst_end0-.Lcst_begin0
.Lcst_begin0:
	.uleb128 .Ltmp0-.Lfunc_begin0           # >> Call Site 1 <<
	.uleb128 .Ltmp1-.Ltmp0                  #   Call between .Ltmp0 and .Ltmp1
	.uleb128 .Ltmp2-.Lfunc_begin0           #     jumps to .Ltmp2
	.byte	3                               #   On action: 2
	.uleb128 .Ltmp3-.Lfunc_begin0           # >> Call Site 2 <<
	.uleb128 .Ltmp4-.Ltmp3                  #   Call between .Ltmp3 and .Ltmp4
	.uleb128 .Ltmp17-.Lfunc_begin0          #     jumps to .Ltmp17
	.byte	3                               #   On action: 2
	.uleb128 .Ltmp5-.Lfunc_begin0           # >> Call Site 3 <<
	.uleb128 .Ltmp6-.Ltmp5                  #   Call between .Ltmp5 and .Ltmp6
	.uleb128 .Ltmp7-.Lfunc_begin0           #     jumps to .Ltmp7
	.byte	3                               #   On action: 2
	.uleb128 .Ltmp8-.Lfunc_begin0           # >> Call Site 4 <<
	.uleb128 .Ltmp11-.Ltmp8                 #   Call between .Ltmp8 and .Ltmp11
	.uleb128 .Ltmp17-.Lfunc_begin0          #     jumps to .Ltmp17
	.byte	3                               #   On action: 2
	.uleb128 .Ltmp12-.Lfunc_begin0          # >> Call Site 5 <<
	.uleb128 .Ltmp13-.Ltmp12                #   Call between .Ltmp12 and .Ltmp13
	.uleb128 .Ltmp14-.Lfunc_begin0          #     jumps to .Ltmp14
	.byte	3                               #   On action: 2
	.uleb128 .Ltmp15-.Lfunc_begin0          # >> Call Site 6 <<
	.uleb128 .Ltmp16-.Ltmp15                #   Call between .Ltmp15 and .Ltmp16
	.uleb128 .Ltmp17-.Lfunc_begin0          #     jumps to .Ltmp17
	.byte	3                               #   On action: 2
	.uleb128 .Ltmp18-.Lfunc_begin0          # >> Call Site 7 <<
	.uleb128 .Ltmp19-.Ltmp18                #   Call between .Ltmp18 and .Ltmp19
	.uleb128 .Ltmp20-.Lfunc_begin0          #     jumps to .Ltmp20
	.byte	3                               #   On action: 2
	.uleb128 .Ltmp21-.Lfunc_begin0          # >> Call Site 8 <<
	.uleb128 .Ltmp22-.Ltmp21                #   Call between .Ltmp21 and .Ltmp22
	.uleb128 .Ltmp23-.Lfunc_begin0          #     jumps to .Ltmp23
	.byte	3                               #   On action: 2
	.uleb128 .Ltmp24-.Lfunc_begin0          # >> Call Site 9 <<
	.uleb128 .Ltmp25-.Ltmp24                #   Call between .Ltmp24 and .Ltmp25
	.uleb128 .Ltmp26-.Lfunc_begin0          #     jumps to .Ltmp26
	.byte	3                               #   On action: 2
	.uleb128 .Ltmp27-.Lfunc_begin0          # >> Call Site 10 <<
	.uleb128 .Ltmp28-.Ltmp27                #   Call between .Ltmp27 and .Ltmp28
	.uleb128 .Ltmp29-.Lfunc_begin0          #     jumps to .Ltmp29
	.byte	3                               #   On action: 2
	.uleb128 .Ltmp30-.Lfunc_begin0          # >> Call Site 11 <<
	.uleb128 .Ltmp31-.Ltmp30                #   Call between .Ltmp30 and .Ltmp31
	.uleb128 .Ltmp32-.Lfunc_begin0          #     jumps to .Ltmp32
	.byte	3                               #   On action: 2
	.uleb128 .Ltmp33-.Lfunc_begin0          # >> Call Site 12 <<
	.uleb128 .Ltmp36-.Ltmp33                #   Call between .Ltmp33 and .Ltmp36
	.uleb128 .Ltmp37-.Lfunc_begin0          #     jumps to .Ltmp37
	.byte	3                               #   On action: 2
	.uleb128 .Ltmp38-.Lfunc_begin0          # >> Call Site 13 <<
	.uleb128 .Ltmp43-.Ltmp38                #   Call between .Ltmp38 and .Ltmp43
	.uleb128 .Ltmp44-.Lfunc_begin0          #     jumps to .Ltmp44
	.byte	3                               #   On action: 2
	.uleb128 .Ltmp43-.Lfunc_begin0          # >> Call Site 14 <<
	.uleb128 .Ltmp45-.Ltmp43                #   Call between .Ltmp43 and .Ltmp45
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp45-.Lfunc_begin0          # >> Call Site 15 <<
	.uleb128 .Ltmp48-.Ltmp45                #   Call between .Ltmp45 and .Ltmp48
	.uleb128 .Ltmp49-.Lfunc_begin0          #     jumps to .Ltmp49
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp48-.Lfunc_begin0          # >> Call Site 16 <<
	.uleb128 .Lfunc_end0-.Ltmp48            #   Call between .Ltmp48 and .Lfunc_end0
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
.Lcst_end0:
	.byte	0                               # >> Action Record 1 <<
                                        #   Cleanup
	.byte	0                               #   No further actions
	.byte	1                               # >> Action Record 2 <<
                                        #   Catch TypeInfo 1
	.byte	125                             #   Continue to action 1
	.p2align	2, 0x0
                                        # >> Catch TypeInfos <<
	.long	_ZTIPKc                         # TypeInfo 1
.Lttbase0:
	.p2align	2, 0x0
                                        # -- End function
	.section	.text._ZNSt6vectorI6MatrixSaIS0_EE9push_backERKS0_,"axG",@progbits,_ZNSt6vectorI6MatrixSaIS0_EE9push_backERKS0_,comdat
	.weak	_ZNSt6vectorI6MatrixSaIS0_EE9push_backERKS0_ # -- Begin function _ZNSt6vectorI6MatrixSaIS0_EE9push_backERKS0_
	.p2align	1, 0x90
	.type	_ZNSt6vectorI6MatrixSaIS0_EE9push_backERKS0_,@function
_ZNSt6vectorI6MatrixSaIS0_EE9push_backERKS0_: # @_ZNSt6vectorI6MatrixSaIS0_EE9push_backERKS0_
	.cfi_startproc
# %bb.0:
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset %rbx, -16
	movq	%rsi, %rdx
	movq	%rdi, %rbx
	movq	8(%rdi), %rsi
	cmpq	16(%rdi), %rsi
	je	.LBB1_2
# %bb.1:
	movq	%rsi, %rdi
	movq	%rdx, %rsi
	callq	_ZN6MatrixC1ERKS_
	addq	$32, 8(%rbx)
	popq	%rbx
	.cfi_def_cfa_offset 8
	retq
.LBB1_2:
	.cfi_def_cfa_offset 16
	movq	%rbx, %rdi
	popq	%rbx
	.cfi_def_cfa_offset 8
	jmp	_ZNSt6vectorI6MatrixSaIS0_EE17_M_realloc_insertIJRKS0_EEEvN9__gnu_cxx17__normal_iteratorIPS0_S2_EEDpOT_ # TAILCALL
.Lfunc_end1:
	.size	_ZNSt6vectorI6MatrixSaIS0_EE9push_backERKS0_, .Lfunc_end1-_ZNSt6vectorI6MatrixSaIS0_EE9push_backERKS0_
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt6vectorI6MatrixSaIS0_EED2Ev,"axG",@progbits,_ZNSt6vectorI6MatrixSaIS0_EED2Ev,comdat
	.weak	_ZNSt6vectorI6MatrixSaIS0_EED2Ev # -- Begin function _ZNSt6vectorI6MatrixSaIS0_EED2Ev
	.p2align	1, 0x90
	.type	_ZNSt6vectorI6MatrixSaIS0_EED2Ev,@function
_ZNSt6vectorI6MatrixSaIS0_EED2Ev:       # @_ZNSt6vectorI6MatrixSaIS0_EED2Ev
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	movq	(%rdi), %rbx
	movq	8(%rdi), %r15
	cmpq	%r15, %rbx
	je	.LBB2_4
# %bb.1:                                # %.lr.ph.i.i.i.preheader
	movq	%rdi, %r14
.LBB2_2:                                # %.lr.ph.i.i.i
                                        # =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_ZN6MatrixD1Ev
	addq	$32, %rbx
	cmpq	%r15, %rbx
	jne	.LBB2_2
# %bb.3:                                # %_ZSt8_DestroyIP6MatrixS0_EvT_S2_RSaIT0_E.exitthread-pre-split
	movq	(%r14), %rbx
.LBB2_4:                                # %_ZSt8_DestroyIP6MatrixS0_EvT_S2_RSaIT0_E.exit
	testq	%rbx, %rbx
	je	.LBB2_5
# %bb.6:
	movq	%rbx, %rdi
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	jmp	_ZdlPv                          # TAILCALL
.LBB2_5:                                # %_ZNSt12_Vector_baseI6MatrixSaIS0_EED2Ev.exit
	.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
.Lfunc_end2:
	.size	_ZNSt6vectorI6MatrixSaIS0_EED2Ev, .Lfunc_end2-_ZNSt6vectorI6MatrixSaIS0_EED2Ev
	.cfi_endproc
                                        # -- 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_end3:
	.size	__clang_call_terminate, .Lfunc_end3-__clang_call_terminate
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt6vectorI6MatrixSaIS0_EE17_M_realloc_insertIJRKS0_EEEvN9__gnu_cxx17__normal_iteratorIPS0_S2_EEDpOT_,"axG",@progbits,_ZNSt6vectorI6MatrixSaIS0_EE17_M_realloc_insertIJRKS0_EEEvN9__gnu_cxx17__normal_iteratorIPS0_S2_EEDpOT_,comdat
	.weak	_ZNSt6vectorI6MatrixSaIS0_EE17_M_realloc_insertIJRKS0_EEEvN9__gnu_cxx17__normal_iteratorIPS0_S2_EEDpOT_ # -- Begin function _ZNSt6vectorI6MatrixSaIS0_EE17_M_realloc_insertIJRKS0_EEEvN9__gnu_cxx17__normal_iteratorIPS0_S2_EEDpOT_
	.p2align	1, 0x90
	.type	_ZNSt6vectorI6MatrixSaIS0_EE17_M_realloc_insertIJRKS0_EEEvN9__gnu_cxx17__normal_iteratorIPS0_S2_EEDpOT_,@function
_ZNSt6vectorI6MatrixSaIS0_EE17_M_realloc_insertIJRKS0_EEEvN9__gnu_cxx17__normal_iteratorIPS0_S2_EEDpOT_: # @_ZNSt6vectorI6MatrixSaIS0_EE17_M_realloc_insertIJRKS0_EEEvN9__gnu_cxx17__normal_iteratorIPS0_S2_EEDpOT_
.Lfunc_begin1:
	.cfi_startproc
	.cfi_personality 3, __gxx_personality_v0
	.cfi_lsda 3, .Lexception1
# %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	$24, %rsp
	.cfi_def_cfa_offset 80
	.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	%rdx, %r12
	movq	%rsi, %rbp
	movq	%rdi, %rbx
	movl	$1, %esi
	movl	$.L.str.1, %edx
	callq	_ZNKSt6vectorI6MatrixSaIS0_EE12_M_check_lenEmPKc
	movq	%rax, %r15
	movq	(%rbx), %rax
	movq	8(%rbx), %r13
	movq	%rbp, %r14
	movq	%rax, 8(%rsp)                   # 8-byte Spill
	subq	%rax, %rbp
	sarq	$5, %rbp
	testq	%r15, %r15
	movq	%rbx, 16(%rsp)                  # 8-byte Spill
	je	.LBB4_1
# %bb.2:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	xorl	%edx, %edx
	callq	_ZNSt15__new_allocatorI6MatrixE8allocateEmPKv
	movq	%rax, %rbx
	jmp	.LBB4_3
.LBB4_1:
	xorl	%ebx, %ebx
.LBB4_3:                                # %_ZNSt12_Vector_baseI6MatrixSaIS0_EE11_M_allocateEm.exit
	shlq	$5, %rbp
	addq	%rbx, %rbp
.Ltmp50:
	movq	%rbp, %rdi
	movq	%r12, %rsi
	movq	%rbx, (%rsp)                    # 8-byte Spill
	callq	_ZN6MatrixC1ERKS_
.Ltmp51:
# %bb.4:                                # %_ZNSt16allocator_traitsISaI6MatrixEE9constructIS0_JRKS0_EEEvRS1_PT_DpOT0_.exit
.Ltmp53:
	movq	8(%rsp), %rdi                   # 8-byte Reload
	movq	%r14, %rsi
	movq	%rbx, %rdx
	callq	_ZSt16__do_uninit_copyIPK6MatrixPS0_ET0_T_S5_S4_
.Ltmp54:
# %bb.5:                                # %_ZSt34__uninitialized_move_if_noexcept_aIP6MatrixS1_SaIS0_EET0_T_S4_S3_RT1_.exit
	movq	%rax, %r12
	addq	$32, %r12
.Ltmp56:
	movq	%r14, %rdi
	movq	%r13, %rsi
	movq	%r12, %rdx
	callq	_ZSt16__do_uninit_copyIPK6MatrixPS0_ET0_T_S5_S4_
.Ltmp57:
# %bb.6:                                # %_ZSt34__uninitialized_move_if_noexcept_aIP6MatrixS1_SaIS0_EET0_T_S4_S3_RT1_.exit33
	movq	%rax, %rbp
	movq	8(%rsp), %r12                   # 8-byte Reload
	cmpq	%r13, %r12
	je	.LBB4_9
# %bb.7:                                # %.lr.ph.i.i.i.preheader
	movq	%r12, %rbx
.LBB4_8:                                # %.lr.ph.i.i.i
                                        # =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_ZN6MatrixD1Ev
	addq	$32, %rbx
	cmpq	%r13, %rbx
	jne	.LBB4_8
.LBB4_9:                                # %_ZSt8_DestroyIP6MatrixS0_EvT_S2_RSaIT0_E.exit
	testq	%r12, %r12
	je	.LBB4_11
# %bb.10:
	movq	%r12, %rdi
	callq	_ZdlPv
.LBB4_11:                               # %_ZNSt12_Vector_baseI6MatrixSaIS0_EE13_M_deallocateEPS0_m.exit
	movq	(%rsp), %rax                    # 8-byte Reload
	movq	16(%rsp), %rcx                  # 8-byte Reload
	movq	%rax, (%rcx)
	movq	%rbp, 8(%rcx)
	shlq	$5, %r15
	addq	%rax, %r15
	movq	%r15, 16(%rcx)
	addq	$24, %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_14:                               # %.thread42
	.cfi_def_cfa_offset 80
.Ltmp58:
	movq	%rax, %rdi
	callq	__cxa_begin_catch
	jmp	.LBB4_15
.LBB4_25:                               # %.thread
.Ltmp55:
	movq	%rax, %rdi
	callq	__cxa_begin_catch
	jmp	.LBB4_13
.LBB4_12:
.Ltmp52:
	movq	%rax, %rdi
	callq	__cxa_begin_catch
	movq	%rbx, %r12
	testq	%rbx, %rbx
	jne	.LBB4_15
.LBB4_13:
	movq	%rbp, %rdi
	callq	_ZN6MatrixD1Ev
	jmp	.LBB4_18
.LBB4_15:
	cmpq	%r12, (%rsp)                    # 8-byte Folded Reload
	je	.LBB4_18
# %bb.16:                               # %.lr.ph.i.i.i29.preheader
	movq	(%rsp), %r14                    # 8-byte Reload
.LBB4_17:                               # %.lr.ph.i.i.i29
                                        # =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	callq	_ZN6MatrixD1Ev
	addq	$32, %r14
	cmpq	%r12, %r14
	jne	.LBB4_17
.LBB4_18:                               # %_ZSt8_DestroyIP6MatrixS0_EvT_S2_RSaIT0_E.exit32
	cmpq	$0, (%rsp)                      # 8-byte Folded Reload
	je	.LBB4_20
# %bb.19:
	movq	(%rsp), %rdi                    # 8-byte Reload
	callq	_ZdlPv
.LBB4_20:                               # %_ZNSt12_Vector_baseI6MatrixSaIS0_EE13_M_deallocateEPS0_m.exit36
.Ltmp59:
	callq	__cxa_rethrow
.Ltmp60:
# %bb.24:
.LBB4_21:
.Ltmp61:
	movq	%rax, %rbx
.Ltmp62:
	callq	__cxa_end_catch
.Ltmp63:
# %bb.22:
	movq	%rbx, %rdi
	callq	_Unwind_Resume@PLT
.LBB4_23:
.Ltmp64:
	movq	%rax, %rdi
	callq	__clang_call_terminate
.Lfunc_end4:
	.size	_ZNSt6vectorI6MatrixSaIS0_EE17_M_realloc_insertIJRKS0_EEEvN9__gnu_cxx17__normal_iteratorIPS0_S2_EEDpOT_, .Lfunc_end4-_ZNSt6vectorI6MatrixSaIS0_EE17_M_realloc_insertIJRKS0_EEEvN9__gnu_cxx17__normal_iteratorIPS0_S2_EEDpOT_
	.cfi_endproc
	.section	.gcc_except_table._ZNSt6vectorI6MatrixSaIS0_EE17_M_realloc_insertIJRKS0_EEEvN9__gnu_cxx17__normal_iteratorIPS0_S2_EEDpOT_,"aG",@progbits,_ZNSt6vectorI6MatrixSaIS0_EE17_M_realloc_insertIJRKS0_EEEvN9__gnu_cxx17__normal_iteratorIPS0_S2_EEDpOT_,comdat
	.p2align	2, 0x0
GCC_except_table4:
.Lexception1:
	.byte	255                             # @LPStart Encoding = omit
	.byte	3                               # @TType Encoding = udata4
	.uleb128 .Lttbase1-.Lttbaseref1
.Lttbaseref1:
	.byte	1                               # Call site Encoding = uleb128
	.uleb128 .Lcst_end1-.Lcst_begin1
.Lcst_begin1:
	.uleb128 .Lfunc_begin1-.Lfunc_begin1    # >> Call Site 1 <<
	.uleb128 .Ltmp50-.Lfunc_begin1          #   Call between .Lfunc_begin1 and .Ltmp50
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp50-.Lfunc_begin1          # >> Call Site 2 <<
	.uleb128 .Ltmp51-.Ltmp50                #   Call between .Ltmp50 and .Ltmp51
	.uleb128 .Ltmp52-.Lfunc_begin1          #     jumps to .Ltmp52
	.byte	1                               #   On action: 1
	.uleb128 .Ltmp53-.Lfunc_begin1          # >> Call Site 3 <<
	.uleb128 .Ltmp54-.Ltmp53                #   Call between .Ltmp53 and .Ltmp54
	.uleb128 .Ltmp55-.Lfunc_begin1          #     jumps to .Ltmp55
	.byte	1                               #   On action: 1
	.uleb128 .Ltmp56-.Lfunc_begin1          # >> Call Site 4 <<
	.uleb128 .Ltmp57-.Ltmp56                #   Call between .Ltmp56 and .Ltmp57
	.uleb128 .Ltmp58-.Lfunc_begin1          #     jumps to .Ltmp58
	.byte	1                               #   On action: 1
	.uleb128 .Ltmp57-.Lfunc_begin1          # >> Call Site 5 <<
	.uleb128 .Ltmp59-.Ltmp57                #   Call between .Ltmp57 and .Ltmp59
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp59-.Lfunc_begin1          # >> Call Site 6 <<
	.uleb128 .Ltmp60-.Ltmp59                #   Call between .Ltmp59 and .Ltmp60
	.uleb128 .Ltmp61-.Lfunc_begin1          #     jumps to .Ltmp61
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp62-.Lfunc_begin1          # >> Call Site 7 <<
	.uleb128 .Ltmp63-.Ltmp62                #   Call between .Ltmp62 and .Ltmp63
	.uleb128 .Ltmp64-.Lfunc_begin1          #     jumps to .Ltmp64
	.byte	1                               #   On action: 1
	.uleb128 .Ltmp63-.Lfunc_begin1          # >> Call Site 8 <<
	.uleb128 .Lfunc_end4-.Ltmp63            #   Call between .Ltmp63 and .Lfunc_end4
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
.Lcst_end1:
	.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._ZNKSt6vectorI6MatrixSaIS0_EE12_M_check_lenEmPKc,"axG",@progbits,_ZNKSt6vectorI6MatrixSaIS0_EE12_M_check_lenEmPKc,comdat
	.weak	_ZNKSt6vectorI6MatrixSaIS0_EE12_M_check_lenEmPKc # -- Begin function _ZNKSt6vectorI6MatrixSaIS0_EE12_M_check_lenEmPKc
	.p2align	1, 0x90
	.type	_ZNKSt6vectorI6MatrixSaIS0_EE12_M_check_lenEmPKc,@function
_ZNKSt6vectorI6MatrixSaIS0_EE12_M_check_lenEmPKc: # @_ZNKSt6vectorI6MatrixSaIS0_EE12_M_check_lenEmPKc
	.cfi_startproc
# %bb.0:
	movabsq	$288230376151711743, %rcx       # imm = 0x3FFFFFFFFFFFFFF
	movq	8(%rdi), %r8
	subq	(%rdi), %r8
	sarq	$5, %r8
	movq	%rcx, %rax
	subq	%r8, %rax
	cmpq	%rsi, %rax
	jb	.LBB5_2
# %bb.1:
	cmpq	%rsi, %r8
	cmovaq	%r8, %rsi
	leaq	(%rsi,%r8), %rax
	cmpq	%rcx, %rax
	cmovaeq	%rcx, %rax
	addq	%r8, %rsi
	cmovbq	%rcx, %rax
	retq
.LBB5_2:
	pushq	%rax
	.cfi_def_cfa_offset 16
	movq	%rdx, %rdi
	callq	_ZSt20__throw_length_errorPKc
.Lfunc_end5:
	.size	_ZNKSt6vectorI6MatrixSaIS0_EE12_M_check_lenEmPKc, .Lfunc_end5-_ZNKSt6vectorI6MatrixSaIS0_EE12_M_check_lenEmPKc
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt15__new_allocatorI6MatrixE8allocateEmPKv,"axG",@progbits,_ZNSt15__new_allocatorI6MatrixE8allocateEmPKv,comdat
	.weak	_ZNSt15__new_allocatorI6MatrixE8allocateEmPKv # -- Begin function _ZNSt15__new_allocatorI6MatrixE8allocateEmPKv
	.p2align	1, 0x90
	.type	_ZNSt15__new_allocatorI6MatrixE8allocateEmPKv,@function
_ZNSt15__new_allocatorI6MatrixE8allocateEmPKv: # @_ZNSt15__new_allocatorI6MatrixE8allocateEmPKv
	.cfi_startproc
# %bb.0:
	pushq	%rax
	.cfi_def_cfa_offset 16
	movq	%rsi, %rax
	shrq	$58, %rax
	jne	.LBB6_1
# %bb.3:
	shlq	$5, %rsi
	movq	%rsi, %rdi
	popq	%rax
	.cfi_def_cfa_offset 8
	jmp	_Znwm                           # TAILCALL
.LBB6_1:
	.cfi_def_cfa_offset 16
	shrq	$59, %rsi
	je	.LBB6_2
# %bb.4:
	callq	_ZSt28__throw_bad_array_new_lengthv
.LBB6_2:
	callq	_ZSt17__throw_bad_allocv
.Lfunc_end6:
	.size	_ZNSt15__new_allocatorI6MatrixE8allocateEmPKv, .Lfunc_end6-_ZNSt15__new_allocatorI6MatrixE8allocateEmPKv
	.cfi_endproc
                                        # -- End function
	.section	.text._ZSt16__do_uninit_copyIPK6MatrixPS0_ET0_T_S5_S4_,"axG",@progbits,_ZSt16__do_uninit_copyIPK6MatrixPS0_ET0_T_S5_S4_,comdat
	.weak	_ZSt16__do_uninit_copyIPK6MatrixPS0_ET0_T_S5_S4_ # -- Begin function _ZSt16__do_uninit_copyIPK6MatrixPS0_ET0_T_S5_S4_
	.type	_ZSt16__do_uninit_copyIPK6MatrixPS0_ET0_T_S5_S4_,@function
_ZSt16__do_uninit_copyIPK6MatrixPS0_ET0_T_S5_S4_: # @_ZSt16__do_uninit_copyIPK6MatrixPS0_ET0_T_S5_S4_
.Lfunc_begin2:
	.cfi_startproc
	.cfi_personality 3, __gxx_personality_v0
	.cfi_lsda 3, .Lexception2
# %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, %rbx
	cmpq	%rsi, %rdi
	je	.LBB7_5
# %bb.1:                                # %.lr.ph.preheader
	movq	%rsi, %r14
	movq	%rdi, %r15
	xorl	%r12d, %r12d
.LBB7_2:                                # %.lr.ph
                                        # =>This Inner Loop Header: Depth=1
	leaq	(%rbx,%r12), %rdi
	leaq	(%r15,%r12), %rsi
.Ltmp65:
	callq	_ZN6MatrixC1ERKS_
.Ltmp66:
# %bb.3:                                # %_ZSt10_ConstructI6MatrixJRKS0_EEvPT_DpOT0_.exit
                                        #   in Loop: Header=BB7_2 Depth=1
	leaq	(%r15,%r12), %rax
	addq	$32, %rax
	addq	$32, %r12
	cmpq	%r14, %rax
	jne	.LBB7_2
# %bb.4:                                # %._crit_edge.loopexit
	addq	%r12, %rbx
.LBB7_5:                                # %._crit_edge
	movq	%rbx, %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
.LBB7_6:
	.cfi_def_cfa_offset 48
.Ltmp67:
	movq	%rax, %rdi
	callq	__cxa_begin_catch
	testq	%r12, %r12
	je	.LBB7_8
.LBB7_7:                                # %.lr.ph.i.i
                                        # =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_ZN6MatrixD1Ev
	addq	$32, %rbx
	addq	$-32, %r12
	jne	.LBB7_7
.LBB7_8:                                # %_ZSt8_DestroyIP6MatrixEvT_S2_.exit
.Ltmp68:
	callq	__cxa_rethrow
.Ltmp69:
# %bb.12:
.LBB7_9:
.Ltmp70:
	movq	%rax, %rbx
.Ltmp71:
	callq	__cxa_end_catch
.Ltmp72:
# %bb.10:
	movq	%rbx, %rdi
	callq	_Unwind_Resume@PLT
.LBB7_11:
.Ltmp73:
	movq	%rax, %rdi
	callq	__clang_call_terminate
.Lfunc_end7:
	.size	_ZSt16__do_uninit_copyIPK6MatrixPS0_ET0_T_S5_S4_, .Lfunc_end7-_ZSt16__do_uninit_copyIPK6MatrixPS0_ET0_T_S5_S4_
	.cfi_endproc
	.section	.gcc_except_table._ZSt16__do_uninit_copyIPK6MatrixPS0_ET0_T_S5_S4_,"aG",@progbits,_ZSt16__do_uninit_copyIPK6MatrixPS0_ET0_T_S5_S4_,comdat
	.p2align	2, 0x0
GCC_except_table7:
.Lexception2:
	.byte	255                             # @LPStart Encoding = omit
	.byte	3                               # @TType Encoding = udata4
	.uleb128 .Lttbase2-.Lttbaseref2
.Lttbaseref2:
	.byte	1                               # Call site Encoding = uleb128
	.uleb128 .Lcst_end2-.Lcst_begin2
.Lcst_begin2:
	.uleb128 .Ltmp65-.Lfunc_begin2          # >> Call Site 1 <<
	.uleb128 .Ltmp66-.Ltmp65                #   Call between .Ltmp65 and .Ltmp66
	.uleb128 .Ltmp67-.Lfunc_begin2          #     jumps to .Ltmp67
	.byte	1                               #   On action: 1
	.uleb128 .Ltmp66-.Lfunc_begin2          # >> Call Site 2 <<
	.uleb128 .Ltmp68-.Ltmp66                #   Call between .Ltmp66 and .Ltmp68
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp68-.Lfunc_begin2          # >> Call Site 3 <<
	.uleb128 .Ltmp69-.Ltmp68                #   Call between .Ltmp68 and .Ltmp69
	.uleb128 .Ltmp70-.Lfunc_begin2          #     jumps to .Ltmp70
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp71-.Lfunc_begin2          # >> Call Site 4 <<
	.uleb128 .Ltmp72-.Ltmp71                #   Call between .Ltmp71 and .Ltmp72
	.uleb128 .Ltmp73-.Lfunc_begin2          #     jumps to .Ltmp73
	.byte	1                               #   On action: 1
	.uleb128 .Ltmp72-.Lfunc_begin2          # >> Call Site 5 <<
	.uleb128 .Lfunc_end7-.Ltmp72            #   Call between .Ltmp72 and .Lfunc_end7
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
.Lcst_end2:
	.byte	1                               # >> Action Record 1 <<
                                        #   Catch TypeInfo 1
	.byte	0                               #   No further actions
	.p2align	2, 0x0
                                        # >> Catch TypeInfos <<
	.long	0                               # TypeInfo 1
.Lttbase2:
	.p2align	2, 0x0
                                        # -- End function
	.type	.L.str,@object                  # @.str
	.section	.rodata.str1.1,"aMS",@progbits,1
.L.str:
	.asciz	"\n"
	.size	.L.str, 2

	.type	.L.str.1,@object                # @.str.1
.L.str.1:
	.asciz	"vector::_M_realloc_insert"
	.size	.L.str.1, 26

	.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 _ZN6losses8func_mseERK6MatrixS2_
	.addrsig_sym _ZN6losses9deriv_mseERK6MatrixS2_
	.addrsig_sym _Unwind_Resume
	.addrsig_sym _ZTIPKc
	.addrsig_sym _ZSt4cout
	.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
