#include "mat-mul-add.hh"
#include <cassert>
#include <stdexcept>
#include "graph.hh"
#include "mat-mat-mul.hh"
#include "mat-sum.hh"
#include "ops-builder.hh"
#include "../runtime/node.hh"
#include "../memory/alloc.hh"

namespace ops
{

    MatMulAdd::MatMulAdd(Op* x, Op* w, Op* b)
        : Op("mat_mul_add",
             Shape({x->shape_get()[0], w->shape_get()[1]}), {x, w, b})
    {}

    void MatMulAdd::compile()
    {
        auto& g = Graph::instance();

        auto& cx = g.compiled(preds()[0]);
        auto& cw = g.compiled(preds()[1]);
        auto& cb = g.compiled(preds()[2]);

        std::size_t rows = cx.out_shape[0];
        std::size_t cols = cx.out_shape[1];
        std::size_t out_cols = cw.out_shape[1]; 
        Shape out_shape ({int(rows), int(out_cols)});
        dbl_t* out_data = tensor_alloc(out_shape.total());

        auto out_node = rt::Node::op_mat_mul_add(cx.out_data, cw.out_data, cb.out_data, out_data,
                                                 rows, cols, out_cols,
                                                 {cx.out_node, cw.out_node, cb.out_node});

        g.add_compiled(this, {out_node}, {out_data}, out_node, out_shape, out_data);
    }


    Op* MatMulAdd::child_grad(std::size_t index, Op* dout)
    {
        assert(index < 3);

        if (dout == nullptr)
            throw std::runtime_error {"MatMullAdd can't be the final node of the gradient"};


        auto& builder = OpsBuilder::instance();
        auto x = preds()[0];
        auto w = preds()[1];
        auto b = preds()[2];
        (void) b;

        // dC/dx
        if (index == 0)
            return builder.mat_mat_mul(dout, w, false, true);

        // dC/dw
        else if (index == 1)
            return builder.mat_mat_mul(x, dout, true, false);

        // dC/db
        else
            return builder.mat_sum(dout, 0);
    }
    
}

	.file	"tmpxft_00219dee_00000000-6_mat-mul-add.cudafe1.cpp"
	.text
#APP
	.globl _ZSt21ios_base_library_initv

#NO_APP
	.type	_ZL26__cudaUnregisterBinaryUtilv, @function
_ZL26__cudaUnregisterBinaryUtilv:
.LFB4587:
	.cfi_startproc
	endbr64
	movq	_ZL20__cudaFatCubinHandle(%rip), %rdi
	jmp	__cudaUnregisterFatBinary@PLT
	.cfi_endproc
.LFE4587:
	.size	_ZL26__cudaUnregisterBinaryUtilv, .-_ZL26__cudaUnregisterBinaryUtilv
	.align 2
	.type	_ZNSt12_Vector_baseIPN3ops2OpESaIS2_EE11_M_allocateEm.part.0.isra.0, @function
_ZNSt12_Vector_baseIPN3ops2OpESaIS2_EE11_M_allocateEm.part.0.isra.0:
.LFB5641:
	.cfi_startproc
	movabsq	$1152921504606846975, %rax
	cmpq	%rdi, %rax
	jnb	.L3
	pushq	%rax
	.cfi_def_cfa_offset 16
	movabsq	$2305843009213693951, %rax
	cmpq	%rdi, %rax
	jnb	.L4
	call	_ZSt28__throw_bad_array_new_lengthv@PLT
.L4:
	call	_ZSt17__throw_bad_allocv@PLT
.L3:
	.cfi_def_cfa_offset 8
	salq	$3, %rdi
	jmp	_Znwm@PLT
	.cfi_endproc
.LFE5641:
	.size	_ZNSt12_Vector_baseIPN3ops2OpESaIS2_EE11_M_allocateEm.part.0.isra.0, .-_ZNSt12_Vector_baseIPN3ops2OpESaIS2_EE11_M_allocateEm.part.0.isra.0
	.section	.text.startup,"ax",@progbits
	.type	_ZL24__sti____cudaRegisterAllv, @function
_ZL24__sti____cudaRegisterAllv:
.LFB4610:
	.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
.LFE4610:
	.size	_ZL24__sti____cudaRegisterAllv, .-_ZL24__sti____cudaRegisterAllv
	.section	.init_array,"aw"
	.align 8
	.quad	_ZL24__sti____cudaRegisterAllv
	.section	.text._ZNSt12_Vector_baseIPN3ops2OpESaIS2_EED2Ev,"axG",@progbits,_ZNSt12_Vector_baseIPN3ops2OpESaIS2_EED5Ev,comdat
	.align 2
	.weak	_ZNSt12_Vector_baseIPN3ops2OpESaIS2_EED2Ev
	.type	_ZNSt12_Vector_baseIPN3ops2OpESaIS2_EED2Ev, @function
_ZNSt12_Vector_baseIPN3ops2OpESaIS2_EED2Ev:
.LFB4966:
	.cfi_startproc
	endbr64
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	.L11
	movq	16(%rdi), %rsi
	movq	%rax, %rdi
	subq	%rax, %rsi
	jmp	_ZdlPvm@PLT
.L11:
	ret
	.cfi_endproc
.LFE4966:
	.size	_ZNSt12_Vector_baseIPN3ops2OpESaIS2_EED2Ev, .-_ZNSt12_Vector_baseIPN3ops2OpESaIS2_EED2Ev
	.weak	_ZNSt12_Vector_baseIPN3ops2OpESaIS2_EED1Ev
	.set	_ZNSt12_Vector_baseIPN3ops2OpESaIS2_EED1Ev,_ZNSt12_Vector_baseIPN3ops2OpESaIS2_EED2Ev
	.section	.text._ZNSt6vectorIPN3ops2OpESaIS2_EED2Ev,"axG",@progbits,_ZNSt6vectorIPN3ops2OpESaIS2_EED5Ev,comdat
	.align 2
	.weak	_ZNSt6vectorIPN3ops2OpESaIS2_EED2Ev
	.type	_ZNSt6vectorIPN3ops2OpESaIS2_EED2Ev, @function
_ZNSt6vectorIPN3ops2OpESaIS2_EED2Ev:
.LFB4960:
	.cfi_startproc
	endbr64
	jmp	_ZNSt12_Vector_baseIPN3ops2OpESaIS2_EED2Ev
	.cfi_endproc
.LFE4960:
	.size	_ZNSt6vectorIPN3ops2OpESaIS2_EED2Ev, .-_ZNSt6vectorIPN3ops2OpESaIS2_EED2Ev
	.weak	_ZNSt6vectorIPN3ops2OpESaIS2_EED1Ev
	.set	_ZNSt6vectorIPN3ops2OpESaIS2_EED1Ev,_ZNSt6vectorIPN3ops2OpESaIS2_EED2Ev
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"MatMullAdd can't be the final node of the gradient"
	.text
	.align 2
	.globl	_ZN3ops9MatMulAdd10child_gradEmPNS_2OpE
	.type	_ZN3ops9MatMulAdd10child_gradEmPNS_2OpE, @function
_ZN3ops9MatMulAdd10child_gradEmPNS_2OpE:
.LFB4584:
	.cfi_startproc
	.cfi_personality 0x9b,DW.ref.__gxx_personality_v0
	.cfi_lsda 0x1b,.LLSDA4584
	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	$56, %rsp
	.cfi_def_cfa_offset 112
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	testq	%rdx, %rdx
	jne	.L15
	movl	$16, %edi
	call	__cxa_allocate_exception@PLT
	leaq	.LC0(%rip), %rsi
	movq	%rax, %rdi
	movq	%rax, %rbx
.LEHB0:
	call	_ZNSt13runtime_errorC1EPKc@PLT
.LEHE0:
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L29
	movq	_ZNSt13runtime_errorD1Ev@GOTPCREL(%rip), %rdx
	leaq	_ZTISt13runtime_error(%rip), %rsi
	movq	%rbx, %rdi
.LEHB1:
	call	__cxa_throw@PLT
.L15:
	leaq	16(%rsp), %rbp
	movq	%rdi, %r13
	movq	%rdx, %rbx
	movq	%rsi, %r14
	call	_ZN3ops10OpsBuilder8instanceEv@PLT
	movq	%r13, %rsi
	movq	%rbp, %rdi
	movq	%rax, %r12
	call	_ZN3ops2Op5predsEv@PLT
	movq	16(%rsp), %rax
	movq	%rbp, %rdi
	movq	(%rax), %r15
	call	_ZNSt6vectorIPN3ops2OpESaIS2_EED1Ev
	movq	%r13, %rsi
	movq	%rbp, %rdi
	call	_ZN3ops2Op5predsEv@PLT
	movq	16(%rsp), %rax
	movq	%rbp, %rdi
	movq	8(%rax), %rdx
	movq	%rdx, 8(%rsp)
	call	_ZNSt6vectorIPN3ops2OpESaIS2_EED1Ev
	movq	%r13, %rsi
	movq	%rbp, %rdi
	call	_ZN3ops2Op5predsEv@PLT
	movq	%rbp, %rdi
	call	_ZNSt6vectorIPN3ops2OpESaIS2_EED1Ev
	testq	%r14, %r14
	movq	8(%rsp), %rdx
	jne	.L17
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L29
	movl	$1, %r8d
	xorl	%ecx, %ecx
	movq	%rbx, %rsi
	jmp	.L27
.L17:
	decq	%r14
	jne	.L19
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L29
	xorl	%r8d, %r8d
	movl	$1, %ecx
	movq	%rbx, %rdx
	movq	%r15, %rsi
.L27:
	addq	$56, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	movq	%r12, %rdi
	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
	jmp	_ZN3ops10OpsBuilder11mat_mat_mulEPNS_2OpES2_bb@PLT
.L19:
	.cfi_restore_state
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L29
	addq	$56, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	movq	%rbx, %rsi
	movq	%r12, %rdi
	xorl	%edx, %edx
	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
	jmp	_ZN3ops10OpsBuilder7mat_sumEPNS_2OpEm@PLT
.L25:
	.cfi_restore_state
	endbr64
	movq	%rax, %rbp
.L22:
	movq	%rbx, %rdi
	call	__cxa_free_exception@PLT
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	je	.L23
.L29:
	call	__stack_chk_fail@PLT
.L23:
	movq	%rbp, %rdi
	call	_Unwind_Resume@PLT
.LEHE1:
	.cfi_endproc
.LFE4584:
	.globl	__gxx_personality_v0
	.section	.gcc_except_table,"a",@progbits
.LLSDA4584:
	.byte	0xff
	.byte	0xff
	.byte	0x1
	.uleb128 .LLSDACSE4584-.LLSDACSB4584
.LLSDACSB4584:
	.uleb128 .LEHB0-.LFB4584
	.uleb128 .LEHE0-.LEHB0
	.uleb128 .L25-.LFB4584
	.uleb128 0
	.uleb128 .LEHB1-.LFB4584
	.uleb128 .LEHE1-.LEHB1
	.uleb128 0
	.uleb128 0
.LLSDACSE4584:
	.text
	.size	_ZN3ops9MatMulAdd10child_gradEmPNS_2OpE, .-_ZN3ops9MatMulAdd10child_gradEmPNS_2OpE
	.section	.text._ZNSt12_Vector_baseIPN2rt4NodeESaIS2_EED2Ev,"axG",@progbits,_ZNSt12_Vector_baseIPN2rt4NodeESaIS2_EED5Ev,comdat
	.align 2
	.weak	_ZNSt12_Vector_baseIPN2rt4NodeESaIS2_EED2Ev
	.type	_ZNSt12_Vector_baseIPN2rt4NodeESaIS2_EED2Ev, @function
_ZNSt12_Vector_baseIPN2rt4NodeESaIS2_EED2Ev:
.LFB5140:
	.cfi_startproc
	endbr64
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	.L30
	movq	16(%rdi), %rsi
	movq	%rax, %rdi
	subq	%rax, %rsi
	jmp	_ZdlPvm@PLT
.L30:
	ret
	.cfi_endproc
.LFE5140:
	.size	_ZNSt12_Vector_baseIPN2rt4NodeESaIS2_EED2Ev, .-_ZNSt12_Vector_baseIPN2rt4NodeESaIS2_EED2Ev
	.weak	_ZNSt12_Vector_baseIPN2rt4NodeESaIS2_EED1Ev
	.set	_ZNSt12_Vector_baseIPN2rt4NodeESaIS2_EED1Ev,_ZNSt12_Vector_baseIPN2rt4NodeESaIS2_EED2Ev
	.section	.rodata._ZNSt6vectorIPN2rt4NodeESaIS2_EEC2ESt16initializer_listIS2_ERKS3_.str1.1,"aMS",@progbits,1
.LC1:
	.string	"cannot create std::vector larger than max_size()"
	.section	.text._ZNSt6vectorIPN2rt4NodeESaIS2_EEC2ESt16initializer_listIS2_ERKS3_,"axG",@progbits,_ZNSt6vectorIPN2rt4NodeESaIS2_EEC5ESt16initializer_listIS2_ERKS3_,comdat
	.align 2
	.weak	_ZNSt6vectorIPN2rt4NodeESaIS2_EEC2ESt16initializer_listIS2_ERKS3_
	.type	_ZNSt6vectorIPN2rt4NodeESaIS2_EEC2ESt16initializer_listIS2_ERKS3_, @function
_ZNSt6vectorIPN2rt4NodeESaIS2_EEC2ESt16initializer_listIS2_ERKS3_:
.LFB4978:
	.cfi_startproc
	.cfi_personality 0x9b,DW.ref.__gxx_personality_v0
	.cfi_lsda 0x1b,.LLSDA4978
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	xorl	%eax, %eax
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	movq	%rdi, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	leaq	0(,%rdx,8), %rbx
	movq	%rax, (%rdi)
	movq	%rax, 8(%rdi)
	movq	%rax, 16(%rdi)
	movq	%rbx, %rdi
	movabsq	$9223372036854775800, %rax
	sarq	$3, %rdi
	cmpq	%rbx, %rax
	jnb	.L33
	leaq	.LC1(%rip), %rdi
.LEHB2:
	call	_ZSt20__throw_length_errorPKc@PLT
.L33:
	movq	%rsi, %r12
	testq	%rdi, %rdi
	je	.L38
	call	_ZNSt12_Vector_baseIPN3ops2OpESaIS2_EE11_M_allocateEm.part.0.isra.0
.LEHE2:
	jmp	.L34
.L38:
	xorl	%eax, %eax
.L34:
	leaq	(%rax,%rbx), %rdx
	movq	%rax, 0(%rbp)
	movq	%rdx, 16(%rbp)
	cmpq	$8, %rbx
	jle	.L35
	movq	%rax, %rdi
	movq	%r12, %rsi
	movq	%rbx, %rcx
	rep movsb
	jmp	.L36
.L35:
	jne	.L36
	movq	(%r12), %rcx
	movq	%rcx, (%rax)
.L36:
	movq	%rdx, 8(%rbp)
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
.L39:
	.cfi_restore_state
	endbr64
	movq	%rax, %rbx
.L37:
	movq	%rbp, %rdi
	call	_ZNSt12_Vector_baseIPN2rt4NodeESaIS2_EED2Ev
	movq	%rbx, %rdi
.LEHB3:
	call	_Unwind_Resume@PLT
.LEHE3:
	.cfi_endproc
.LFE4978:
	.section	.gcc_except_table
.LLSDA4978:
	.byte	0xff
	.byte	0xff
	.byte	0x1
	.uleb128 .LLSDACSE4978-.LLSDACSB4978
.LLSDACSB4978:
	.uleb128 .LEHB2-.LFB4978
	.uleb128 .LEHE2-.LEHB2
	.uleb128 .L39-.LFB4978
	.uleb128 0
	.uleb128 .LEHB3-.LFB4978
	.uleb128 .LEHE3-.LEHB3
	.uleb128 0
	.uleb128 0
.LLSDACSE4978:
	.section	.text._ZNSt6vectorIPN2rt4NodeESaIS2_EEC2ESt16initializer_listIS2_ERKS3_,"axG",@progbits,_ZNSt6vectorIPN2rt4NodeESaIS2_EEC5ESt16initializer_listIS2_ERKS3_,comdat
	.size	_ZNSt6vectorIPN2rt4NodeESaIS2_EEC2ESt16initializer_listIS2_ERKS3_, .-_ZNSt6vectorIPN2rt4NodeESaIS2_EEC2ESt16initializer_listIS2_ERKS3_
	.weak	_ZNSt6vectorIPN2rt4NodeESaIS2_EEC1ESt16initializer_listIS2_ERKS3_
	.set	_ZNSt6vectorIPN2rt4NodeESaIS2_EEC1ESt16initializer_listIS2_ERKS3_,_ZNSt6vectorIPN2rt4NodeESaIS2_EEC2ESt16initializer_listIS2_ERKS3_
	.section	.text._ZNSt12_Vector_baseIPfSaIS0_EED2Ev,"axG",@progbits,_ZNSt12_Vector_baseIPfSaIS0_EED5Ev,comdat
	.align 2
	.weak	_ZNSt12_Vector_baseIPfSaIS0_EED2Ev
	.type	_ZNSt12_Vector_baseIPfSaIS0_EED2Ev, @function
_ZNSt12_Vector_baseIPfSaIS0_EED2Ev:
.LFB5157:
	.cfi_startproc
	endbr64
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	.L42
	movq	16(%rdi), %rsi
	movq	%rax, %rdi
	subq	%rax, %rsi
	jmp	_ZdlPvm@PLT
.L42:
	ret
	.cfi_endproc
.LFE5157:
	.size	_ZNSt12_Vector_baseIPfSaIS0_EED2Ev, .-_ZNSt12_Vector_baseIPfSaIS0_EED2Ev
	.weak	_ZNSt12_Vector_baseIPfSaIS0_EED1Ev
	.set	_ZNSt12_Vector_baseIPfSaIS0_EED1Ev,_ZNSt12_Vector_baseIPfSaIS0_EED2Ev
	.section	.text._ZNSt12_Vector_baseIiSaIiEED2Ev,"axG",@progbits,_ZNSt12_Vector_baseIiSaIiEED5Ev,comdat
	.align 2
	.weak	_ZNSt12_Vector_baseIiSaIiEED2Ev
	.type	_ZNSt12_Vector_baseIiSaIiEED2Ev, @function
_ZNSt12_Vector_baseIiSaIiEED2Ev:
.LFB5174:
	.cfi_startproc
	endbr64
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	.L44
	movq	16(%rdi), %rsi
	movq	%rax, %rdi
	subq	%rax, %rsi
	jmp	_ZdlPvm@PLT
.L44:
	ret
	.cfi_endproc
.LFE5174:
	.size	_ZNSt12_Vector_baseIiSaIiEED2Ev, .-_ZNSt12_Vector_baseIiSaIiEED2Ev
	.weak	_ZNSt12_Vector_baseIiSaIiEED1Ev
	.set	_ZNSt12_Vector_baseIiSaIiEED1Ev,_ZNSt12_Vector_baseIiSaIiEED2Ev
	.section	.text._ZNSt6vectorIiSaIiEED2Ev,"axG",@progbits,_ZNSt6vectorIiSaIiEED5Ev,comdat
	.align 2
	.weak	_ZNSt6vectorIiSaIiEED2Ev
	.type	_ZNSt6vectorIiSaIiEED2Ev, @function
_ZNSt6vectorIiSaIiEED2Ev:
.LFB4926:
	.cfi_startproc
	endbr64
	jmp	_ZNSt12_Vector_baseIiSaIiEED2Ev
	.cfi_endproc
.LFE4926:
	.size	_ZNSt6vectorIiSaIiEED2Ev, .-_ZNSt6vectorIiSaIiEED2Ev
	.weak	_ZNSt6vectorIiSaIiEED1Ev
	.set	_ZNSt6vectorIiSaIiEED1Ev,_ZNSt6vectorIiSaIiEED2Ev
	.section	.text._ZN3ops2OpD2Ev,"axG",@progbits,_ZN3ops2OpD5Ev,comdat
	.align 2
	.weak	_ZN3ops2OpD2Ev
	.type	_ZN3ops2OpD2Ev, @function
_ZN3ops2OpD2Ev:
.LFB4578:
	.cfi_startproc
	endbr64
	leaq	16+_ZTVN3ops2OpE(%rip), %rax
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	movq	%rdi, %rbx
	leaq	88(%rdi), %rdi
	movq	%rax, -88(%rdi)
	call	_ZNSt6vectorIPN3ops2OpESaIS2_EED1Ev
	leaq	64(%rbx), %rdi
	call	_ZNSt6vectorIPN3ops2OpESaIS2_EED1Ev
	leaq	40(%rbx), %rdi
	call	_ZNSt6vectorIiSaIiEED1Ev
	leaq	8(%rbx), %rdi
	popq	%rbx
	.cfi_def_cfa_offset 8
	jmp	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	.cfi_endproc
.LFE4578:
	.size	_ZN3ops2OpD2Ev, .-_ZN3ops2OpD2Ev
	.weak	_ZN3ops2OpD1Ev
	.set	_ZN3ops2OpD1Ev,_ZN3ops2OpD2Ev
	.section	.text._ZN3ops2OpD0Ev,"axG",@progbits,_ZN3ops2OpD5Ev,comdat
	.align 2
	.weak	_ZN3ops2OpD0Ev
	.type	_ZN3ops2OpD0Ev, @function
_ZN3ops2OpD0Ev:
.LFB4580:
	.cfi_startproc
	endbr64
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	movq	%rdi, 8(%rsp)
	call	_ZN3ops2OpD1Ev
	movq	8(%rsp), %rdi
	movl	$112, %esi
	addq	$24, %rsp
	.cfi_def_cfa_offset 8
	jmp	_ZdlPvm@PLT
	.cfi_endproc
.LFE4580:
	.size	_ZN3ops2OpD0Ev, .-_ZN3ops2OpD0Ev
	.section	.text._ZN3ops9MatMulAddD2Ev,"axG",@progbits,_ZN3ops9MatMulAddD5Ev,comdat
	.align 2
	.weak	_ZN3ops9MatMulAddD2Ev
	.type	_ZN3ops9MatMulAddD2Ev, @function
_ZN3ops9MatMulAddD2Ev:
.LFB5629:
	.cfi_startproc
	endbr64
	leaq	16+_ZTVN3ops9MatMulAddE(%rip), %rax
	movq	%rax, (%rdi)
	jmp	_ZN3ops2OpD2Ev
	.cfi_endproc
.LFE5629:
	.size	_ZN3ops9MatMulAddD2Ev, .-_ZN3ops9MatMulAddD2Ev
	.weak	_ZN3ops9MatMulAddD1Ev
	.set	_ZN3ops9MatMulAddD1Ev,_ZN3ops9MatMulAddD2Ev
	.section	.text._ZN3ops9MatMulAddD0Ev,"axG",@progbits,_ZN3ops9MatMulAddD5Ev,comdat
	.align 2
	.weak	_ZN3ops9MatMulAddD0Ev
	.type	_ZN3ops9MatMulAddD0Ev, @function
_ZN3ops9MatMulAddD0Ev:
.LFB5631:
	.cfi_startproc
	endbr64
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	movq	%rdi, 8(%rsp)
	call	_ZN3ops9MatMulAddD1Ev
	movq	8(%rsp), %rdi
	movl	$112, %esi
	addq	$24, %rsp
	.cfi_def_cfa_offset 8
	jmp	_ZdlPvm@PLT
	.cfi_endproc
.LFE5631:
	.size	_ZN3ops9MatMulAddD0Ev, .-_ZN3ops9MatMulAddD0Ev
	.section	.text._ZNSt6vectorIiSaIiEEC2ESt16initializer_listIiERKS0_,"axG",@progbits,_ZNSt6vectorIiSaIiEEC5ESt16initializer_listIiERKS0_,comdat
	.align 2
	.weak	_ZNSt6vectorIiSaIiEEC2ESt16initializer_listIiERKS0_
	.type	_ZNSt6vectorIiSaIiEEC2ESt16initializer_listIiERKS0_, @function
_ZNSt6vectorIiSaIiEEC2ESt16initializer_listIiERKS0_:
.LFB4943:
	.cfi_startproc
	.cfi_personality 0x9b,DW.ref.__gxx_personality_v0
	.cfi_lsda 0x1b,.LLSDA4943
	endbr64
	xorl	%eax, %eax
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	movq	%rdi, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	leaq	0(,%rdx,4), %rbx
	movq	%rax, (%rdi)
	movq	%rax, 8(%rdi)
	movq	%rax, 16(%rdi)
	movabsq	$9223372036854775804, %rax
	cmpq	%rbx, %rax
	jnb	.L55
	leaq	.LC1(%rip), %rdi
.LEHB4:
	call	_ZSt20__throw_length_errorPKc@PLT
.L55:
	movq	%rsi, %r12
	testq	%rbx, %rbx
	je	.L60
	movq	%rbx, %rdi
	call	_Znwm@PLT
.LEHE4:
	jmp	.L56
.L60:
	xorl	%eax, %eax
.L56:
	leaq	(%rax,%rbx), %rdx
	movq	%rax, 0(%rbp)
	movq	%rdx, 16(%rbp)
	cmpq	$4, %rbx
	jle	.L57
	movq	%rax, %rdi
	movq	%r12, %rsi
	movq	%rbx, %rcx
	rep movsb
	jmp	.L58
.L57:
	jne	.L58
	movl	(%r12), %ecx
	movl	%ecx, (%rax)
.L58:
	movq	%rdx, 8(%rbp)
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
.L61:
	.cfi_restore_state
	endbr64
	movq	%rax, %rbx
.L59:
	movq	%rbp, %rdi
	call	_ZNSt12_Vector_baseIiSaIiEED2Ev
	movq	%rbx, %rdi
.LEHB5:
	call	_Unwind_Resume@PLT
.LEHE5:
	.cfi_endproc
.LFE4943:
	.section	.gcc_except_table
.LLSDA4943:
	.byte	0xff
	.byte	0xff
	.byte	0x1
	.uleb128 .LLSDACSE4943-.LLSDACSB4943
.LLSDACSB4943:
	.uleb128 .LEHB4-.LFB4943
	.uleb128 .LEHE4-.LEHB4
	.uleb128 .L61-.LFB4943
	.uleb128 0
	.uleb128 .LEHB5-.LFB4943
	.uleb128 .LEHE5-.LEHB5
	.uleb128 0
	.uleb128 0
.LLSDACSE4943:
	.section	.text._ZNSt6vectorIiSaIiEEC2ESt16initializer_listIiERKS0_,"axG",@progbits,_ZNSt6vectorIiSaIiEEC5ESt16initializer_listIiERKS0_,comdat
	.size	_ZNSt6vectorIiSaIiEEC2ESt16initializer_listIiERKS0_, .-_ZNSt6vectorIiSaIiEEC2ESt16initializer_listIiERKS0_
	.weak	_ZNSt6vectorIiSaIiEEC1ESt16initializer_listIiERKS0_
	.set	_ZNSt6vectorIiSaIiEEC1ESt16initializer_listIiERKS0_,_ZNSt6vectorIiSaIiEEC2ESt16initializer_listIiERKS0_
	.text
	.align 2
	.globl	_ZN3ops9MatMulAdd7compileEv
	.type	_ZN3ops9MatMulAdd7compileEv, @function
_ZN3ops9MatMulAdd7compileEv:
.LFB4583:
	.cfi_startproc
	.cfi_personality 0x9b,DW.ref.__gxx_personality_v0
	.cfi_lsda 0x1b,.LLSDA4583
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	leaq	-104(%rbp), %r15
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$184, %rsp
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%rdi, -184(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
.LEHB6:
	call	_ZN3ops5Graph8instanceEv@PLT
	movq	-184(%rbp), %rsi
	movq	%r15, %rdi
	movq	%rax, -176(%rbp)
	call	_ZN3ops2Op5predsEv@PLT
.LEHE6:
	movq	-104(%rbp), %rax
	movq	-176(%rbp), %rdi
	movq	(%rax), %rsi
.LEHB7:
	call	_ZN3ops5Graph8compiledEPNS_2OpE@PLT
.LEHE7:
	movq	%r15, %rdi
	movq	%rax, -192(%rbp)
	call	_ZNSt6vectorIPN3ops2OpESaIS2_EED1Ev
	movq	-184(%rbp), %rsi
	movq	%r15, %rdi
.LEHB8:
	call	_ZN3ops2Op5predsEv@PLT
.LEHE8:
	movq	-104(%rbp), %rax
	movq	-176(%rbp), %rdi
	movq	8(%rax), %rsi
.LEHB9:
	call	_ZN3ops5Graph8compiledEPNS_2OpE@PLT
.LEHE9:
	movq	%r15, %rdi
	movq	%rax, %r12
	call	_ZNSt6vectorIPN3ops2OpESaIS2_EED1Ev
	movq	-184(%rbp), %rsi
	movq	%r15, %rdi
.LEHB10:
	call	_ZN3ops2Op5predsEv@PLT
.LEHE10:
	movq	-104(%rbp), %rax
	movq	-176(%rbp), %rdi
	movq	16(%rax), %rsi
.LEHB11:
	call	_ZN3ops5Graph8compiledEPNS_2OpE@PLT
.LEHE11:
	movq	%r15, %rdi
	movq	%rax, %r13
	call	_ZNSt6vectorIPN3ops2OpESaIS2_EED1Ev
	movq	-192(%rbp), %rax
	xorl	%esi, %esi
	leaq	64(%rax), %r14
	movq	%r14, %rdi
.LEHB12:
	call	_ZNK3ops5ShapeixEm@PLT
	movq	%r14, %rdi
	movl	$1, %esi
	movl	%eax, %ebx
	cltq
	movq	%rax, -216(%rbp)
	call	_ZNK3ops5ShapeixEm@PLT
	leaq	64(%r12), %rdi
	movl	$1, %esi
	cltq
	movq	%rax, -224(%rbp)
	call	_ZNK3ops5ShapeixEm@PLT
	movq	%r15, %rdi
	leaq	-128(%rbp), %rcx
	movl	%ebx, -80(%rbp)
	movl	%eax, -76(%rbp)
	movslq	%eax, %r14
	leaq	-80(%rbp), %rax
	movl	$2, %edx
	movq	%rax, %rsi
	movq	%rax, -200(%rbp)
	call	_ZNSt6vectorIiSaIiEEC1ESt16initializer_listIiERKS0_
.LEHE12:
	leaq	-152(%rbp), %rax
	movq	%r15, %rsi
	movq	%rax, %rdi
	movq	%rax, -208(%rbp)
.LEHB13:
	call	_ZN3ops5ShapeC1ERKSt6vectorIiSaIiEE@PLT
.LEHE13:
	movq	%r15, %rdi
	call	_ZNSt6vectorIiSaIiEED1Ev
	movq	-208(%rbp), %rdi
.LEHB14:
	call	_ZNK3ops5Shape5totalEv@PLT
	movslq	%eax, %rdi
	call	_Z12tensor_allocm@PLT
	movq	%rax, %rbx
	movq	-192(%rbp), %rax
	movq	-200(%rbp), %rsi
	movq	%r15, %rdi
	movl	$3, %edx
	movq	56(%rax), %rax
	movq	%rax, -80(%rbp)
	movq	56(%r12), %rax
	movq	%rax, -72(%rbp)
	movq	56(%r13), %rax
	movq	%rax, -64(%rbp)
	leaq	-128(%rbp), %rax
	movq	%rax, %rcx
	movq	%rax, -168(%rbp)
	call	_ZNSt6vectorIPN2rt4NodeESaIS2_EEC1ESt16initializer_listIS2_ERKS3_
.LEHE14:
	movq	-192(%rbp), %rax
	movq	88(%r13), %rdx
	movq	%rbx, %rcx
	movq	88(%r12), %rsi
	movq	-224(%rbp), %r9
	movq	88(%rax), %rdi
	movq	-216(%rbp), %r8
	pushq	%r15
	pushq	%r14
.LEHB15:
	.cfi_escape 0x2e,0x10
	call	_ZN2rt4Node14op_mat_mul_addEPKfS2_S2_PfmmmRKSt6vectorIPS0_SaIS5_EE@PLT
.LEHE15:
	popq	%rsi
	popq	%rdi
	movq	%r15, %rdi
	movq	%rax, %r14
	call	_ZNSt12_Vector_baseIPN2rt4NodeESaIS2_EED2Ev
	xorl	%r8d, %r8d
	movl	$1, %edi
	movq	%r8, -104(%rbp)
	movq	%r8, -96(%rbp)
	movq	%r8, -88(%rbp)
.LEHB16:
	.cfi_escape 0x2e,0
	call	_ZNSt12_Vector_baseIPN3ops2OpESaIS2_EE11_M_allocateEm.part.0.isra.0
.LEHE16:
	movq	%rbx, (%rax)
	leaq	8(%rax), %rdx
	movq	-200(%rbp), %rsi
	leaq	-153(%rbp), %rcx
	movq	-168(%rbp), %rdi
	movq	%rdx, -88(%rbp)
	movq	%rdx, -96(%rbp)
	movl	$1, %edx
	movq	%rax, -104(%rbp)
	movq	%r14, -80(%rbp)
.LEHB17:
	call	_ZNSt6vectorIPN2rt4NodeESaIS2_EEC1ESt16initializer_listIS2_ERKS3_
.LEHE17:
	jmp	.L98
.L89:
	endbr64
	jmp	.L94
.L98:
	pushq	%rcx
	movq	-208(%rbp), %r9
	movq	%r14, %r8
	movq	%r15, %rcx
	movq	-168(%rbp), %rdx
	movq	-184(%rbp), %rsi
	pushq	%rbx
	movq	-176(%rbp), %rdi
.LEHB18:
	.cfi_escape 0x2e,0x10
	call	_ZN3ops5Graph12add_compiledEPNS_2OpESt6vectorIPN2rt4NodeESaIS6_EES3_IPfSaIS9_EES6_RKNS_5ShapeES9_@PLT
.LEHE18:
	movq	-168(%rbp), %rdi
	popq	%rax
	popq	%rdx
	call	_ZNSt12_Vector_baseIPN2rt4NodeESaIS2_EED2Ev
	movq	%r15, %rdi
	call	_ZNSt12_Vector_baseIPfSaIS0_EED2Ev
	leaq	-152(%rbp), %rdi
	call	_ZNSt6vectorIiSaIiEED1Ev
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	je	.L80
	jmp	.L91
.L81:
	endbr64
	jmp	.L97
.L82:
	endbr64
	jmp	.L97
.L83:
	endbr64
.L97:
	movq	%rax, %rbx
.L72:
	movq	%r15, %rdi
	call	_ZNSt6vectorIPN3ops2OpESaIS2_EED1Ev
	jmp	.L96
.L84:
	endbr64
	movq	%rax, %rbx
.L74:
	movq	%r15, %rdi
	jmp	.L95
.L86:
	endbr64
	movq	%rax, %rbx
.L76:
	movq	%r15, %rdi
	call	_ZNSt12_Vector_baseIPN2rt4NodeESaIS2_EED2Ev
	jmp	.L67
.L88:
	endbr64
	movq	%rax, %rbx
.L77:
	movq	-168(%rbp), %rdi
	call	_ZNSt12_Vector_baseIPN2rt4NodeESaIS2_EED2Ev
	jmp	.L78
.L87:
	endbr64
.L94:
	movq	%rax, %rbx
.L78:
	movq	%r15, %rdi
	call	_ZNSt12_Vector_baseIPfSaIS0_EED2Ev
	jmp	.L67
.L85:
	endbr64
	movq	%rax, %rbx
.L67:
	leaq	-152(%rbp), %rdi
.L95:
	call	_ZNSt6vectorIiSaIiEED1Ev
.L96:
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L91
	movq	%rbx, %rdi
.LEHB19:
	call	_Unwind_Resume@PLT
.LEHE19:
.L91:
	call	__stack_chk_fail@PLT
.L80:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4583:
	.section	.gcc_except_table
.LLSDA4583:
	.byte	0xff
	.byte	0xff
	.byte	0x1
	.uleb128 .LLSDACSE4583-.LLSDACSB4583
.LLSDACSB4583:
	.uleb128 .LEHB6-.LFB4583
	.uleb128 .LEHE6-.LEHB6
	.uleb128 0
	.uleb128 0
	.uleb128 .LEHB7-.LFB4583
	.uleb128 .LEHE7-.LEHB7
	.uleb128 .L81-.LFB4583
	.uleb128 0
	.uleb128 .LEHB8-.LFB4583
	.uleb128 .LEHE8-.LEHB8
	.uleb128 0
	.uleb128 0
	.uleb128 .LEHB9-.LFB4583
	.uleb128 .LEHE9-.LEHB9
	.uleb128 .L82-.LFB4583
	.uleb128 0
	.uleb128 .LEHB10-.LFB4583
	.uleb128 .LEHE10-.LEHB10
	.uleb128 0
	.uleb128 0
	.uleb128 .LEHB11-.LFB4583
	.uleb128 .LEHE11-.LEHB11
	.uleb128 .L83-.LFB4583
	.uleb128 0
	.uleb128 .LEHB12-.LFB4583
	.uleb128 .LEHE12-.LEHB12
	.uleb128 0
	.uleb128 0
	.uleb128 .LEHB13-.LFB4583
	.uleb128 .LEHE13-.LEHB13
	.uleb128 .L84-.LFB4583
	.uleb128 0
	.uleb128 .LEHB14-.LFB4583
	.uleb128 .LEHE14-.LEHB14
	.uleb128 .L85-.LFB4583
	.uleb128 0
	.uleb128 .LEHB15-.LFB4583
	.uleb128 .LEHE15-.LEHB15
	.uleb128 .L86-.LFB4583
	.uleb128 0
	.uleb128 .LEHB16-.LFB4583
	.uleb128 .LEHE16-.LEHB16
	.uleb128 .L89-.LFB4583
	.uleb128 0
	.uleb128 .LEHB17-.LFB4583
	.uleb128 .LEHE17-.LEHB17
	.uleb128 .L87-.LFB4583
	.uleb128 0
	.uleb128 .LEHB18-.LFB4583
	.uleb128 .LEHE18-.LEHB18
	.uleb128 .L88-.LFB4583
	.uleb128 0
	.uleb128 .LEHB19-.LFB4583
	.uleb128 .LEHE19-.LEHB19
	.uleb128 0
	.uleb128 0
.LLSDACSE4583:
	.text
	.size	_ZN3ops9MatMulAdd7compileEv, .-_ZN3ops9MatMulAdd7compileEv
	.section	.rodata.str1.1
.LC2:
	.string	"mat_mul_add"
	.text
	.align 2
	.globl	_ZN3ops9MatMulAddC2EPNS_2OpES2_S2_
	.type	_ZN3ops9MatMulAddC2EPNS_2OpES2_S2_, @function
_ZN3ops9MatMulAddC2EPNS_2OpES2_S2_:
.LFB4581:
	.cfi_startproc
	.cfi_personality 0x9b,DW.ref.__gxx_personality_v0
	.cfi_lsda 0x1b,.LLSDA4581
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	movq	%rsi, %r14
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	movq	%rdx, %r13
	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
	movq	%rdi, %rbx
	movl	$3, %edi
	subq	$184, %rsp
	.cfi_def_cfa_offset 240
	movq	%fs:40, %rax
	movq	%rax, 168(%rsp)
	xorl	%eax, %eax
	xorl	%eax, %eax
	movq	%rdx, 120(%rsp)
	xorl	%edx, %edx
	movq	%rax, 80(%rsp)
	leaq	56(%rsp), %r12
	leaq	80(%rsp), %rbp
	movq	%rax, 88(%rsp)
	movq	%rax, 96(%rsp)
	movq	%rsi, 112(%rsp)
	movq	%rcx, 128(%rsp)
	movq	%rdx, 56(%rsp)
	movq	%rdx, 64(%rsp)
	movq	%rdx, 72(%rsp)
.LEHB20:
	call	_ZNSt12_Vector_baseIPN3ops2OpESaIS2_EE11_M_allocateEm.part.0.isra.0
.LEHE20:
	movq	128(%rsp), %rcx
	movups	112(%rsp), %xmm0
	leaq	24(%rax), %rdx
	movq	%r14, %rdi
	movq	%rax, 56(%rsp)
	movq	%rcx, 16(%rax)
	movups	%xmm0, (%rax)
	movq	%rdx, 72(%rsp)
	movq	%rdx, 64(%rsp)
.LEHB21:
	call	_ZNK3ops2Op9shape_getEv@PLT
	movq	%rax, %rdi
	xorl	%esi, %esi
	call	_ZNK3ops5ShapeixEm@PLT
	jmp	.L115
.L111:
	endbr64
	movq	%rax, %rbx
.L101:
	movq	%r12, %rdi
	call	_ZNSt12_Vector_baseIPN3ops2OpESaIS2_EED2Ev
	jmp	.L102
.L115:
	movq	%r13, %rdi
	movl	%eax, 104(%rsp)
	call	_ZNK3ops2Op9shape_getEv@PLT
	movq	%rax, %rdi
	movl	$1, %esi
	call	_ZNK3ops5ShapeixEm@PLT
	leaq	32(%rsp), %r13
	leaq	104(%rsp), %rsi
	movl	$2, %edx
	movl	%eax, 108(%rsp)
	leaq	7(%rsp), %rcx
	movq	%r13, %rdi
	call	_ZNSt6vectorIiSaIiEEC1ESt16initializer_listIiERKS0_
.LEHE21:
	leaq	8(%rsp), %r14
	movq	%r13, %rsi
	movq	%r14, %rdi
.LEHB22:
	call	_ZN3ops5ShapeC1ERKSt6vectorIiSaIiEE@PLT
.LEHE22:
	leaq	11+.LC2(%rip), %rdx
	leaq	152(%rsp), %rdi
	leaq	-11(%rdx), %rsi
	movq	%rdi, 136(%rsp)
	leaq	136(%rsp), %r15
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE13_S_copy_charsEPcPKcS7_@PLT
	movq	%rbp, %r8
	movq	%r12, %rcx
	movq	%r14, %rdx
	movq	136(%rsp), %rax
	movq	%r15, %rsi
	movq	%rbx, %rdi
	movq	$11, 144(%rsp)
	movb	$0, 11(%rax)
.LEHB23:
	call	_ZN3ops2OpC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKNS_5ShapeESt6vectorIPS0_SaISD_EESF_@PLT
.LEHE23:
	movq	%r15, %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	movq	%r14, %rdi
	call	_ZNSt6vectorIiSaIiEED1Ev
	movq	%r13, %rdi
	call	_ZNSt6vectorIiSaIiEED1Ev
	movq	%r12, %rdi
	call	_ZNSt6vectorIPN3ops2OpESaIS2_EED1Ev
	movq	%rbp, %rdi
	call	_ZNSt6vectorIPN3ops2OpESaIS2_EED1Ev
	leaq	16+_ZTVN3ops9MatMulAddE(%rip), %rax
	movq	%rax, (%rbx)
	movq	168(%rsp), %rax
	subq	%fs:40, %rax
	je	.L107
	jmp	.L113
.L110:
	endbr64
	movq	%rax, %rbx
.L103:
	movq	%r15, %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	movq	%r14, %rdi
	call	_ZNSt6vectorIiSaIiEED1Ev
	jmp	.L104
.L109:
	endbr64
	movq	%rax, %rbx
.L104:
	movq	%r13, %rdi
	call	_ZNSt6vectorIiSaIiEED1Ev
	jmp	.L105
.L108:
	endbr64
	movq	%rax, %rbx
.L105:
	movq	%r12, %rdi
	call	_ZNSt6vectorIPN3ops2OpESaIS2_EED1Ev
.L102:
	movq	%rbp, %rdi
	call	_ZNSt6vectorIPN3ops2OpESaIS2_EED1Ev
	movq	168(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L113
	movq	%rbx, %rdi
.LEHB24:
	call	_Unwind_Resume@PLT
.LEHE24:
.L113:
	call	__stack_chk_fail@PLT
.L107:
	addq	$184, %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
.LFE4581:
	.section	.gcc_except_table
.LLSDA4581:
	.byte	0xff
	.byte	0xff
	.byte	0x1
	.uleb128 .LLSDACSE4581-.LLSDACSB4581
.LLSDACSB4581:
	.uleb128 .LEHB20-.LFB4581
	.uleb128 .LEHE20-.LEHB20
	.uleb128 .L111-.LFB4581
	.uleb128 0
	.uleb128 .LEHB21-.LFB4581
	.uleb128 .LEHE21-.LEHB21
	.uleb128 .L108-.LFB4581
	.uleb128 0
	.uleb128 .LEHB22-.LFB4581
	.uleb128 .LEHE22-.LEHB22
	.uleb128 .L109-.LFB4581
	.uleb128 0
	.uleb128 .LEHB23-.LFB4581
	.uleb128 .LEHE23-.LEHB23
	.uleb128 .L110-.LFB4581
	.uleb128 0
	.uleb128 .LEHB24-.LFB4581
	.uleb128 .LEHE24-.LEHB24
	.uleb128 0
	.uleb128 0
.LLSDACSE4581:
	.text
	.size	_ZN3ops9MatMulAddC2EPNS_2OpES2_S2_, .-_ZN3ops9MatMulAddC2EPNS_2OpES2_S2_
	.globl	_ZN3ops9MatMulAddC1EPNS_2OpES2_S2_
	.set	_ZN3ops9MatMulAddC1EPNS_2OpES2_S2_,_ZN3ops9MatMulAddC2EPNS_2OpES2_S2_
	.weak	_ZTSN3ops9MatMulAddE
	.section	.rodata._ZTSN3ops9MatMulAddE,"aG",@progbits,_ZTSN3ops9MatMulAddE,comdat
	.align 16
	.type	_ZTSN3ops9MatMulAddE, @object
	.size	_ZTSN3ops9MatMulAddE, 17
_ZTSN3ops9MatMulAddE:
	.string	"N3ops9MatMulAddE"
	.weak	_ZTIN3ops9MatMulAddE
	.section	.data.rel.ro._ZTIN3ops9MatMulAddE,"awG",@progbits,_ZTIN3ops9MatMulAddE,comdat
	.align 8
	.type	_ZTIN3ops9MatMulAddE, @object
	.size	_ZTIN3ops9MatMulAddE, 24
_ZTIN3ops9MatMulAddE:
	.quad	_ZTVN10__cxxabiv120__si_class_type_infoE+16
	.quad	_ZTSN3ops9MatMulAddE
	.quad	_ZTIN3ops2OpE
	.weak	_ZTVN3ops9MatMulAddE
	.section	.data.rel.ro.local._ZTVN3ops9MatMulAddE,"awG",@progbits,_ZTVN3ops9MatMulAddE,comdat
	.align 8
	.type	_ZTVN3ops9MatMulAddE, @object
	.size	_ZTVN3ops9MatMulAddE, 48
_ZTVN3ops9MatMulAddE:
	.quad	0
	.quad	_ZTIN3ops9MatMulAddE
	.quad	_ZN3ops9MatMulAddD1Ev
	.quad	_ZN3ops9MatMulAddD0Ev
	.quad	_ZN3ops9MatMulAdd7compileEv
	.quad	_ZN3ops9MatMulAdd10child_gradEmPNS_2OpE
	.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 <hip/hip_runtime.h>
#include "mat-mul-add.hh"
#include <cassert>
#include <stdexcept>
#include "graph.hh"
#include "mat-mat-mul.hh"
#include "mat-sum.hh"
#include "ops-builder.hh"
#include "../runtime/node.hh"
#include "../memory/alloc.hh"

namespace ops
{

    MatMulAdd::MatMulAdd(Op* x, Op* w, Op* b)
        : Op("mat_mul_add",
             Shape({x->shape_get()[0], w->shape_get()[1]}), {x, w, b})
    {}

    void MatMulAdd::compile()
    {
        auto& g = Graph::instance();

        auto& cx = g.compiled(preds()[0]);
        auto& cw = g.compiled(preds()[1]);
        auto& cb = g.compiled(preds()[2]);

        std::size_t rows = cx.out_shape[0];
        std::size_t cols = cx.out_shape[1];
        std::size_t out_cols = cw.out_shape[1]; 
        Shape out_shape ({int(rows), int(out_cols)});
        dbl_t* out_data = tensor_alloc(out_shape.total());

        auto out_node = rt::Node::op_mat_mul_add(cx.out_data, cw.out_data, cb.out_data, out_data,
                                                 rows, cols, out_cols,
                                                 {cx.out_node, cw.out_node, cb.out_node});

        g.add_compiled(this, {out_node}, {out_data}, out_node, out_shape, out_data);
    }


    Op* MatMulAdd::child_grad(std::size_t index, Op* dout)
    {
        assert(index < 3);

        if (dout == nullptr)
            throw std::runtime_error {"MatMullAdd can't be the final node of the gradient"};


        auto& builder = OpsBuilder::instance();
        auto x = preds()[0];
        auto w = preds()[1];
        auto b = preds()[2];
        (void) b;

        // dC/dx
        if (index == 0)
            return builder.mat_mat_mul(dout, w, false, true);

        // dC/dw
        else if (index == 1)
            return builder.mat_mat_mul(x, dout, true, false);

        // dC/db
        else
            return builder.mat_sum(dout, 0);
    }
    
}

	.text
	.file	"mat-mul-add.hip"
                                        # Start of file scope inline assembly
	.globl	_ZSt21ios_base_library_initv

                                        # End of file scope inline assembly
	.globl	_ZN3ops9MatMulAddC2EPNS_2OpES2_S2_ # -- Begin function _ZN3ops9MatMulAddC2EPNS_2OpES2_S2_
	.p2align	1, 0x90
	.type	_ZN3ops9MatMulAddC2EPNS_2OpES2_S2_,@function
_ZN3ops9MatMulAddC2EPNS_2OpES2_S2_:     # @_ZN3ops9MatMulAddC2EPNS_2OpES2_S2_
.Lfunc_begin0:
	.cfi_startproc
	.cfi_personality 3, __gxx_personality_v0
	.cfi_lsda 3, .Lexception0
# %bb.0:                                # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_.exit
	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
	subq	$176, %rsp
	.cfi_def_cfa_offset 224
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	movq	%rcx, %r14
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, %rbx
	leaq	112(%rsp), %r13
	movq	%r13, -16(%r13)
	leaq	96(%rsp), %rdi
	movl	$.L.str, %esi
	movl	$.L.str+11, %edx
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag
.Ltmp0:
	movq	%r12, %rdi
	callq	_ZNK3ops2Op9shape_getEv
.Ltmp1:
# %bb.1:
.Ltmp2:
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	_ZNK3ops5ShapeixEm
.Ltmp3:
# %bb.2:
	movl	%eax, 16(%rsp)
.Ltmp4:
	movq	%r15, %rdi
	callq	_ZNK3ops2Op9shape_getEv
.Ltmp5:
# %bb.3:
.Ltmp6:
	movl	$1, %esi
	movq	%rax, %rdi
	callq	_ZNK3ops5ShapeixEm
.Ltmp7:
# %bb.4:
	leaq	16(%rsp), %rsi
	movl	%eax, 4(%rsi)
.Ltmp9:
	leaq	48(%rsp), %rdi
	leaq	15(%rsp), %rcx
	movl	$2, %edx
	callq	_ZNSt6vectorIiSaIiEEC2ESt16initializer_listIiERKS0_
.Ltmp10:
# %bb.5:
.Ltmp12:
	leaq	72(%rsp), %rdi
	leaq	48(%rsp), %rsi
	callq	_ZN3ops5ShapeC1ERKSt6vectorIiSaIiEE
.Ltmp13:
# %bb.6:
	leaq	152(%rsp), %rsi
	movq	%r12, (%rsi)
	movq	%r15, 8(%rsi)
	movq	%r14, 16(%rsi)
.Ltmp15:
	leaq	24(%rsp), %rdi
	leaq	14(%rsp), %rcx
	movl	$3, %edx
	callq	_ZNSt6vectorIPN3ops2OpESaIS2_EEC2ESt16initializer_listIS2_ERKS3_
.Ltmp16:
# %bb.7:
	xorps	%xmm0, %xmm0
	leaq	128(%rsp), %r8
	movaps	%xmm0, (%r8)
	movq	$0, 16(%r8)
.Ltmp18:
	leaq	96(%rsp), %rsi
	leaq	72(%rsp), %rdx
	leaq	24(%rsp), %rcx
	movq	%rbx, %rdi
	callq	_ZN3ops2OpC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKNS_5ShapeESt6vectorIPS0_SaISD_EESF_
.Ltmp19:
# %bb.8:
	movq	128(%rsp), %rdi
	testq	%rdi, %rdi
	je	.LBB0_10
# %bb.9:
	callq	_ZdlPv
.LBB0_10:                               # %_ZNSt6vectorIPN3ops2OpESaIS2_EED2Ev.exit
	movq	24(%rsp), %rdi
	testq	%rdi, %rdi
	je	.LBB0_12
# %bb.11:
	callq	_ZdlPv
.LBB0_12:                               # %_ZNSt6vectorIPN3ops2OpESaIS2_EED2Ev.exit20
	movq	72(%rsp), %rdi
	testq	%rdi, %rdi
	je	.LBB0_14
# %bb.13:
	callq	_ZdlPv
.LBB0_14:                               # %_ZN3ops5ShapeD2Ev.exit
	movq	48(%rsp), %rdi
	testq	%rdi, %rdi
	je	.LBB0_16
# %bb.15:
	callq	_ZdlPv
.LBB0_16:                               # %_ZNSt6vectorIiSaIiEED2Ev.exit
	movq	96(%rsp), %rdi
	cmpq	%r13, %rdi
	je	.LBB0_18
# %bb.17:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i
	callq	_ZdlPv
.LBB0_18:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit
	movq	$_ZTVN3ops9MatMulAddE+16, (%rbx)
	addq	$176, %rsp
	.cfi_def_cfa_offset 48
	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
.LBB0_19:
	.cfi_def_cfa_offset 224
.Ltmp20:
	movq	%rax, %rbx
	movq	128(%rsp), %rdi
	testq	%rdi, %rdi
	je	.LBB0_21
# %bb.20:
	callq	_ZdlPv
.LBB0_21:                               # %_ZNSt6vectorIPN3ops2OpESaIS2_EED2Ev.exit23
	movq	24(%rsp), %rdi
	testq	%rdi, %rdi
	je	.LBB0_24
# %bb.22:
	callq	_ZdlPv
	jmp	.LBB0_24
.LBB0_23:
.Ltmp17:
	movq	%rax, %rbx
.LBB0_24:                               # %_ZNSt6vectorIPN3ops2OpESaIS2_EED2Ev.exit25
	movq	72(%rsp), %rdi
	testq	%rdi, %rdi
	je	.LBB0_27
# %bb.25:
	callq	_ZdlPv
	jmp	.LBB0_27
.LBB0_26:
.Ltmp14:
	movq	%rax, %rbx
.LBB0_27:                               # %_ZN3ops5ShapeD2Ev.exit27
	movq	48(%rsp), %rdi
	testq	%rdi, %rdi
	je	.LBB0_32
# %bb.28:
	callq	_ZdlPv
	jmp	.LBB0_32
.LBB0_29:
.Ltmp11:
	jmp	.LBB0_31
.LBB0_30:
.Ltmp8:
.LBB0_31:
	movq	%rax, %rbx
.LBB0_32:
	movq	96(%rsp), %rdi
	cmpq	%r13, %rdi
	je	.LBB0_34
# %bb.33:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i30
	callq	_ZdlPv
.LBB0_34:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit32
	movq	%rbx, %rdi
	callq	_Unwind_Resume@PLT
.Lfunc_end0:
	.size	_ZN3ops9MatMulAddC2EPNS_2OpES2_S2_, .Lfunc_end0-_ZN3ops9MatMulAddC2EPNS_2OpES2_S2_
	.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 .Ltmp7-.Ltmp0                  #   Call between .Ltmp0 and .Ltmp7
	.uleb128 .Ltmp8-.Lfunc_begin0           #     jumps to .Ltmp8
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp9-.Lfunc_begin0           # >> Call Site 3 <<
	.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 4 <<
	.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 5 <<
	.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 6 <<
	.uleb128 .Ltmp19-.Ltmp18                #   Call between .Ltmp18 and .Ltmp19
	.uleb128 .Ltmp20-.Lfunc_begin0          #     jumps to .Ltmp20
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp19-.Lfunc_begin0          # >> Call Site 7 <<
	.uleb128 .Lfunc_end0-.Ltmp19            #   Call between .Ltmp19 and .Lfunc_end0
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
.Lcst_end0:
	.p2align	2, 0x0
                                        # -- End function
	.section	.text._ZNSt6vectorIiSaIiEEC2ESt16initializer_listIiERKS0_,"axG",@progbits,_ZNSt6vectorIiSaIiEEC2ESt16initializer_listIiERKS0_,comdat
	.weak	_ZNSt6vectorIiSaIiEEC2ESt16initializer_listIiERKS0_ # -- Begin function _ZNSt6vectorIiSaIiEEC2ESt16initializer_listIiERKS0_
	.p2align	1, 0x90
	.type	_ZNSt6vectorIiSaIiEEC2ESt16initializer_listIiERKS0_,@function
_ZNSt6vectorIiSaIiEEC2ESt16initializer_listIiERKS0_: # @_ZNSt6vectorIiSaIiEEC2ESt16initializer_listIiERKS0_
.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	(%rsi,%rdx,4), %rdx
.Ltmp21:
	callq	_ZNSt6vectorIiSaIiEE19_M_range_initializeIPKiEEvT_S5_St20forward_iterator_tag
.Ltmp22:
# %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
.LBB1_2:
	.cfi_def_cfa_offset 32
.Ltmp23:
	movq	%rax, %r14
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	.LBB1_4
# %bb.3:
	callq	_ZdlPv
.LBB1_4:                                # %_ZNSt12_Vector_baseIiSaIiEED2Ev.exit
	movq	%r14, %rdi
	callq	_Unwind_Resume@PLT
.Lfunc_end1:
	.size	_ZNSt6vectorIiSaIiEEC2ESt16initializer_listIiERKS0_, .Lfunc_end1-_ZNSt6vectorIiSaIiEEC2ESt16initializer_listIiERKS0_
	.cfi_endproc
	.section	.gcc_except_table._ZNSt6vectorIiSaIiEEC2ESt16initializer_listIiERKS0_,"aG",@progbits,_ZNSt6vectorIiSaIiEEC2ESt16initializer_listIiERKS0_,comdat
	.p2align	2, 0x0
GCC_except_table1:
.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 .Ltmp21-.Lfunc_begin1          # >> Call Site 1 <<
	.uleb128 .Ltmp22-.Ltmp21                #   Call between .Ltmp21 and .Ltmp22
	.uleb128 .Ltmp23-.Lfunc_begin1          #     jumps to .Ltmp23
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp22-.Lfunc_begin1          # >> Call Site 2 <<
	.uleb128 .Lfunc_end1-.Ltmp22            #   Call between .Ltmp22 and .Lfunc_end1
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
.Lcst_end1:
	.p2align	2, 0x0
                                        # -- End function
	.section	.text._ZNSt6vectorIPN3ops2OpESaIS2_EEC2ESt16initializer_listIS2_ERKS3_,"axG",@progbits,_ZNSt6vectorIPN3ops2OpESaIS2_EEC2ESt16initializer_listIS2_ERKS3_,comdat
	.weak	_ZNSt6vectorIPN3ops2OpESaIS2_EEC2ESt16initializer_listIS2_ERKS3_ # -- Begin function _ZNSt6vectorIPN3ops2OpESaIS2_EEC2ESt16initializer_listIS2_ERKS3_
	.p2align	1, 0x90
	.type	_ZNSt6vectorIPN3ops2OpESaIS2_EEC2ESt16initializer_listIS2_ERKS3_,@function
_ZNSt6vectorIPN3ops2OpESaIS2_EEC2ESt16initializer_listIS2_ERKS3_: # @_ZNSt6vectorIPN3ops2OpESaIS2_EEC2ESt16initializer_listIS2_ERKS3_
.Lfunc_begin2:
	.cfi_startproc
	.cfi_personality 3, __gxx_personality_v0
	.cfi_lsda 3, .Lexception2
# %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	(%rsi,%rdx,8), %rdx
.Ltmp24:
	callq	_ZNSt6vectorIPN3ops2OpESaIS2_EE19_M_range_initializeIPKS2_EEvT_S8_St20forward_iterator_tag
.Ltmp25:
# %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
.Ltmp26:
	movq	%rax, %r14
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	.LBB2_4
# %bb.3:
	callq	_ZdlPv
.LBB2_4:                                # %_ZNSt12_Vector_baseIPN3ops2OpESaIS2_EED2Ev.exit
	movq	%r14, %rdi
	callq	_Unwind_Resume@PLT
.Lfunc_end2:
	.size	_ZNSt6vectorIPN3ops2OpESaIS2_EEC2ESt16initializer_listIS2_ERKS3_, .Lfunc_end2-_ZNSt6vectorIPN3ops2OpESaIS2_EEC2ESt16initializer_listIS2_ERKS3_
	.cfi_endproc
	.section	.gcc_except_table._ZNSt6vectorIPN3ops2OpESaIS2_EEC2ESt16initializer_listIS2_ERKS3_,"aG",@progbits,_ZNSt6vectorIPN3ops2OpESaIS2_EEC2ESt16initializer_listIS2_ERKS3_,comdat
	.p2align	2, 0x0
GCC_except_table2:
.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 .Ltmp24-.Lfunc_begin2          # >> Call Site 1 <<
	.uleb128 .Ltmp25-.Ltmp24                #   Call between .Ltmp24 and .Ltmp25
	.uleb128 .Ltmp26-.Lfunc_begin2          #     jumps to .Ltmp26
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp25-.Lfunc_begin2          # >> Call Site 2 <<
	.uleb128 .Lfunc_end2-.Ltmp25            #   Call between .Ltmp25 and .Lfunc_end2
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
.Lcst_end2:
	.p2align	2, 0x0
                                        # -- End function
	.text
	.globl	_ZN3ops9MatMulAdd7compileEv     # -- Begin function _ZN3ops9MatMulAdd7compileEv
	.p2align	1, 0x90
	.type	_ZN3ops9MatMulAdd7compileEv,@function
_ZN3ops9MatMulAdd7compileEv:            # @_ZN3ops9MatMulAdd7compileEv
.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	%r13
	.cfi_def_cfa_offset 40
	pushq	%r12
	.cfi_def_cfa_offset 48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	subq	$168, %rsp
	.cfi_def_cfa_offset 224
	.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, %r15
	.cfi_escape 0x2e, 0x00
	callq	_ZN3ops5Graph8instanceEv
	movq	%rax, %r13
	.cfi_escape 0x2e, 0x00
	leaq	8(%rsp), %rbx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_ZN3ops2Op5predsEv
	movq	(%rbx), %rax
	movq	(%rax), %rsi
.Ltmp27:
	.cfi_escape 0x2e, 0x00
	movq	%r13, %rdi
	callq	_ZN3ops5Graph8compiledEPNS_2OpE
	movq	%rax, 40(%rsp)                  # 8-byte Spill
.Ltmp28:
# %bb.1:
	movq	8(%rsp), %rdi
	testq	%rdi, %rdi
	je	.LBB3_3
# %bb.2:
	.cfi_escape 0x2e, 0x00
	callq	_ZdlPv
.LBB3_3:                                # %_ZNSt6vectorIPN3ops2OpESaIS2_EED2Ev.exit
	.cfi_escape 0x2e, 0x00
	leaq	8(%rsp), %rbx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_ZN3ops2Op5predsEv
	movq	(%rbx), %rax
	movq	8(%rax), %rsi
.Ltmp30:
	.cfi_escape 0x2e, 0x00
	movq	%r13, %rdi
	callq	_ZN3ops5Graph8compiledEPNS_2OpE
.Ltmp31:
# %bb.4:
	movq	%rax, %r12
	movq	8(%rsp), %rdi
	testq	%rdi, %rdi
	je	.LBB3_6
# %bb.5:
	.cfi_escape 0x2e, 0x00
	callq	_ZdlPv
.LBB3_6:                                # %_ZNSt6vectorIPN3ops2OpESaIS2_EED2Ev.exit54
	.cfi_escape 0x2e, 0x00
	leaq	8(%rsp), %rbx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_ZN3ops2Op5predsEv
	movq	(%rbx), %rax
	movq	16(%rax), %rsi
.Ltmp33:
	.cfi_escape 0x2e, 0x00
	movq	%r13, %rdi
	callq	_ZN3ops5Graph8compiledEPNS_2OpE
.Ltmp34:
# %bb.7:
	movq	%rax, 88(%rsp)                  # 8-byte Spill
	movq	8(%rsp), %rdi
	testq	%rdi, %rdi
	je	.LBB3_9
# %bb.8:
	.cfi_escape 0x2e, 0x00
	callq	_ZdlPv
.LBB3_9:                                # %_ZNSt6vectorIPN3ops2OpESaIS2_EED2Ev.exit56
	movq	40(%rsp), %rax                  # 8-byte Reload
	leaq	64(%rax), %rbx
	.cfi_escape 0x2e, 0x00
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_ZNK3ops5ShapeixEm
	movl	%eax, %ebp
	.cfi_escape 0x2e, 0x00
	movl	$1, %esi
	movq	%rbx, %rdi
	callq	_ZNK3ops5ShapeixEm
	movl	%eax, %r14d
	leaq	64(%r12), %rdi
	.cfi_escape 0x2e, 0x00
	movl	$1, %esi
	callq	_ZNK3ops5ShapeixEm
	leaq	144(%rsp), %rsi
	movl	%ebp, 36(%rsp)                  # 4-byte Spill
	movl	%ebp, (%rsi)
	movl	%eax, 32(%rsp)                  # 4-byte Spill
	movl	%eax, 4(%rsi)
.Ltmp36:
	.cfi_escape 0x2e, 0x00
	leaq	48(%rsp), %rdi
	leaq	6(%rsp), %rcx
	movl	$2, %edx
	callq	_ZNSt6vectorIiSaIiEEC2ESt16initializer_listIiERKS0_
.Ltmp37:
# %bb.10:
.Ltmp39:
	.cfi_escape 0x2e, 0x00
	leaq	8(%rsp), %rdi
	leaq	48(%rsp), %rsi
	callq	_ZN3ops5ShapeC1ERKSt6vectorIiSaIiEE
.Ltmp40:
# %bb.11:
	movq	%r13, 72(%rsp)                  # 8-byte Spill
	movq	%r15, 80(%rsp)                  # 8-byte Spill
	movq	48(%rsp), %rdi
	testq	%rdi, %rdi
	je	.LBB3_13
# %bb.12:
	.cfi_escape 0x2e, 0x00
	callq	_ZdlPv
.LBB3_13:                               # %_ZNSt6vectorIiSaIiEED2Ev.exit
.Ltmp42:
	.cfi_escape 0x2e, 0x00
	leaq	8(%rsp), %rdi
	callq	_ZNK3ops5Shape5totalEv
.Ltmp43:
# %bb.14:
	movslq	%eax, %rdi
.Ltmp44:
	.cfi_escape 0x2e, 0x00
	callq	_Z12tensor_allocm
.Ltmp45:
# %bb.15:
	movq	%rax, %r13
	movq	40(%rsp), %rax                  # 8-byte Reload
	movq	88(%rax), %r15
	movq	88(%r12), %rbp
	movq	88(%rsp), %rcx                  # 8-byte Reload
	movq	88(%rcx), %rbx
	movq	56(%rax), %rax
	leaq	144(%rsp), %rsi
	movq	%rax, (%rsi)
	movq	56(%r12), %rax
	movq	%rax, 8(%rsi)
	movq	56(%rcx), %rax
	movq	%rax, 16(%rsi)
.Ltmp47:
	.cfi_escape 0x2e, 0x00
	leaq	48(%rsp), %r12
	leaq	6(%rsp), %rcx
	movl	$3, %edx
	movq	%r12, %rdi
	callq	_ZNSt6vectorIPN2rt4NodeESaIS2_EEC2ESt16initializer_listIS2_ERKS3_
.Ltmp48:
# %bb.16:
.Ltmp50:
	movslq	36(%rsp), %r8                   # 4-byte Folded Reload
	movslq	%r14d, %r9
	movslq	32(%rsp), %rax                  # 4-byte Folded Reload
	.cfi_escape 0x2e, 0x10
	movq	%r15, %rdi
	movq	%rbp, %rsi
	movq	%rbx, %rdx
	movq	%r13, %rcx
	pushq	%r12
	.cfi_adjust_cfa_offset 8
	pushq	%rax
	.cfi_adjust_cfa_offset 8
	callq	_ZN2rt4Node14op_mat_mul_addEPKfS2_S2_PfmmmRKSt6vectorIPS0_SaIS5_EE
	addq	$16, %rsp
	.cfi_adjust_cfa_offset -16
.Ltmp51:
# %bb.17:
	movq	%rax, %rbx
	movq	48(%rsp), %rdi
	testq	%rdi, %rdi
	je	.LBB3_19
# %bb.18:
	.cfi_escape 0x2e, 0x00
	callq	_ZdlPv
.LBB3_19:                               # %_ZNSt6vectorIPN2rt4NodeESaIS2_EED2Ev.exit
	leaq	48(%rsp), %rsi
	movq	%rbx, (%rsi)
.Ltmp53:
	.cfi_escape 0x2e, 0x00
	leaq	120(%rsp), %rdi
	leaq	6(%rsp), %rcx
	movl	$1, %edx
	callq	_ZNSt6vectorIPN2rt4NodeESaIS2_EEC2ESt16initializer_listIS2_ERKS3_
.Ltmp54:
# %bb.20:
	leaq	144(%rsp), %rsi
	movq	%r13, (%rsi)
.Ltmp56:
	.cfi_escape 0x2e, 0x00
	leaq	96(%rsp), %rdi
	leaq	7(%rsp), %rcx
	movl	$1, %edx
	callq	_ZNSt6vectorIPfSaIS0_EEC2ESt16initializer_listIS0_ERKS1_
.Ltmp57:
# %bb.21:
.Ltmp59:
	.cfi_escape 0x2e, 0x10
	subq	$8, %rsp
	.cfi_adjust_cfa_offset 8
	leaq	128(%rsp), %rdx
	leaq	104(%rsp), %rcx
	leaq	16(%rsp), %r9
	movq	80(%rsp), %rdi                  # 8-byte Reload
	movq	88(%rsp), %rsi                  # 8-byte Reload
	movq	%rbx, %r8
	pushq	%r13
	.cfi_adjust_cfa_offset 8
	callq	_ZN3ops5Graph12add_compiledEPNS_2OpESt6vectorIPN2rt4NodeESaIS6_EES3_IPfSaIS9_EES6_RKNS_5ShapeES9_
	addq	$16, %rsp
	.cfi_adjust_cfa_offset -16
.Ltmp60:
# %bb.22:
	movq	96(%rsp), %rdi
	testq	%rdi, %rdi
	je	.LBB3_24
# %bb.23:
	.cfi_escape 0x2e, 0x00
	callq	_ZdlPv
.LBB3_24:                               # %_ZNSt6vectorIPfSaIS0_EED2Ev.exit
	movq	120(%rsp), %rdi
	testq	%rdi, %rdi
	je	.LBB3_26
# %bb.25:
	.cfi_escape 0x2e, 0x00
	callq	_ZdlPv
.LBB3_26:                               # %_ZNSt6vectorIPN2rt4NodeESaIS2_EED2Ev.exit61
	movq	8(%rsp), %rdi
	testq	%rdi, %rdi
	je	.LBB3_28
# %bb.27:
	.cfi_escape 0x2e, 0x00
	callq	_ZdlPv
.LBB3_28:                               # %_ZN3ops5ShapeD2Ev.exit
	addq	$168, %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
.LBB3_29:
	.cfi_def_cfa_offset 224
.Ltmp61:
	movq	%rax, %rbx
	movq	96(%rsp), %rdi
	testq	%rdi, %rdi
	je	.LBB3_32
# %bb.30:
	.cfi_escape 0x2e, 0x00
	callq	_ZdlPv
	jmp	.LBB3_32
.LBB3_31:
.Ltmp58:
	movq	%rax, %rbx
.LBB3_32:                               # %_ZNSt6vectorIPfSaIS0_EED2Ev.exit73
	movq	120(%rsp), %rdi
	testq	%rdi, %rdi
	je	.LBB3_50
# %bb.33:
	.cfi_escape 0x2e, 0x00
	jmp	.LBB3_37
.LBB3_34:
.Ltmp55:
	jmp	.LBB3_49
.LBB3_35:
.Ltmp52:
	movq	%rax, %rbx
	movq	48(%rsp), %rdi
	testq	%rdi, %rdi
	je	.LBB3_50
# %bb.36:
	.cfi_escape 0x2e, 0x00
.LBB3_37:
	callq	_ZdlPv
	jmp	.LBB3_50
.LBB3_38:
.Ltmp49:
	jmp	.LBB3_49
.LBB3_39:
.Ltmp41:
	movq	%rax, %rbx
	movq	48(%rsp), %rdi
	testq	%rdi, %rdi
	je	.LBB3_53
# %bb.40:
	.cfi_escape 0x2e, 0x00
	jmp	.LBB3_52
.LBB3_41:
.Ltmp38:
	movq	%rax, %rbx
	jmp	.LBB3_53
.LBB3_42:
.Ltmp35:
	movq	%rax, %rbx
	movq	8(%rsp), %rdi
	testq	%rdi, %rdi
	je	.LBB3_53
# %bb.43:
	.cfi_escape 0x2e, 0x00
	jmp	.LBB3_52
.LBB3_44:
.Ltmp32:
	movq	%rax, %rbx
	movq	8(%rsp), %rdi
	testq	%rdi, %rdi
	je	.LBB3_53
# %bb.45:
	.cfi_escape 0x2e, 0x00
	jmp	.LBB3_52
.LBB3_46:
.Ltmp29:
	movq	%rax, %rbx
	movq	8(%rsp), %rdi
	testq	%rdi, %rdi
	je	.LBB3_53
# %bb.47:
	.cfi_escape 0x2e, 0x00
	jmp	.LBB3_52
.LBB3_48:
.Ltmp46:
.LBB3_49:
	movq	%rax, %rbx
.LBB3_50:
	movq	8(%rsp), %rdi
	testq	%rdi, %rdi
	je	.LBB3_53
# %bb.51:
	.cfi_escape 0x2e, 0x00
.LBB3_52:
	callq	_ZdlPv
.LBB3_53:
	.cfi_escape 0x2e, 0x00
	movq	%rbx, %rdi
	callq	_Unwind_Resume@PLT
.Lfunc_end3:
	.size	_ZN3ops9MatMulAdd7compileEv, .Lfunc_end3-_ZN3ops9MatMulAdd7compileEv
	.cfi_endproc
	.section	.gcc_except_table,"a",@progbits
	.p2align	2, 0x0
GCC_except_table3:
.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 .Lfunc_begin3-.Lfunc_begin3    # >> Call Site 1 <<
	.uleb128 .Ltmp27-.Lfunc_begin3          #   Call between .Lfunc_begin3 and .Ltmp27
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp27-.Lfunc_begin3          # >> Call Site 2 <<
	.uleb128 .Ltmp28-.Ltmp27                #   Call between .Ltmp27 and .Ltmp28
	.uleb128 .Ltmp29-.Lfunc_begin3          #     jumps to .Ltmp29
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp28-.Lfunc_begin3          # >> Call Site 3 <<
	.uleb128 .Ltmp30-.Ltmp28                #   Call between .Ltmp28 and .Ltmp30
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp30-.Lfunc_begin3          # >> Call Site 4 <<
	.uleb128 .Ltmp31-.Ltmp30                #   Call between .Ltmp30 and .Ltmp31
	.uleb128 .Ltmp32-.Lfunc_begin3          #     jumps to .Ltmp32
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp31-.Lfunc_begin3          # >> Call Site 5 <<
	.uleb128 .Ltmp33-.Ltmp31                #   Call between .Ltmp31 and .Ltmp33
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp33-.Lfunc_begin3          # >> Call Site 6 <<
	.uleb128 .Ltmp34-.Ltmp33                #   Call between .Ltmp33 and .Ltmp34
	.uleb128 .Ltmp35-.Lfunc_begin3          #     jumps to .Ltmp35
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp34-.Lfunc_begin3          # >> Call Site 7 <<
	.uleb128 .Ltmp36-.Ltmp34                #   Call between .Ltmp34 and .Ltmp36
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp36-.Lfunc_begin3          # >> Call Site 8 <<
	.uleb128 .Ltmp37-.Ltmp36                #   Call between .Ltmp36 and .Ltmp37
	.uleb128 .Ltmp38-.Lfunc_begin3          #     jumps to .Ltmp38
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp39-.Lfunc_begin3          # >> Call Site 9 <<
	.uleb128 .Ltmp40-.Ltmp39                #   Call between .Ltmp39 and .Ltmp40
	.uleb128 .Ltmp41-.Lfunc_begin3          #     jumps to .Ltmp41
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp42-.Lfunc_begin3          # >> Call Site 10 <<
	.uleb128 .Ltmp45-.Ltmp42                #   Call between .Ltmp42 and .Ltmp45
	.uleb128 .Ltmp46-.Lfunc_begin3          #     jumps to .Ltmp46
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp47-.Lfunc_begin3          # >> Call Site 11 <<
	.uleb128 .Ltmp48-.Ltmp47                #   Call between .Ltmp47 and .Ltmp48
	.uleb128 .Ltmp49-.Lfunc_begin3          #     jumps to .Ltmp49
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp50-.Lfunc_begin3          # >> Call Site 12 <<
	.uleb128 .Ltmp51-.Ltmp50                #   Call between .Ltmp50 and .Ltmp51
	.uleb128 .Ltmp52-.Lfunc_begin3          #     jumps to .Ltmp52
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp53-.Lfunc_begin3          # >> Call Site 13 <<
	.uleb128 .Ltmp54-.Ltmp53                #   Call between .Ltmp53 and .Ltmp54
	.uleb128 .Ltmp55-.Lfunc_begin3          #     jumps to .Ltmp55
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp56-.Lfunc_begin3          # >> Call Site 14 <<
	.uleb128 .Ltmp57-.Ltmp56                #   Call between .Ltmp56 and .Ltmp57
	.uleb128 .Ltmp58-.Lfunc_begin3          #     jumps to .Ltmp58
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp59-.Lfunc_begin3          # >> Call Site 15 <<
	.uleb128 .Ltmp60-.Ltmp59                #   Call between .Ltmp59 and .Ltmp60
	.uleb128 .Ltmp61-.Lfunc_begin3          #     jumps to .Ltmp61
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp60-.Lfunc_begin3          # >> Call Site 16 <<
	.uleb128 .Lfunc_end3-.Ltmp60            #   Call between .Ltmp60 and .Lfunc_end3
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
.Lcst_end3:
	.p2align	2, 0x0
                                        # -- End function
	.section	.text._ZNSt6vectorIPN2rt4NodeESaIS2_EEC2ESt16initializer_listIS2_ERKS3_,"axG",@progbits,_ZNSt6vectorIPN2rt4NodeESaIS2_EEC2ESt16initializer_listIS2_ERKS3_,comdat
	.weak	_ZNSt6vectorIPN2rt4NodeESaIS2_EEC2ESt16initializer_listIS2_ERKS3_ # -- Begin function _ZNSt6vectorIPN2rt4NodeESaIS2_EEC2ESt16initializer_listIS2_ERKS3_
	.p2align	1, 0x90
	.type	_ZNSt6vectorIPN2rt4NodeESaIS2_EEC2ESt16initializer_listIS2_ERKS3_,@function
_ZNSt6vectorIPN2rt4NodeESaIS2_EEC2ESt16initializer_listIS2_ERKS3_: # @_ZNSt6vectorIPN2rt4NodeESaIS2_EEC2ESt16initializer_listIS2_ERKS3_
.Lfunc_begin4:
	.cfi_startproc
	.cfi_personality 3, __gxx_personality_v0
	.cfi_lsda 3, .Lexception4
# %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	(%rsi,%rdx,8), %rdx
.Ltmp62:
	callq	_ZNSt6vectorIPN2rt4NodeESaIS2_EE19_M_range_initializeIPKS2_EEvT_S8_St20forward_iterator_tag
.Ltmp63:
# %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
.LBB4_2:
	.cfi_def_cfa_offset 32
.Ltmp64:
	movq	%rax, %r14
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	.LBB4_4
# %bb.3:
	callq	_ZdlPv
.LBB4_4:                                # %_ZNSt12_Vector_baseIPN2rt4NodeESaIS2_EED2Ev.exit
	movq	%r14, %rdi
	callq	_Unwind_Resume@PLT
.Lfunc_end4:
	.size	_ZNSt6vectorIPN2rt4NodeESaIS2_EEC2ESt16initializer_listIS2_ERKS3_, .Lfunc_end4-_ZNSt6vectorIPN2rt4NodeESaIS2_EEC2ESt16initializer_listIS2_ERKS3_
	.cfi_endproc
	.section	.gcc_except_table._ZNSt6vectorIPN2rt4NodeESaIS2_EEC2ESt16initializer_listIS2_ERKS3_,"aG",@progbits,_ZNSt6vectorIPN2rt4NodeESaIS2_EEC2ESt16initializer_listIS2_ERKS3_,comdat
	.p2align	2, 0x0
GCC_except_table4:
.Lexception4:
	.byte	255                             # @LPStart Encoding = omit
	.byte	255                             # @TType Encoding = omit
	.byte	1                               # Call site Encoding = uleb128
	.uleb128 .Lcst_end4-.Lcst_begin4
.Lcst_begin4:
	.uleb128 .Ltmp62-.Lfunc_begin4          # >> Call Site 1 <<
	.uleb128 .Ltmp63-.Ltmp62                #   Call between .Ltmp62 and .Ltmp63
	.uleb128 .Ltmp64-.Lfunc_begin4          #     jumps to .Ltmp64
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp63-.Lfunc_begin4          # >> Call Site 2 <<
	.uleb128 .Lfunc_end4-.Ltmp63            #   Call between .Ltmp63 and .Lfunc_end4
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
.Lcst_end4:
	.p2align	2, 0x0
                                        # -- End function
	.section	.text._ZNSt6vectorIPfSaIS0_EEC2ESt16initializer_listIS0_ERKS1_,"axG",@progbits,_ZNSt6vectorIPfSaIS0_EEC2ESt16initializer_listIS0_ERKS1_,comdat
	.weak	_ZNSt6vectorIPfSaIS0_EEC2ESt16initializer_listIS0_ERKS1_ # -- Begin function _ZNSt6vectorIPfSaIS0_EEC2ESt16initializer_listIS0_ERKS1_
	.p2align	1, 0x90
	.type	_ZNSt6vectorIPfSaIS0_EEC2ESt16initializer_listIS0_ERKS1_,@function
_ZNSt6vectorIPfSaIS0_EEC2ESt16initializer_listIS0_ERKS1_: # @_ZNSt6vectorIPfSaIS0_EEC2ESt16initializer_listIS0_ERKS1_
.Lfunc_begin5:
	.cfi_startproc
	.cfi_personality 3, __gxx_personality_v0
	.cfi_lsda 3, .Lexception5
# %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	(%rsi,%rdx,8), %rdx
.Ltmp65:
	callq	_ZNSt6vectorIPfSaIS0_EE19_M_range_initializeIPKS0_EEvT_S6_St20forward_iterator_tag
.Ltmp66:
# %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
.LBB5_2:
	.cfi_def_cfa_offset 32
.Ltmp67:
	movq	%rax, %r14
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	.LBB5_4
# %bb.3:
	callq	_ZdlPv
.LBB5_4:                                # %_ZNSt12_Vector_baseIPfSaIS0_EED2Ev.exit
	movq	%r14, %rdi
	callq	_Unwind_Resume@PLT
.Lfunc_end5:
	.size	_ZNSt6vectorIPfSaIS0_EEC2ESt16initializer_listIS0_ERKS1_, .Lfunc_end5-_ZNSt6vectorIPfSaIS0_EEC2ESt16initializer_listIS0_ERKS1_
	.cfi_endproc
	.section	.gcc_except_table._ZNSt6vectorIPfSaIS0_EEC2ESt16initializer_listIS0_ERKS1_,"aG",@progbits,_ZNSt6vectorIPfSaIS0_EEC2ESt16initializer_listIS0_ERKS1_,comdat
	.p2align	2, 0x0
GCC_except_table5:
.Lexception5:
	.byte	255                             # @LPStart Encoding = omit
	.byte	255                             # @TType Encoding = omit
	.byte	1                               # Call site Encoding = uleb128
	.uleb128 .Lcst_end5-.Lcst_begin5
.Lcst_begin5:
	.uleb128 .Ltmp65-.Lfunc_begin5          # >> Call Site 1 <<
	.uleb128 .Ltmp66-.Ltmp65                #   Call between .Ltmp65 and .Ltmp66
	.uleb128 .Ltmp67-.Lfunc_begin5          #     jumps to .Ltmp67
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp66-.Lfunc_begin5          # >> Call Site 2 <<
	.uleb128 .Lfunc_end5-.Ltmp66            #   Call between .Ltmp66 and .Lfunc_end5
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
.Lcst_end5:
	.p2align	2, 0x0
                                        # -- End function
	.text
	.globl	_ZN3ops9MatMulAdd10child_gradEmPNS_2OpE # -- Begin function _ZN3ops9MatMulAdd10child_gradEmPNS_2OpE
	.p2align	1, 0x90
	.type	_ZN3ops9MatMulAdd10child_gradEmPNS_2OpE,@function
_ZN3ops9MatMulAdd10child_gradEmPNS_2OpE: # @_ZN3ops9MatMulAdd10child_gradEmPNS_2OpE
.Lfunc_begin6:
	.cfi_startproc
	.cfi_personality 3, __gxx_personality_v0
	.cfi_lsda 3, .Lexception6
# %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
	testq	%rdx, %rdx
	je	.LBB6_10
# %bb.1:                                # %_ZNSt6vectorIPN3ops2OpESaIS2_EED2Ev.exit17
	movq	%rdx, %rbx
	movq	%rsi, %r15
	movq	%rdi, %r13
	callq	_ZN3ops10OpsBuilder8instanceEv
	movq	%rax, %r14
	leaq	16(%rsp), %r12
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_ZN3ops2Op5predsEv
	movq	(%r12), %rdi
	movq	(%rdi), %rax
	movq	%rax, 8(%rsp)                   # 8-byte Spill
	callq	_ZdlPv
	leaq	16(%rsp), %rbp
	movq	%rbp, %rdi
	movq	%r13, %rsi
	callq	_ZN3ops2Op5predsEv
	movq	(%rbp), %rdi
	movq	8(%rdi), %rbp
	callq	_ZdlPv
	leaq	16(%rsp), %r12
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_ZN3ops2Op5predsEv
	movq	(%r12), %rdi
	testq	%rdi, %rdi
	je	.LBB6_3
# %bb.2:
	callq	_ZdlPv
.LBB6_3:                                # %_ZNSt6vectorIPN3ops2OpESaIS2_EED2Ev.exit19
	movq	%r14, %rdi
	cmpq	$1, %r15
	je	.LBB6_7
# %bb.4:                                # %_ZNSt6vectorIPN3ops2OpESaIS2_EED2Ev.exit19
	movq	%rbx, %rsi
	testq	%r15, %r15
	jne	.LBB6_8
# %bb.5:
	movq	%rbp, %rdx
	xorl	%ecx, %ecx
	movl	$1, %r8d
	jmp	.LBB6_6
.LBB6_7:
	movq	8(%rsp), %rsi                   # 8-byte Reload
	movq	%rbx, %rdx
	movl	$1, %ecx
	xorl	%r8d, %r8d
.LBB6_6:
	callq	_ZN3ops10OpsBuilder11mat_mat_mulEPNS_2OpES2_bb
	jmp	.LBB6_9
.LBB6_8:
	xorl	%edx, %edx
	callq	_ZN3ops10OpsBuilder7mat_sumEPNS_2OpEm
.LBB6_9:
	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
.LBB6_10:
	.cfi_def_cfa_offset 96
	movl	$16, %edi
	callq	__cxa_allocate_exception
	movq	%rax, %rbx
.Ltmp68:
	movl	$.L.str.1, %esi
	movq	%rax, %rdi
	callq	_ZNSt13runtime_errorC1EPKc
.Ltmp69:
# %bb.11:
	movl	$_ZTISt13runtime_error, %esi
	movl	$_ZNSt13runtime_errorD1Ev, %edx
	movq	%rbx, %rdi
	callq	__cxa_throw
.LBB6_12:
.Ltmp70:
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	__cxa_free_exception
	movq	%r14, %rdi
	callq	_Unwind_Resume@PLT
.Lfunc_end6:
	.size	_ZN3ops9MatMulAdd10child_gradEmPNS_2OpE, .Lfunc_end6-_ZN3ops9MatMulAdd10child_gradEmPNS_2OpE
	.cfi_endproc
	.section	.gcc_except_table,"a",@progbits
	.p2align	2, 0x0
GCC_except_table6:
.Lexception6:
	.byte	255                             # @LPStart Encoding = omit
	.byte	255                             # @TType Encoding = omit
	.byte	1                               # Call site Encoding = uleb128
	.uleb128 .Lcst_end6-.Lcst_begin6
.Lcst_begin6:
	.uleb128 .Lfunc_begin6-.Lfunc_begin6    # >> Call Site 1 <<
	.uleb128 .Ltmp68-.Lfunc_begin6          #   Call between .Lfunc_begin6 and .Ltmp68
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp68-.Lfunc_begin6          # >> Call Site 2 <<
	.uleb128 .Ltmp69-.Ltmp68                #   Call between .Ltmp68 and .Ltmp69
	.uleb128 .Ltmp70-.Lfunc_begin6          #     jumps to .Ltmp70
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp69-.Lfunc_begin6          # >> Call Site 3 <<
	.uleb128 .Lfunc_end6-.Ltmp69            #   Call between .Ltmp69 and .Lfunc_end6
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
.Lcst_end6:
	.p2align	2, 0x0
                                        # -- End function
	.section	.text._ZN3ops2OpD2Ev,"axG",@progbits,_ZN3ops2OpD2Ev,comdat
	.weak	_ZN3ops2OpD2Ev                  # -- Begin function _ZN3ops2OpD2Ev
	.p2align	1, 0x90
	.type	_ZN3ops2OpD2Ev,@function
_ZN3ops2OpD2Ev:                         # @_ZN3ops2OpD2Ev
	.cfi_startproc
# %bb.0:
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset %rbx, -16
	movq	%rdi, %rbx
	movq	$_ZTVN3ops2OpE+16, (%rdi)
	movq	88(%rdi), %rdi
	testq	%rdi, %rdi
	je	.LBB7_2
# %bb.1:
	callq	_ZdlPv
.LBB7_2:                                # %_ZNSt6vectorIPN3ops2OpESaIS2_EED2Ev.exit
	movq	64(%rbx), %rdi
	testq	%rdi, %rdi
	je	.LBB7_4
# %bb.3:
	callq	_ZdlPv
.LBB7_4:                                # %_ZNSt6vectorIPN3ops2OpESaIS2_EED2Ev.exit2
	movq	40(%rbx), %rdi
	testq	%rdi, %rdi
	je	.LBB7_6
# %bb.5:
	callq	_ZdlPv
.LBB7_6:                                # %_ZN3ops5ShapeD2Ev.exit
	movq	8(%rbx), %rdi
	addq	$24, %rbx
	cmpq	%rbx, %rdi
	je	.LBB7_7
# %bb.8:                                # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i
	popq	%rbx
	.cfi_def_cfa_offset 8
	jmp	_ZdlPv                          # TAILCALL
.LBB7_7:                                # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit
	.cfi_def_cfa_offset 16
	popq	%rbx
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end7:
	.size	_ZN3ops2OpD2Ev, .Lfunc_end7-_ZN3ops2OpD2Ev
	.cfi_endproc
                                        # -- End function
	.section	.text._ZN3ops9MatMulAddD0Ev,"axG",@progbits,_ZN3ops9MatMulAddD0Ev,comdat
	.weak	_ZN3ops9MatMulAddD0Ev           # -- Begin function _ZN3ops9MatMulAddD0Ev
	.p2align	1, 0x90
	.type	_ZN3ops9MatMulAddD0Ev,@function
_ZN3ops9MatMulAddD0Ev:                  # @_ZN3ops9MatMulAddD0Ev
	.cfi_startproc
# %bb.0:
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset %rbx, -16
	movq	%rdi, %rbx
	callq	_ZN3ops2OpD2Ev
	movq	%rbx, %rdi
	popq	%rbx
	.cfi_def_cfa_offset 8
	jmp	_ZdlPv                          # TAILCALL
.Lfunc_end8:
	.size	_ZN3ops9MatMulAddD0Ev, .Lfunc_end8-_ZN3ops9MatMulAddD0Ev
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt6vectorIiSaIiEE19_M_range_initializeIPKiEEvT_S5_St20forward_iterator_tag,"axG",@progbits,_ZNSt6vectorIiSaIiEE19_M_range_initializeIPKiEEvT_S5_St20forward_iterator_tag,comdat
	.weak	_ZNSt6vectorIiSaIiEE19_M_range_initializeIPKiEEvT_S5_St20forward_iterator_tag # -- Begin function _ZNSt6vectorIiSaIiEE19_M_range_initializeIPKiEEvT_S5_St20forward_iterator_tag
	.p2align	1, 0x90
	.type	_ZNSt6vectorIiSaIiEE19_M_range_initializeIPKiEEvT_S5_St20forward_iterator_tag,@function
_ZNSt6vectorIiSaIiEE19_M_range_initializeIPKiEEvT_S5_St20forward_iterator_tag: # @_ZNSt6vectorIiSaIiEE19_M_range_initializeIPKiEEvT_S5_St20forward_iterator_tag
	.cfi_startproc
# %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, %r14
	subq	%rsi, %r14
	movq	%r14, %r13
	sarq	$2, %r13
	movq	%r13, %rax
	shrq	$61, %rax
	jne	.LBB9_9
# %bb.1:                                # %_ZNSt6vectorIiSaIiEE17_S_check_init_lenEmRKS0_.exit
	movq	%rsi, %r15
	movq	%rdi, %rbx
	cmpq	%rsi, %rdx
	je	.LBB9_2
# %bb.3:
	movq	%rbx, %rdi
	movq	%r13, %rsi
	xorl	%edx, %edx
	callq	_ZNSt15__new_allocatorIiE8allocateEmPKv
	movq	%rax, %r12
	jmp	.LBB9_4
.LBB9_2:
	xorl	%r12d, %r12d
.LBB9_4:                                # %_ZNSt12_Vector_baseIiSaIiEE11_M_allocateEm.exit
	movq	%r12, (%rbx)
	leaq	(%r12,%r13,4), %rax
	movq	%rax, 16(%rbx)
	cmpq	$5, %r14
	jl	.LBB9_6
# %bb.5:
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	memmove@PLT
.LBB9_8:                                # %_ZSt22__uninitialized_copy_aIPKiPiiET0_T_S4_S3_RSaIT1_E.exit
	addq	%r14, %r12
	movq	%r12, 8(%rbx)
	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
.LBB9_6:
	.cfi_def_cfa_offset 48
	cmpq	$4, %r14
	jne	.LBB9_8
# %bb.7:
	movl	(%r15), %eax
	movl	%eax, (%r12)
	jmp	.LBB9_8
.LBB9_9:
	movl	$.L.str.2, %edi
	callq	_ZSt20__throw_length_errorPKc
.Lfunc_end9:
	.size	_ZNSt6vectorIiSaIiEE19_M_range_initializeIPKiEEvT_S5_St20forward_iterator_tag, .Lfunc_end9-_ZNSt6vectorIiSaIiEE19_M_range_initializeIPKiEEvT_S5_St20forward_iterator_tag
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt15__new_allocatorIiE8allocateEmPKv,"axG",@progbits,_ZNSt15__new_allocatorIiE8allocateEmPKv,comdat
	.weak	_ZNSt15__new_allocatorIiE8allocateEmPKv # -- Begin function _ZNSt15__new_allocatorIiE8allocateEmPKv
	.p2align	1, 0x90
	.type	_ZNSt15__new_allocatorIiE8allocateEmPKv,@function
_ZNSt15__new_allocatorIiE8allocateEmPKv: # @_ZNSt15__new_allocatorIiE8allocateEmPKv
	.cfi_startproc
# %bb.0:
	pushq	%rax
	.cfi_def_cfa_offset 16
	movq	%rsi, %rax
	shrq	$61, %rax
	jne	.LBB10_1
# %bb.3:
	shlq	$2, %rsi
	movq	%rsi, %rdi
	popq	%rax
	.cfi_def_cfa_offset 8
	jmp	_Znwm                           # TAILCALL
.LBB10_1:
	.cfi_def_cfa_offset 16
	shrq	$62, %rsi
	je	.LBB10_2
# %bb.4:
	callq	_ZSt28__throw_bad_array_new_lengthv
.LBB10_2:
	callq	_ZSt17__throw_bad_allocv
.Lfunc_end10:
	.size	_ZNSt15__new_allocatorIiE8allocateEmPKv, .Lfunc_end10-_ZNSt15__new_allocatorIiE8allocateEmPKv
	.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	.LBB11_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	.LBB11_3
.LBB11_1:                               # %._crit_edge
	movq	(%rbx), %rax
.LBB11_3:
	testq	%r14, %r14
	je	.LBB11_7
# %bb.4:
	cmpq	$1, %r14
	jne	.LBB11_6
# %bb.5:
	movb	(%r15), %cl
	movb	%cl, (%rax)
	jmp	.LBB11_7
.LBB11_6:
	movq	%rax, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	memcpy@PLT
.LBB11_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_end11:
	.size	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag, .Lfunc_end11-_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt6vectorIPN3ops2OpESaIS2_EE19_M_range_initializeIPKS2_EEvT_S8_St20forward_iterator_tag,"axG",@progbits,_ZNSt6vectorIPN3ops2OpESaIS2_EE19_M_range_initializeIPKS2_EEvT_S8_St20forward_iterator_tag,comdat
	.weak	_ZNSt6vectorIPN3ops2OpESaIS2_EE19_M_range_initializeIPKS2_EEvT_S8_St20forward_iterator_tag # -- Begin function _ZNSt6vectorIPN3ops2OpESaIS2_EE19_M_range_initializeIPKS2_EEvT_S8_St20forward_iterator_tag
	.p2align	1, 0x90
	.type	_ZNSt6vectorIPN3ops2OpESaIS2_EE19_M_range_initializeIPKS2_EEvT_S8_St20forward_iterator_tag,@function
_ZNSt6vectorIPN3ops2OpESaIS2_EE19_M_range_initializeIPKS2_EEvT_S8_St20forward_iterator_tag: # @_ZNSt6vectorIPN3ops2OpESaIS2_EE19_M_range_initializeIPKS2_EEvT_S8_St20forward_iterator_tag
	.cfi_startproc
# %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, %r14
	subq	%rsi, %r14
	movq	%r14, %r13
	sarq	$3, %r13
	movq	%r13, %rax
	shrq	$60, %rax
	jne	.LBB12_9
# %bb.1:                                # %_ZNSt6vectorIPN3ops2OpESaIS2_EE17_S_check_init_lenEmRKS3_.exit
	movq	%rsi, %r15
	movq	%rdi, %rbx
	cmpq	%rsi, %rdx
	je	.LBB12_2
# %bb.3:
	movq	%rbx, %rdi
	movq	%r13, %rsi
	xorl	%edx, %edx
	callq	_ZNSt15__new_allocatorIPN3ops2OpEE8allocateEmPKv
	movq	%rax, %r12
	jmp	.LBB12_4
.LBB12_2:
	xorl	%r12d, %r12d
.LBB12_4:                               # %_ZNSt12_Vector_baseIPN3ops2OpESaIS2_EE11_M_allocateEm.exit
	movq	%r12, (%rbx)
	leaq	(%r12,%r13,8), %rax
	movq	%rax, 16(%rbx)
	cmpq	$9, %r14
	jl	.LBB12_6
# %bb.5:
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	memmove@PLT
.LBB12_8:                               # %_ZSt22__uninitialized_copy_aIPKPN3ops2OpEPS2_S2_ET0_T_S7_S6_RSaIT1_E.exit
	addq	%r14, %r12
	movq	%r12, 8(%rbx)
	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_6:
	.cfi_def_cfa_offset 48
	cmpq	$8, %r14
	jne	.LBB12_8
# %bb.7:
	movq	(%r15), %rax
	movq	%rax, (%r12)
	jmp	.LBB12_8
.LBB12_9:
	movl	$.L.str.2, %edi
	callq	_ZSt20__throw_length_errorPKc
.Lfunc_end12:
	.size	_ZNSt6vectorIPN3ops2OpESaIS2_EE19_M_range_initializeIPKS2_EEvT_S8_St20forward_iterator_tag, .Lfunc_end12-_ZNSt6vectorIPN3ops2OpESaIS2_EE19_M_range_initializeIPKS2_EEvT_S8_St20forward_iterator_tag
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt15__new_allocatorIPN3ops2OpEE8allocateEmPKv,"axG",@progbits,_ZNSt15__new_allocatorIPN3ops2OpEE8allocateEmPKv,comdat
	.weak	_ZNSt15__new_allocatorIPN3ops2OpEE8allocateEmPKv # -- Begin function _ZNSt15__new_allocatorIPN3ops2OpEE8allocateEmPKv
	.p2align	1, 0x90
	.type	_ZNSt15__new_allocatorIPN3ops2OpEE8allocateEmPKv,@function
_ZNSt15__new_allocatorIPN3ops2OpEE8allocateEmPKv: # @_ZNSt15__new_allocatorIPN3ops2OpEE8allocateEmPKv
	.cfi_startproc
# %bb.0:
	pushq	%rax
	.cfi_def_cfa_offset 16
	movq	%rsi, %rax
	shrq	$60, %rax
	jne	.LBB13_1
# %bb.3:
	shlq	$3, %rsi
	movq	%rsi, %rdi
	popq	%rax
	.cfi_def_cfa_offset 8
	jmp	_Znwm                           # TAILCALL
.LBB13_1:
	.cfi_def_cfa_offset 16
	shrq	$61, %rsi
	je	.LBB13_2
# %bb.4:
	callq	_ZSt28__throw_bad_array_new_lengthv
.LBB13_2:
	callq	_ZSt17__throw_bad_allocv
.Lfunc_end13:
	.size	_ZNSt15__new_allocatorIPN3ops2OpEE8allocateEmPKv, .Lfunc_end13-_ZNSt15__new_allocatorIPN3ops2OpEE8allocateEmPKv
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt6vectorIPN2rt4NodeESaIS2_EE19_M_range_initializeIPKS2_EEvT_S8_St20forward_iterator_tag,"axG",@progbits,_ZNSt6vectorIPN2rt4NodeESaIS2_EE19_M_range_initializeIPKS2_EEvT_S8_St20forward_iterator_tag,comdat
	.weak	_ZNSt6vectorIPN2rt4NodeESaIS2_EE19_M_range_initializeIPKS2_EEvT_S8_St20forward_iterator_tag # -- Begin function _ZNSt6vectorIPN2rt4NodeESaIS2_EE19_M_range_initializeIPKS2_EEvT_S8_St20forward_iterator_tag
	.p2align	1, 0x90
	.type	_ZNSt6vectorIPN2rt4NodeESaIS2_EE19_M_range_initializeIPKS2_EEvT_S8_St20forward_iterator_tag,@function
_ZNSt6vectorIPN2rt4NodeESaIS2_EE19_M_range_initializeIPKS2_EEvT_S8_St20forward_iterator_tag: # @_ZNSt6vectorIPN2rt4NodeESaIS2_EE19_M_range_initializeIPKS2_EEvT_S8_St20forward_iterator_tag
	.cfi_startproc
# %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, %r14
	subq	%rsi, %r14
	movq	%r14, %r13
	sarq	$3, %r13
	movq	%r13, %rax
	shrq	$60, %rax
	jne	.LBB14_9
# %bb.1:                                # %_ZNSt6vectorIPN2rt4NodeESaIS2_EE17_S_check_init_lenEmRKS3_.exit
	movq	%rsi, %r15
	movq	%rdi, %rbx
	cmpq	%rsi, %rdx
	je	.LBB14_2
# %bb.3:
	movq	%rbx, %rdi
	movq	%r13, %rsi
	xorl	%edx, %edx
	callq	_ZNSt15__new_allocatorIPN2rt4NodeEE8allocateEmPKv
	movq	%rax, %r12
	jmp	.LBB14_4
.LBB14_2:
	xorl	%r12d, %r12d
.LBB14_4:                               # %_ZNSt12_Vector_baseIPN2rt4NodeESaIS2_EE11_M_allocateEm.exit
	movq	%r12, (%rbx)
	leaq	(%r12,%r13,8), %rax
	movq	%rax, 16(%rbx)
	cmpq	$9, %r14
	jl	.LBB14_6
# %bb.5:
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	memmove@PLT
.LBB14_8:                               # %_ZSt22__uninitialized_copy_aIPKPN2rt4NodeEPS2_S2_ET0_T_S7_S6_RSaIT1_E.exit
	addq	%r14, %r12
	movq	%r12, 8(%rbx)
	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
.LBB14_6:
	.cfi_def_cfa_offset 48
	cmpq	$8, %r14
	jne	.LBB14_8
# %bb.7:
	movq	(%r15), %rax
	movq	%rax, (%r12)
	jmp	.LBB14_8
.LBB14_9:
	movl	$.L.str.2, %edi
	callq	_ZSt20__throw_length_errorPKc
.Lfunc_end14:
	.size	_ZNSt6vectorIPN2rt4NodeESaIS2_EE19_M_range_initializeIPKS2_EEvT_S8_St20forward_iterator_tag, .Lfunc_end14-_ZNSt6vectorIPN2rt4NodeESaIS2_EE19_M_range_initializeIPKS2_EEvT_S8_St20forward_iterator_tag
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt15__new_allocatorIPN2rt4NodeEE8allocateEmPKv,"axG",@progbits,_ZNSt15__new_allocatorIPN2rt4NodeEE8allocateEmPKv,comdat
	.weak	_ZNSt15__new_allocatorIPN2rt4NodeEE8allocateEmPKv # -- Begin function _ZNSt15__new_allocatorIPN2rt4NodeEE8allocateEmPKv
	.p2align	1, 0x90
	.type	_ZNSt15__new_allocatorIPN2rt4NodeEE8allocateEmPKv,@function
_ZNSt15__new_allocatorIPN2rt4NodeEE8allocateEmPKv: # @_ZNSt15__new_allocatorIPN2rt4NodeEE8allocateEmPKv
	.cfi_startproc
# %bb.0:
	pushq	%rax
	.cfi_def_cfa_offset 16
	movq	%rsi, %rax
	shrq	$60, %rax
	jne	.LBB15_1
# %bb.3:
	shlq	$3, %rsi
	movq	%rsi, %rdi
	popq	%rax
	.cfi_def_cfa_offset 8
	jmp	_Znwm                           # TAILCALL
.LBB15_1:
	.cfi_def_cfa_offset 16
	shrq	$61, %rsi
	je	.LBB15_2
# %bb.4:
	callq	_ZSt28__throw_bad_array_new_lengthv
.LBB15_2:
	callq	_ZSt17__throw_bad_allocv
.Lfunc_end15:
	.size	_ZNSt15__new_allocatorIPN2rt4NodeEE8allocateEmPKv, .Lfunc_end15-_ZNSt15__new_allocatorIPN2rt4NodeEE8allocateEmPKv
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt6vectorIPfSaIS0_EE19_M_range_initializeIPKS0_EEvT_S6_St20forward_iterator_tag,"axG",@progbits,_ZNSt6vectorIPfSaIS0_EE19_M_range_initializeIPKS0_EEvT_S6_St20forward_iterator_tag,comdat
	.weak	_ZNSt6vectorIPfSaIS0_EE19_M_range_initializeIPKS0_EEvT_S6_St20forward_iterator_tag # -- Begin function _ZNSt6vectorIPfSaIS0_EE19_M_range_initializeIPKS0_EEvT_S6_St20forward_iterator_tag
	.p2align	1, 0x90
	.type	_ZNSt6vectorIPfSaIS0_EE19_M_range_initializeIPKS0_EEvT_S6_St20forward_iterator_tag,@function
_ZNSt6vectorIPfSaIS0_EE19_M_range_initializeIPKS0_EEvT_S6_St20forward_iterator_tag: # @_ZNSt6vectorIPfSaIS0_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	%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, %r14
	subq	%rsi, %r14
	movq	%r14, %r13
	sarq	$3, %r13
	movq	%r13, %rax
	shrq	$60, %rax
	jne	.LBB16_9
# %bb.1:                                # %_ZNSt6vectorIPfSaIS0_EE17_S_check_init_lenEmRKS1_.exit
	movq	%rsi, %r15
	movq	%rdi, %rbx
	cmpq	%rsi, %rdx
	je	.LBB16_2
# %bb.3:
	movq	%rbx, %rdi
	movq	%r13, %rsi
	xorl	%edx, %edx
	callq	_ZNSt15__new_allocatorIPfE8allocateEmPKv
	movq	%rax, %r12
	jmp	.LBB16_4
.LBB16_2:
	xorl	%r12d, %r12d
.LBB16_4:                               # %_ZNSt12_Vector_baseIPfSaIS0_EE11_M_allocateEm.exit
	movq	%r12, (%rbx)
	leaq	(%r12,%r13,8), %rax
	movq	%rax, 16(%rbx)
	cmpq	$9, %r14
	jl	.LBB16_6
# %bb.5:
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	memmove@PLT
.LBB16_8:                               # %_ZSt22__uninitialized_copy_aIPKPfPS0_S0_ET0_T_S5_S4_RSaIT1_E.exit
	addq	%r14, %r12
	movq	%r12, 8(%rbx)
	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
.LBB16_6:
	.cfi_def_cfa_offset 48
	cmpq	$8, %r14
	jne	.LBB16_8
# %bb.7:
	movq	(%r15), %rax
	movq	%rax, (%r12)
	jmp	.LBB16_8
.LBB16_9:
	movl	$.L.str.2, %edi
	callq	_ZSt20__throw_length_errorPKc
.Lfunc_end16:
	.size	_ZNSt6vectorIPfSaIS0_EE19_M_range_initializeIPKS0_EEvT_S6_St20forward_iterator_tag, .Lfunc_end16-_ZNSt6vectorIPfSaIS0_EE19_M_range_initializeIPKS0_EEvT_S6_St20forward_iterator_tag
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt15__new_allocatorIPfE8allocateEmPKv,"axG",@progbits,_ZNSt15__new_allocatorIPfE8allocateEmPKv,comdat
	.weak	_ZNSt15__new_allocatorIPfE8allocateEmPKv # -- Begin function _ZNSt15__new_allocatorIPfE8allocateEmPKv
	.p2align	1, 0x90
	.type	_ZNSt15__new_allocatorIPfE8allocateEmPKv,@function
_ZNSt15__new_allocatorIPfE8allocateEmPKv: # @_ZNSt15__new_allocatorIPfE8allocateEmPKv
	.cfi_startproc
# %bb.0:
	pushq	%rax
	.cfi_def_cfa_offset 16
	movq	%rsi, %rax
	shrq	$60, %rax
	jne	.LBB17_1
# %bb.3:
	shlq	$3, %rsi
	movq	%rsi, %rdi
	popq	%rax
	.cfi_def_cfa_offset 8
	jmp	_Znwm                           # TAILCALL
.LBB17_1:
	.cfi_def_cfa_offset 16
	shrq	$61, %rsi
	je	.LBB17_2
# %bb.4:
	callq	_ZSt28__throw_bad_array_new_lengthv
.LBB17_2:
	callq	_ZSt17__throw_bad_allocv
.Lfunc_end17:
	.size	_ZNSt15__new_allocatorIPfE8allocateEmPKv, .Lfunc_end17-_ZNSt15__new_allocatorIPfE8allocateEmPKv
	.cfi_endproc
                                        # -- End function
	.type	.L.str,@object                  # @.str
	.section	.rodata.str1.1,"aMS",@progbits,1
.L.str:
	.asciz	"mat_mul_add"
	.size	.L.str, 12

	.type	_ZTVN3ops9MatMulAddE,@object    # @_ZTVN3ops9MatMulAddE
	.section	.rodata,"a",@progbits
	.globl	_ZTVN3ops9MatMulAddE
	.p2align	3, 0x0
_ZTVN3ops9MatMulAddE:
	.quad	0
	.quad	_ZTIN3ops9MatMulAddE
	.quad	_ZN3ops2OpD2Ev
	.quad	_ZN3ops9MatMulAddD0Ev
	.quad	_ZN3ops9MatMulAdd7compileEv
	.quad	_ZN3ops9MatMulAdd10child_gradEmPNS_2OpE
	.size	_ZTVN3ops9MatMulAddE, 48

	.type	.L.str.1,@object                # @.str.1
	.section	.rodata.str1.1,"aMS",@progbits,1
.L.str.1:
	.asciz	"MatMullAdd can't be the final node of the gradient"
	.size	.L.str.1, 51

	.type	_ZTSN3ops9MatMulAddE,@object    # @_ZTSN3ops9MatMulAddE
	.section	.rodata,"a",@progbits
	.globl	_ZTSN3ops9MatMulAddE
_ZTSN3ops9MatMulAddE:
	.asciz	"N3ops9MatMulAddE"
	.size	_ZTSN3ops9MatMulAddE, 17

	.type	_ZTIN3ops9MatMulAddE,@object    # @_ZTIN3ops9MatMulAddE
	.globl	_ZTIN3ops9MatMulAddE
	.p2align	3, 0x0
_ZTIN3ops9MatMulAddE:
	.quad	_ZTVN10__cxxabiv120__si_class_type_infoE+16
	.quad	_ZTSN3ops9MatMulAddE
	.quad	_ZTIN3ops2OpE
	.size	_ZTIN3ops9MatMulAddE, 24

	.type	.L.str.2,@object                # @.str.2
	.section	.rodata.str1.1,"aMS",@progbits,1
.L.str.2:
	.asciz	"cannot create std::vector larger than max_size()"
	.size	.L.str.2, 49

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

	.globl	_ZN3ops9MatMulAddC1EPNS_2OpES2_S2_
	.type	_ZN3ops9MatMulAddC1EPNS_2OpES2_S2_,@function
.set _ZN3ops9MatMulAddC1EPNS_2OpES2_S2_, _ZN3ops9MatMulAddC2EPNS_2OpES2_S2_
	.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 _ZTISt13runtime_error
	.addrsig_sym _ZTVN10__cxxabiv120__si_class_type_infoE
	.addrsig_sym _ZTSN3ops9MatMulAddE
	.addrsig_sym _ZTIN3ops2OpE
	.addrsig_sym _ZTIN3ops9MatMulAddE
	.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
