#include <stdexcept>

#include "reshape.hh"
#include "graph.hh"
#include "../runtime/graph.hh"
#include "../runtime/node.hh"
#include "../memory/alloc.hh"
#include "ops-builder.hh"
#include <cassert>
#include <stdexcept>

namespace ops
{

    Reshape::Reshape(Op* arg, const Shape& shape)
        : Op("reshape", shape, {arg})
        , m_initial_size(arg->shape_get())
    {}

    void Reshape::compile()
    {
        auto& g = Graph::instance();
        auto& carg = g.compiled(preds()[0]);
        auto& new_shape = shape_get();

        if (new_shape.defined())
        {
            auto node = rt::Node::nop({carg.out_node});
            g.add_compiled(this, {node}, {}, node, new_shape, carg.out_data);
        }
        else
        {
            auto& carg_shape = carg.out_shape;
            std::vector<int> new_dims;
            for (auto x : new_shape.dims())
                if (x == -1)
                    new_dims.push_back((int) (carg_shape.total() / (- new_shape.total())));
                else
                    new_dims.push_back(x);

            auto node = rt::Node::nop({carg.out_node});
            g.add_compiled(this, {node}, {}, node, Shape(new_dims), carg.out_data);
        }
    }

    Op* Reshape::child_grad(std::size_t index, Op* dout)
    {
        assert(index < 1);
        if (dout == nullptr)
            throw std::runtime_error {"reshape dout must not be null"};
        auto& builder = OpsBuilder::instance();

        return builder.reshape(dout, m_initial_size);
    }
}

	.file	"tmpxft_002c8a48_00000000-6_reshape.cudafe1.cpp"
	.text
#APP
	.globl _ZSt21ios_base_library_initv

	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"reshape dout must not be null"
#NO_APP
	.text
	.align 2
	.globl	_ZN3ops7Reshape10child_gradEmPNS_2OpE
	.type	_ZN3ops7Reshape10child_gradEmPNS_2OpE, @function
_ZN3ops7Reshape10child_gradEmPNS_2OpE:
.LFB4602:
	.cfi_startproc
	.cfi_personality 0x9b,DW.ref.__gxx_personality_v0
	.cfi_lsda 0x1b,.LLSDA4602
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	pushq	%rcx
	.cfi_def_cfa_offset 32
	testq	%rdx, %rdx
	jne	.L2
	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	_ZNSt13runtime_errorD1Ev@GOTPCREL(%rip), %rdx
	leaq	_ZTISt13runtime_error(%rip), %rsi
	movq	%rbx, %rdi
.LEHB1:
	call	__cxa_throw@PLT
.L2:
	movq	%rdi, %rbp
	movq	%rdx, %rbx
	call	_ZN3ops10OpsBuilder8instanceEv@PLT
	movq	112(%rbp), %rdx
	movq	%rbx, %rsi
	movq	%rax, %rdi
	popq	%rax
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	jmp	_ZN3ops10OpsBuilder7reshapeEPNS_2OpERKNS_5ShapeE@PLT
.L4:
	.cfi_restore_state
	endbr64
	movq	%rax, %rbp
.L3:
	movq	%rbx, %rdi
	call	__cxa_free_exception@PLT
	movq	%rbp, %rdi
	call	_Unwind_Resume@PLT
.LEHE1:
	.cfi_endproc
.LFE4602:
	.globl	__gxx_personality_v0
	.section	.gcc_except_table,"a",@progbits
.LLSDA4602:
	.byte	0xff
	.byte	0xff
	.byte	0x1
	.uleb128 .LLSDACSE4602-.LLSDACSB4602
.LLSDACSB4602:
	.uleb128 .LEHB0-.LFB4602
	.uleb128 .LEHE0-.LEHB0
	.uleb128 .L4-.LFB4602
	.uleb128 0
	.uleb128 .LEHB1-.LFB4602
	.uleb128 .LEHE1-.LEHB1
	.uleb128 0
	.uleb128 0
.LLSDACSE4602:
	.text
	.size	_ZN3ops7Reshape10child_gradEmPNS_2OpE, .-_ZN3ops7Reshape10child_gradEmPNS_2OpE
	.type	_ZL26__cudaUnregisterBinaryUtilv, @function
_ZL26__cudaUnregisterBinaryUtilv:
.LFB4605:
	.cfi_startproc
	endbr64
	movq	_ZL20__cudaFatCubinHandle(%rip), %rdi
	jmp	__cudaUnregisterFatBinary@PLT
	.cfi_endproc
.LFE4605:
	.size	_ZL26__cudaUnregisterBinaryUtilv, .-_ZL26__cudaUnregisterBinaryUtilv
	.align 2
	.type	_ZNSt12_Vector_baseIiSaIiEE11_M_allocateEm.isra.0, @function
_ZNSt12_Vector_baseIiSaIiEE11_M_allocateEm.isra.0:
.LFB5647:
	.cfi_startproc
	testq	%rdi, %rdi
	je	.L9
	movabsq	$2305843009213693951, %rax
	cmpq	%rdi, %rax
	jnb	.L10
	pushq	%rax
	.cfi_def_cfa_offset 16
	movabsq	$4611686018427387903, %rax
	cmpq	%rdi, %rax
	jnb	.L11
	call	_ZSt28__throw_bad_array_new_lengthv@PLT
.L11:
	call	_ZSt17__throw_bad_allocv@PLT
.L10:
	.cfi_def_cfa_offset 8
	salq	$2, %rdi
	jmp	_Znwm@PLT
.L9:
	xorl	%eax, %eax
	ret
	.cfi_endproc
.LFE5647:
	.size	_ZNSt12_Vector_baseIiSaIiEE11_M_allocateEm.isra.0, .-_ZNSt12_Vector_baseIiSaIiEE11_M_allocateEm.isra.0
	.section	.text.startup,"ax",@progbits
	.type	_ZL24__sti____cudaRegisterAllv, @function
_ZL24__sti____cudaRegisterAllv:
.LFB4628:
	.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
.LFE4628:
	.size	_ZL24__sti____cudaRegisterAllv, .-_ZL24__sti____cudaRegisterAllv
	.section	.init_array,"aw"
	.align 8
	.quad	_ZL24__sti____cudaRegisterAllv
	.section	.text._ZNSt6vectorIPfSaIS0_EED2Ev,"axG",@progbits,_ZNSt6vectorIPfSaIS0_EED5Ev,comdat
	.align 2
	.weak	_ZNSt6vectorIPfSaIS0_EED2Ev
	.type	_ZNSt6vectorIPfSaIS0_EED2Ev, @function
_ZNSt6vectorIPfSaIS0_EED2Ev:
.LFB4938:
	.cfi_startproc
	endbr64
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	.L17
	movq	16(%rdi), %rsi
	movq	%rax, %rdi
	subq	%rax, %rsi
	jmp	_ZdlPvm@PLT
.L17:
	ret
	.cfi_endproc
.LFE4938:
	.size	_ZNSt6vectorIPfSaIS0_EED2Ev, .-_ZNSt6vectorIPfSaIS0_EED2Ev
	.weak	_ZNSt6vectorIPfSaIS0_EED1Ev
	.set	_ZNSt6vectorIPfSaIS0_EED1Ev,_ZNSt6vectorIPfSaIS0_EED2Ev
	.section	.text._ZNSt6vectorIiSaIiEED2Ev,"axG",@progbits,_ZNSt6vectorIiSaIiEED5Ev,comdat
	.align 2
	.weak	_ZNSt6vectorIiSaIiEED2Ev
	.type	_ZNSt6vectorIiSaIiEED2Ev, @function
_ZNSt6vectorIiSaIiEED2Ev:
.LFB4944:
	.cfi_startproc
	endbr64
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	.L19
	movq	16(%rdi), %rsi
	movq	%rax, %rdi
	subq	%rax, %rsi
	jmp	_ZdlPvm@PLT
.L19:
	ret
	.cfi_endproc
.LFE4944:
	.size	_ZNSt6vectorIiSaIiEED2Ev, .-_ZNSt6vectorIiSaIiEED2Ev
	.weak	_ZNSt6vectorIiSaIiEED1Ev
	.set	_ZNSt6vectorIiSaIiEED1Ev,_ZNSt6vectorIiSaIiEED2Ev
	.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:
.LFB4973:
	.cfi_startproc
	endbr64
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	.L21
	movq	16(%rdi), %rsi
	movq	%rax, %rdi
	subq	%rax, %rsi
	jmp	_ZdlPvm@PLT
.L21:
	ret
	.cfi_endproc
.LFE4973:
	.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:
.LFB4967:
	.cfi_startproc
	endbr64
	jmp	_ZNSt12_Vector_baseIPN3ops2OpESaIS2_EED2Ev
	.cfi_endproc
.LFE4967:
	.size	_ZNSt6vectorIPN3ops2OpESaIS2_EED2Ev, .-_ZNSt6vectorIPN3ops2OpESaIS2_EED2Ev
	.weak	_ZNSt6vectorIPN3ops2OpESaIS2_EED1Ev
	.set	_ZNSt6vectorIPN3ops2OpESaIS2_EED1Ev,_ZNSt6vectorIPN3ops2OpESaIS2_EED2Ev
	.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._ZN3ops7ReshapeD2Ev,"axG",@progbits,_ZN3ops7ReshapeD5Ev,comdat
	.align 2
	.weak	_ZN3ops7ReshapeD2Ev
	.type	_ZN3ops7ReshapeD2Ev, @function
_ZN3ops7ReshapeD2Ev:
.LFB5637:
	.cfi_startproc
	endbr64
	leaq	16+_ZTVN3ops7ReshapeE(%rip), %rax
	movq	%rax, (%rdi)
	jmp	_ZN3ops2OpD2Ev
	.cfi_endproc
.LFE5637:
	.size	_ZN3ops7ReshapeD2Ev, .-_ZN3ops7ReshapeD2Ev
	.weak	_ZN3ops7ReshapeD1Ev
	.set	_ZN3ops7ReshapeD1Ev,_ZN3ops7ReshapeD2Ev
	.section	.text._ZN3ops7ReshapeD0Ev,"axG",@progbits,_ZN3ops7ReshapeD5Ev,comdat
	.align 2
	.weak	_ZN3ops7ReshapeD0Ev
	.type	_ZN3ops7ReshapeD0Ev, @function
_ZN3ops7ReshapeD0Ev:
.LFB5639:
	.cfi_startproc
	endbr64
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	movq	%rdi, 8(%rsp)
	call	_ZN3ops7ReshapeD1Ev
	movq	8(%rsp), %rdi
	movl	$120, %esi
	addq	$24, %rsp
	.cfi_def_cfa_offset 8
	jmp	_ZdlPvm@PLT
	.cfi_endproc
.LFE5639:
	.size	_ZN3ops7ReshapeD0Ev, .-_ZN3ops7ReshapeD0Ev
	.section	.rodata.str1.1
.LC1:
	.string	"reshape"
	.text
	.align 2
	.globl	_ZN3ops7ReshapeC2EPNS_2OpERKNS_5ShapeE
	.type	_ZN3ops7ReshapeC2EPNS_2OpERKNS_5ShapeE, @function
_ZN3ops7ReshapeC2EPNS_2OpERKNS_5ShapeE:
.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
	movq	%rdx, %r15
	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
	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	$8, %edi
	subq	$104, %rsp
	.cfi_def_cfa_offset 160
	movq	%fs:40, %rax
	movq	%rax, 88(%rsp)
	xorl	%eax, %eax
	xorl	%eax, %eax
	leaq	32(%rsp), %rbp
	leaq	8(%rsp), %r12
	movq	%rax, 32(%rsp)
	movq	%rax, 40(%rsp)
	movq	%rax, 48(%rsp)
	movq	%rax, 8(%rsp)
	movq	%rax, 16(%rsp)
	movq	%rax, 24(%rsp)
.LEHB2:
	call	_Znwm@PLT
.LEHE2:
	leaq	8(%rax), %rdx
	movq	%r14, (%rax)
	leaq	72(%rsp), %rdi
	movq	%rdx, 24(%rsp)
	leaq	56(%rsp), %r13
	movq	%rdx, 16(%rsp)
	leaq	7+.LC1(%rip), %rdx
	leaq	-7(%rdx), %rsi
	movq	%rax, 8(%rsp)
	movq	%rdi, 56(%rsp)
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE13_S_copy_charsEPcPKcS7_@PLT
	movq	56(%rsp), %rax
	movq	%rbp, %r8
	movq	%r12, %rcx
	movq	$7, 64(%rsp)
	movq	%r15, %rdx
	movq	%r13, %rsi
	movq	%rbx, %rdi
	movb	$0, 7(%rax)
.LEHB3:
	call	_ZN3ops2OpC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKNS_5ShapeESt6vectorIPS0_SaISD_EESF_@PLT
.LEHE3:
	jmp	.L48
.L42:
	endbr64
	movq	%rax, %rbx
.L33:
	movq	%r12, %rdi
	call	_ZNSt12_Vector_baseIPN3ops2OpESaIS2_EED2Ev
	jmp	.L34
.L48:
	movq	%r13, %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	movq	%r12, %rdi
	call	_ZNSt6vectorIPN3ops2OpESaIS2_EED1Ev
	movq	%rbp, %rdi
	call	_ZNSt6vectorIPN3ops2OpESaIS2_EED1Ev
	leaq	16+_ZTVN3ops7ReshapeE(%rip), %rax
	movq	%r14, %rdi
	movq	%rax, (%rbx)
.LEHB4:
	call	_ZNK3ops2Op9shape_getEv@PLT
.LEHE4:
	movq	%rax, 112(%rbx)
	movq	88(%rsp), %rax
	subq	%fs:40, %rax
	je	.L39
	jmp	.L44
.L40:
	endbr64
	movq	%rax, %rbx
.L35:
	movq	%r13, %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	movq	%r12, %rdi
	call	_ZNSt6vectorIPN3ops2OpESaIS2_EED1Ev
.L34:
	movq	%rbp, %rdi
	call	_ZNSt6vectorIPN3ops2OpESaIS2_EED1Ev
	movq	%rbx, %rdi
	movq	88(%rsp), %rax
	subq	%fs:40, %rax
	je	.L47
	jmp	.L44
.L41:
	endbr64
	movq	%rax, %rbp
.L37:
	movq	%rbx, %rdi
	call	_ZN3ops2OpD2Ev
	movq	%rbp, %rdi
	movq	88(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L44
.L47:
.LEHB5:
	call	_Unwind_Resume@PLT
.LEHE5:
.L44:
	call	__stack_chk_fail@PLT
.L39:
	addq	$104, %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 .LEHB2-.LFB4581
	.uleb128 .LEHE2-.LEHB2
	.uleb128 .L42-.LFB4581
	.uleb128 0
	.uleb128 .LEHB3-.LFB4581
	.uleb128 .LEHE3-.LEHB3
	.uleb128 .L40-.LFB4581
	.uleb128 0
	.uleb128 .LEHB4-.LFB4581
	.uleb128 .LEHE4-.LEHB4
	.uleb128 .L41-.LFB4581
	.uleb128 0
	.uleb128 .LEHB5-.LFB4581
	.uleb128 .LEHE5-.LEHB5
	.uleb128 0
	.uleb128 0
.LLSDACSE4581:
	.text
	.size	_ZN3ops7ReshapeC2EPNS_2OpERKNS_5ShapeE, .-_ZN3ops7ReshapeC2EPNS_2OpERKNS_5ShapeE
	.globl	_ZN3ops7ReshapeC1EPNS_2OpERKNS_5ShapeE
	.set	_ZN3ops7ReshapeC1EPNS_2OpERKNS_5ShapeE,_ZN3ops7ReshapeC2EPNS_2OpERKNS_5ShapeE
	.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:
.LFB5162:
	.cfi_startproc
	endbr64
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	.L49
	movq	16(%rdi), %rsi
	movq	%rax, %rdi
	subq	%rax, %rsi
	jmp	_ZdlPvm@PLT
.L49:
	ret
	.cfi_endproc
.LFE5162:
	.size	_ZNSt12_Vector_baseIPN2rt4NodeESaIS2_EED2Ev, .-_ZNSt12_Vector_baseIPN2rt4NodeESaIS2_EED2Ev
	.weak	_ZNSt12_Vector_baseIPN2rt4NodeESaIS2_EED1Ev
	.set	_ZNSt12_Vector_baseIPN2rt4NodeESaIS2_EED1Ev,_ZNSt12_Vector_baseIPN2rt4NodeESaIS2_EED2Ev
	.section	.text._ZNSt6vectorIPN2rt4NodeESaIS2_EED2Ev,"axG",@progbits,_ZNSt6vectorIPN2rt4NodeESaIS2_EED5Ev,comdat
	.align 2
	.weak	_ZNSt6vectorIPN2rt4NodeESaIS2_EED2Ev
	.type	_ZNSt6vectorIPN2rt4NodeESaIS2_EED2Ev, @function
_ZNSt6vectorIPN2rt4NodeESaIS2_EED2Ev:
.LFB4932:
	.cfi_startproc
	endbr64
	jmp	_ZNSt12_Vector_baseIPN2rt4NodeESaIS2_EED2Ev
	.cfi_endproc
.LFE4932:
	.size	_ZNSt6vectorIPN2rt4NodeESaIS2_EED2Ev, .-_ZNSt6vectorIPN2rt4NodeESaIS2_EED2Ev
	.weak	_ZNSt6vectorIPN2rt4NodeESaIS2_EED1Ev
	.set	_ZNSt6vectorIPN2rt4NodeESaIS2_EED1Ev,_ZNSt6vectorIPN2rt4NodeESaIS2_EED2Ev
	.section	.rodata._ZNSt6vectorIPN2rt4NodeESaIS2_EEC2ESt16initializer_listIS2_ERKS3_.str1.1,"aMS",@progbits,1
.LC2:
	.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_:
.LFB4985:
	.cfi_startproc
	.cfi_personality 0x9b,DW.ref.__gxx_personality_v0
	.cfi_lsda 0x1b,.LLSDA4985
	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,8), %rbx
	movq	%rax, (%rdi)
	movq	%rax, 8(%rdi)
	movq	%rax, 16(%rdi)
	movabsq	$9223372036854775800, %rax
	cmpq	%rbx, %rax
	jnb	.L53
	leaq	.LC2(%rip), %rdi
.LEHB6:
	call	_ZSt20__throw_length_errorPKc@PLT
.L53:
	movq	%rsi, %r12
	testq	%rbx, %rbx
	je	.L58
	movq	%rbx, %rdi
	call	_Znwm@PLT
.LEHE6:
	jmp	.L54
.L58:
	xorl	%eax, %eax
.L54:
	leaq	(%rax,%rbx), %rdx
	movq	%rax, 0(%rbp)
	movq	%rdx, 16(%rbp)
	cmpq	$8, %rbx
	jle	.L55
	movq	%rax, %rdi
	movq	%r12, %rsi
	movq	%rbx, %rcx
	rep movsb
	jmp	.L56
.L55:
	jne	.L56
	movq	(%r12), %rcx
	movq	%rcx, (%rax)
.L56:
	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
.L59:
	.cfi_restore_state
	endbr64
	movq	%rax, %rbx
.L57:
	movq	%rbp, %rdi
	call	_ZNSt12_Vector_baseIPN2rt4NodeESaIS2_EED2Ev
	movq	%rbx, %rdi
.LEHB7:
	call	_Unwind_Resume@PLT
.LEHE7:
	.cfi_endproc
.LFE4985:
	.section	.gcc_except_table
.LLSDA4985:
	.byte	0xff
	.byte	0xff
	.byte	0x1
	.uleb128 .LLSDACSE4985-.LLSDACSB4985
.LLSDACSB4985:
	.uleb128 .LEHB6-.LFB4985
	.uleb128 .LEHE6-.LEHB6
	.uleb128 .L59-.LFB4985
	.uleb128 0
	.uleb128 .LEHB7-.LFB4985
	.uleb128 .LEHE7-.LEHB7
	.uleb128 0
	.uleb128 0
.LLSDACSE4985:
	.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._ZNKSt6vectorIiSaIiEE12_M_check_lenEmPKc,"axG",@progbits,_ZNKSt6vectorIiSaIiEE12_M_check_lenEmPKc,comdat
	.align 2
	.weak	_ZNKSt6vectorIiSaIiEE12_M_check_lenEmPKc
	.type	_ZNKSt6vectorIiSaIiEE12_M_check_lenEmPKc, @function
_ZNKSt6vectorIiSaIiEE12_M_check_lenEmPKc:
.LFB5410:
	.cfi_startproc
	endbr64
	movq	%rdi, %rax
	movq	%rdx, %rdi
	movq	8(%rax), %rcx
	subq	(%rax), %rcx
	movabsq	$2305843009213693951, %rax
	sarq	$2, %rcx
	movq	%rax, %rdx
	subq	%rcx, %rdx
	cmpq	%rsi, %rdx
	jnb	.L63
	pushq	%rax
	.cfi_def_cfa_offset 16
	call	_ZSt20__throw_length_errorPKc@PLT
.L63:
	.cfi_def_cfa_offset 8
	cmpq	%rcx, %rsi
	cmovb	%rcx, %rsi
	addq	%rsi, %rcx
	jc	.L62
	movabsq	$2305843009213693951, %rax
	cmpq	%rax, %rcx
	cmovbe	%rcx, %rax
.L62:
	ret
	.cfi_endproc
.LFE5410:
	.size	_ZNKSt6vectorIiSaIiEE12_M_check_lenEmPKc, .-_ZNKSt6vectorIiSaIiEE12_M_check_lenEmPKc
	.section	.rodata.str1.1
.LC3:
	.string	"vector::_M_realloc_insert"
	.text
	.align 2
	.globl	_ZN3ops7Reshape7compileEv
	.type	_ZN3ops7Reshape7compileEv, @function
_ZN3ops7Reshape7compileEv:
.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
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$216, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%rdi, -208(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
.LEHB8:
	call	_ZN3ops5Graph8instanceEv@PLT
	movq	-208(%rbp), %rsi
	movq	%rax, -216(%rbp)
	leaq	-88(%rbp), %rax
	movq	%rax, %rdi
	movq	%rax, -184(%rbp)
	call	_ZN3ops2Op5predsEv@PLT
.LEHE8:
	movq	-88(%rbp), %rax
	movq	-216(%rbp), %rdi
	movq	(%rax), %rsi
.LEHB9:
	call	_ZN3ops5Graph8compiledEPNS_2OpE@PLT
.LEHE9:
	movq	-184(%rbp), %rdi
	movq	%rax, -192(%rbp)
	call	_ZNSt6vectorIPN3ops2OpESaIS2_EED1Ev
	movq	-208(%rbp), %rdi
.LEHB10:
	call	_ZNK3ops2Op9shape_getEv@PLT
	movq	%rax, %rdi
	movq	%rax, -200(%rbp)
	call	_ZNK3ops5Shape7definedEv@PLT
	testb	%al, %al
	movq	-192(%rbp), %rax
	je	.L72
	movq	56(%rax), %rax
	movq	-184(%rbp), %rdi
	leaq	-64(%rbp), %r13
	leaq	-112(%rbp), %rbx
	movq	%rbx, %rcx
	movq	%r13, %rsi
	movl	$1, %edx
	movq	%rax, -64(%rbp)
	call	_ZNSt6vectorIPN2rt4NodeESaIS2_EEC1ESt16initializer_listIS2_ERKS3_
.LEHE10:
	movq	-184(%rbp), %rdi
.LEHB11:
	call	_ZN2rt4Node3nopERKSt6vectorIPS0_SaIS2_EE@PLT
.LEHE11:
	movq	-184(%rbp), %rdi
	movq	%rax, %r12
	call	_ZNSt6vectorIPN2rt4NodeESaIS2_EED1Ev
	xorl	%r11d, %r11d
	movq	%r13, %rsi
	movl	$1, %edx
	movq	-192(%rbp), %rax
	leaq	-136(%rbp), %rcx
	movq	%rbx, %rdi
	movq	88(%rax), %r15
	movq	%r11, -88(%rbp)
	movq	%r11, -80(%rbp)
	movq	%r11, -72(%rbp)
	movq	%r12, -64(%rbp)
.LEHB12:
	call	_ZNSt6vectorIPN2rt4NodeESaIS2_EEC1ESt16initializer_listIS2_ERKS3_
.LEHE12:
	pushq	%r10
	movq	-200(%rbp), %r9
	movq	%r12, %r8
	movq	%rbx, %rdx
	movq	-184(%rbp), %rcx
	movq	-208(%rbp), %rsi
	pushq	%r15
	movq	-216(%rbp), %rdi
.LEHB13:
	.cfi_escape 0x2e,0x10
	call	_ZN3ops5Graph12add_compiledEPNS_2OpESt6vectorIPN2rt4NodeESaIS6_EES3_IPfSaIS9_EES6_RKNS_5ShapeES9_@PLT
.LEHE13:
	popq	%r8
	movq	%rbx, %rdi
	popq	%r9
	call	_ZNSt6vectorIPN2rt4NodeESaIS2_EED1Ev
	movq	-184(%rbp), %rdi
	call	_ZNSt6vectorIPfSaIS0_EED1Ev
	jmp	.L71
.L72:
	xorl	%edi, %edi
	addq	$64, %rax
	movq	%rdi, -160(%rbp)
	movq	%rdi, -152(%rbp)
	movq	%rdi, -144(%rbp)
	movq	-200(%rbp), %rdi
	movq	%rax, -240(%rbp)
.LEHB14:
	.cfi_escape 0x2e,0
	call	_ZNK3ops5Shape4dimsEv@PLT
	movq	8(%rax), %rdx
	movq	(%rax), %rax
	movq	%rdx, -248(%rbp)
	movq	%rax, -224(%rbp)
.L74:
	movq	-224(%rbp), %rdx
	cmpq	%rdx, -248(%rbp)
	je	.L119
	movq	-224(%rbp), %rax
	movl	(%rax), %r15d
	cmpl	$-1, %r15d
	jne	.L75
	movq	-240(%rbp), %rdi
	call	_ZNK3ops5Shape5totalEv@PLT
	movq	-200(%rbp), %rdi
	movl	%eax, %r13d
	call	_ZNK3ops5Shape5totalEv@PLT
	negl	%eax
	movq	-152(%rbp), %rbx
	movl	%eax, %ecx
	movl	%r13d, %eax
	cltd
	idivl	%ecx
	movl	%eax, %r13d
	cmpq	-144(%rbp), %rbx
	je	.L76
	movl	%eax, (%rbx)
	jmp	.L114
.L76:
	leaq	-160(%rbp), %rdi
	leaq	.LC3(%rip), %rdx
	movl	$1, %esi
	call	_ZNKSt6vectorIiSaIiEE12_M_check_lenEmPKc
	movq	%rax, -232(%rbp)
	movq	-160(%rbp), %r14
	movq	%rbx, %r15
	movq	-152(%rbp), %rax
	movq	-232(%rbp), %rdi
	subq	%r14, %r15
	movq	%rax, -256(%rbp)
	call	_ZNSt12_Vector_baseIiSaIiEE11_M_allocateEm.isra.0
	movl	%r13d, (%rax,%r15)
	movq	%rax, %r12
	testq	%r15, %r15
	jle	.L78
	movq	%r15, %rdx
	movq	%r14, %rsi
	movq	%rax, %rdi
	call	memmove@PLT
.L78:
	movq	-256(%rbp), %r13
	leaq	4(%r12,%r15), %rcx
	subq	%rbx, %r13
	testq	%r13, %r13
	jle	.L79
	movq	%rcx, %rdi
	movq	%r13, %rdx
	movq	%rbx, %rsi
	call	memmove@PLT
	movq	%rax, %rcx
.L79:
	addq	%rcx, %r13
	testq	%r14, %r14
	je	.L80
	movq	-144(%rbp), %rsi
	movq	%r14, %rdi
	subq	%r14, %rsi
	call	_ZdlPvm@PLT
.L80:
	movq	%r12, -160(%rbp)
	movq	%r13, -152(%rbp)
	jmp	.L115
.L75:
	movq	-152(%rbp), %rbx
	cmpq	-144(%rbp), %rbx
	je	.L81
	movl	%r15d, (%rbx)
.L114:
	addq	$4, %rbx
	movq	%rbx, -152(%rbp)
	jmp	.L77
.L81:
	leaq	-160(%rbp), %rdi
	leaq	.LC3(%rip), %rdx
	movl	$1, %esi
	call	_ZNKSt6vectorIiSaIiEE12_M_check_lenEmPKc
	movq	%rax, -232(%rbp)
	movq	-160(%rbp), %r13
	movq	%rbx, %r14
	movq	-152(%rbp), %rax
	movq	-232(%rbp), %rdi
	subq	%r13, %r14
	movq	%rax, -256(%rbp)
	call	_ZNSt12_Vector_baseIiSaIiEE11_M_allocateEm.isra.0
	movl	%r15d, (%rax,%r14)
	movq	%rax, %r12
	testq	%r14, %r14
	jle	.L82
	movq	%r14, %rdx
	movq	%r13, %rsi
	movq	%rax, %rdi
	call	memmove@PLT
.L82:
	leaq	4(%r12,%r14), %rcx
	movq	-256(%rbp), %r14
	subq	%rbx, %r14
	testq	%r14, %r14
	jle	.L83
	movq	%rcx, %rdi
	movq	%r14, %rdx
	movq	%rbx, %rsi
	call	memmove@PLT
	movq	%rax, %rcx
.L83:
	addq	%rcx, %r14
	testq	%r13, %r13
	je	.L84
	movq	-144(%rbp), %rsi
	movq	%r13, %rdi
	subq	%r13, %rsi
	call	_ZdlPvm@PLT
.L84:
	movq	%r12, -160(%rbp)
	movq	%r14, -152(%rbp)
.L115:
	movq	-232(%rbp), %rax
	leaq	(%r12,%rax,4), %rax
	movq	%rax, -144(%rbp)
.L77:
	addq	$4, -224(%rbp)
	jmp	.L74
.L119:
	movq	-192(%rbp), %rax
	leaq	-64(%rbp), %r14
	leaq	-112(%rbp), %rbx
	movq	-184(%rbp), %rdi
	movq	%rbx, %rcx
	movq	%r14, %rsi
	movl	$1, %edx
	movq	56(%rax), %rax
	movq	%rax, -64(%rbp)
	call	_ZNSt6vectorIPN2rt4NodeESaIS2_EEC1ESt16initializer_listIS2_ERKS3_
.LEHE14:
	movq	-184(%rbp), %rdi
.LEHB15:
	call	_ZN2rt4Node3nopERKSt6vectorIPS0_SaIS2_EE@PLT
.LEHE15:
	movq	-184(%rbp), %rdi
	movq	%rax, %r12
	leaq	-160(%rbp), %r13
	call	_ZNSt6vectorIPN2rt4NodeESaIS2_EED1Ev
	movq	-192(%rbp), %rax
	movq	%r13, %rsi
	movq	88(%rax), %r15
	leaq	-136(%rbp), %rax
	movq	%rax, %rdi
	movq	%rax, -192(%rbp)
.LEHB16:
	call	_ZN3ops5ShapeC1ERKSt6vectorIiSaIiEE@PLT
.LEHE16:
	xorl	%esi, %esi
	leaq	-161(%rbp), %rcx
	movq	%rbx, %rdi
	movq	%r12, -64(%rbp)
	movq	%rsi, -88(%rbp)
	movl	$1, %edx
	movq	%rsi, -80(%rbp)
	movq	%rsi, -72(%rbp)
	movq	%r14, %rsi
.LEHB17:
	call	_ZNSt6vectorIPN2rt4NodeESaIS2_EEC1ESt16initializer_listIS2_ERKS3_
.LEHE17:
	pushq	%rcx
	movq	-192(%rbp), %r9
	movq	%r12, %r8
	movq	%rbx, %rdx
	movq	-184(%rbp), %rcx
	movq	-208(%rbp), %rsi
	pushq	%r15
	movq	-216(%rbp), %rdi
.LEHB18:
	.cfi_escape 0x2e,0x10
	call	_ZN3ops5Graph12add_compiledEPNS_2OpESt6vectorIPN2rt4NodeESaIS6_EES3_IPfSaIS9_EES6_RKNS_5ShapeES9_@PLT
.LEHE18:
	popq	%rax
	movq	%rbx, %rdi
	popq	%rdx
	call	_ZNSt6vectorIPN2rt4NodeESaIS2_EED1Ev
	movq	-184(%rbp), %rdi
	call	_ZNSt6vectorIPfSaIS0_EED1Ev
	movq	-192(%rbp), %rdi
	call	_ZNSt6vectorIiSaIiEED1Ev
	movq	%r13, %rdi
	call	_ZNSt6vectorIiSaIiEED1Ev
	jmp	.L71
.L99:
	endbr64
	movq	%rax, %rbx
.L86:
	movq	-184(%rbp), %rdi
	call	_ZNSt6vectorIPN3ops2OpESaIS2_EED1Ev
	jmp	.L118
.L100:
	endbr64
	movq	%rax, %rbx
.L88:
	movq	-184(%rbp), %rdi
	call	_ZNSt6vectorIPN2rt4NodeESaIS2_EED1Ev
	jmp	.L118
.L102:
	endbr64
	movq	%rax, %r15
.L90:
	movq	%rbx, %rdi
	movq	%r15, %rbx
	call	_ZNSt6vectorIPN2rt4NodeESaIS2_EED1Ev
	jmp	.L91
.L101:
	endbr64
	movq	%rax, %rbx
.L91:
	movq	-184(%rbp), %rdi
	call	_ZNSt6vectorIPfSaIS0_EED1Ev
	jmp	.L118
.L104:
	endbr64
	movq	%rax, %rbx
.L93:
	movq	-184(%rbp), %rdi
	call	_ZNSt6vectorIPN2rt4NodeESaIS2_EED1Ev
	jmp	.L94
.L106:
	endbr64
	movq	%rax, %r12
.L95:
	movq	%rbx, %rdi
	movq	%r12, %rbx
	call	_ZNSt6vectorIPN2rt4NodeESaIS2_EED1Ev
	jmp	.L96
.L105:
	endbr64
	movq	%rax, %rbx
.L96:
	movq	-184(%rbp), %rdi
	call	_ZNSt6vectorIPfSaIS0_EED1Ev
	movq	-192(%rbp), %rdi
	call	_ZNSt6vectorIiSaIiEED1Ev
	jmp	.L94
.L103:
	endbr64
	movq	%rax, %rbx
.L94:
	leaq	-160(%rbp), %rdi
	call	_ZNSt6vectorIiSaIiEED1Ev
.L118:
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L117
	movq	%rbx, %rdi
.LEHB19:
	call	_Unwind_Resume@PLT
.LEHE19:
.L71:
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	je	.L98
.L117:
	call	__stack_chk_fail@PLT
.L98:
	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 .LEHB8-.LFB4583
	.uleb128 .LEHE8-.LEHB8
	.uleb128 0
	.uleb128 0
	.uleb128 .LEHB9-.LFB4583
	.uleb128 .LEHE9-.LEHB9
	.uleb128 .L99-.LFB4583
	.uleb128 0
	.uleb128 .LEHB10-.LFB4583
	.uleb128 .LEHE10-.LEHB10
	.uleb128 0
	.uleb128 0
	.uleb128 .LEHB11-.LFB4583
	.uleb128 .LEHE11-.LEHB11
	.uleb128 .L100-.LFB4583
	.uleb128 0
	.uleb128 .LEHB12-.LFB4583
	.uleb128 .LEHE12-.LEHB12
	.uleb128 .L101-.LFB4583
	.uleb128 0
	.uleb128 .LEHB13-.LFB4583
	.uleb128 .LEHE13-.LEHB13
	.uleb128 .L102-.LFB4583
	.uleb128 0
	.uleb128 .LEHB14-.LFB4583
	.uleb128 .LEHE14-.LEHB14
	.uleb128 .L103-.LFB4583
	.uleb128 0
	.uleb128 .LEHB15-.LFB4583
	.uleb128 .LEHE15-.LEHB15
	.uleb128 .L104-.LFB4583
	.uleb128 0
	.uleb128 .LEHB16-.LFB4583
	.uleb128 .LEHE16-.LEHB16
	.uleb128 .L103-.LFB4583
	.uleb128 0
	.uleb128 .LEHB17-.LFB4583
	.uleb128 .LEHE17-.LEHB17
	.uleb128 .L105-.LFB4583
	.uleb128 0
	.uleb128 .LEHB18-.LFB4583
	.uleb128 .LEHE18-.LEHB18
	.uleb128 .L106-.LFB4583
	.uleb128 0
	.uleb128 .LEHB19-.LFB4583
	.uleb128 .LEHE19-.LEHB19
	.uleb128 0
	.uleb128 0
.LLSDACSE4583:
	.text
	.size	_ZN3ops7Reshape7compileEv, .-_ZN3ops7Reshape7compileEv
	.weak	_ZTSN3ops7ReshapeE
	.section	.rodata._ZTSN3ops7ReshapeE,"aG",@progbits,_ZTSN3ops7ReshapeE,comdat
	.align 8
	.type	_ZTSN3ops7ReshapeE, @object
	.size	_ZTSN3ops7ReshapeE, 15
_ZTSN3ops7ReshapeE:
	.string	"N3ops7ReshapeE"
	.weak	_ZTIN3ops7ReshapeE
	.section	.data.rel.ro._ZTIN3ops7ReshapeE,"awG",@progbits,_ZTIN3ops7ReshapeE,comdat
	.align 8
	.type	_ZTIN3ops7ReshapeE, @object
	.size	_ZTIN3ops7ReshapeE, 24
_ZTIN3ops7ReshapeE:
	.quad	_ZTVN10__cxxabiv120__si_class_type_infoE+16
	.quad	_ZTSN3ops7ReshapeE
	.quad	_ZTIN3ops2OpE
	.weak	_ZTVN3ops7ReshapeE
	.section	.data.rel.ro.local._ZTVN3ops7ReshapeE,"awG",@progbits,_ZTVN3ops7ReshapeE,comdat
	.align 8
	.type	_ZTVN3ops7ReshapeE, @object
	.size	_ZTVN3ops7ReshapeE, 48
_ZTVN3ops7ReshapeE:
	.quad	0
	.quad	_ZTIN3ops7ReshapeE
	.quad	_ZN3ops7ReshapeD1Ev
	.quad	_ZN3ops7ReshapeD0Ev
	.quad	_ZN3ops7Reshape7compileEv
	.quad	_ZN3ops7Reshape10child_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 <stdexcept>

#include "reshape.hh"
#include "graph.hh"
#include "../runtime/graph.hh"
#include "../runtime/node.hh"
#include "../memory/alloc.hh"
#include "ops-builder.hh"
#include <cassert>
#include <stdexcept>

namespace ops
{

    Reshape::Reshape(Op* arg, const Shape& shape)
        : Op("reshape", shape, {arg})
        , m_initial_size(arg->shape_get())
    {}

    void Reshape::compile()
    {
        auto& g = Graph::instance();
        auto& carg = g.compiled(preds()[0]);
        auto& new_shape = shape_get();

        if (new_shape.defined())
        {
            auto node = rt::Node::nop({carg.out_node});
            g.add_compiled(this, {node}, {}, node, new_shape, carg.out_data);
        }
        else
        {
            auto& carg_shape = carg.out_shape;
            std::vector<int> new_dims;
            for (auto x : new_shape.dims())
                if (x == -1)
                    new_dims.push_back((int) (carg_shape.total() / (- new_shape.total())));
                else
                    new_dims.push_back(x);

            auto node = rt::Node::nop({carg.out_node});
            g.add_compiled(this, {node}, {}, node, Shape(new_dims), carg.out_data);
        }
    }

    Op* Reshape::child_grad(std::size_t index, Op* dout)
    {
        assert(index < 1);
        if (dout == nullptr)
            throw std::runtime_error {"reshape dout must not be null"};
        auto& builder = OpsBuilder::instance();

        return builder.reshape(dout, m_initial_size);
    }
}

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

                                        # End of file scope inline assembly
	.globl	_ZN3ops7ReshapeC2EPNS_2OpERKNS_5ShapeE # -- Begin function _ZN3ops7ReshapeC2EPNS_2OpERKNS_5ShapeE
	.p2align	1, 0x90
	.type	_ZN3ops7ReshapeC2EPNS_2OpERKNS_5ShapeE,@function
_ZN3ops7ReshapeC2EPNS_2OpERKNS_5ShapeE: # @_ZN3ops7ReshapeC2EPNS_2OpERKNS_5ShapeE
.Lfunc_begin0:
	.cfi_startproc
	.cfi_personality 3, __gxx_personality_v0
	.cfi_lsda 3, .Lexception0
# %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
	subq	$104, %rsp
	.cfi_def_cfa_offset 144
	.cfi_offset %rbx, -40
	.cfi_offset %r12, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %rbx
	leaq	48(%rsp), %r12
	movq	%r12, -16(%r12)
.Ltmp0:
	leaq	32(%rsp), %rdi
	movl	$.L.str, %esi
	movl	$.L.str+7, %edx
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag
.Ltmp1:
# %bb.1:                                # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_.exit
	leaq	96(%rsp), %rsi
	movq	%r14, (%rsi)
.Ltmp3:
	leaq	8(%rsp), %rdi
	leaq	7(%rsp), %rcx
	movl	$1, %edx
	callq	_ZNSt6vectorIPN3ops2OpESaIS2_EEC2ESt16initializer_listIS2_ERKS3_
.Ltmp4:
# %bb.2:
	xorps	%xmm0, %xmm0
	leaq	64(%rsp), %r8
	movaps	%xmm0, (%r8)
	movq	$0, 16(%r8)
.Ltmp6:
	leaq	32(%rsp), %rsi
	leaq	8(%rsp), %rcx
	movq	%rbx, %rdi
	movq	%r15, %rdx
	callq	_ZN3ops2OpC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKNS_5ShapeESt6vectorIPS0_SaISD_EESF_
.Ltmp7:
# %bb.3:
	movq	64(%rsp), %rdi
	testq	%rdi, %rdi
	je	.LBB0_5
# %bb.4:
	callq	_ZdlPv
.LBB0_5:                                # %_ZNSt6vectorIPN3ops2OpESaIS2_EED2Ev.exit
	movq	8(%rsp), %rdi
	testq	%rdi, %rdi
	je	.LBB0_7
# %bb.6:
	callq	_ZdlPv
.LBB0_7:                                # %_ZNSt6vectorIPN3ops2OpESaIS2_EED2Ev.exit13
	movq	32(%rsp), %rdi
	cmpq	%r12, %rdi
	je	.LBB0_9
# %bb.8:                                # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i
	callq	_ZdlPv
.LBB0_9:                                # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit
	movq	$_ZTVN3ops7ReshapeE+16, (%rbx)
.Ltmp9:
	movq	%r14, %rdi
	callq	_ZNK3ops2Op9shape_getEv
.Ltmp10:
# %bb.10:
	movq	%rax, 112(%rbx)
	addq	$104, %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
.LBB0_19:
	.cfi_def_cfa_offset 144
.Ltmp11:
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_ZN3ops2OpD2Ev
	jmp	.LBB0_20
.LBB0_13:
.Ltmp8:
	movq	%rax, %r14
	movq	64(%rsp), %rdi
	testq	%rdi, %rdi
	je	.LBB0_15
# %bb.14:
	callq	_ZdlPv
.LBB0_15:                               # %_ZNSt6vectorIPN3ops2OpESaIS2_EED2Ev.exit15
	movq	8(%rsp), %rdi
	testq	%rdi, %rdi
	je	.LBB0_17
# %bb.16:
	callq	_ZdlPv
	jmp	.LBB0_17
.LBB0_12:
.Ltmp5:
	movq	%rax, %r14
.LBB0_17:                               # %_ZNSt6vectorIPN3ops2OpESaIS2_EED2Ev.exit17
	movq	32(%rsp), %rdi
	cmpq	%r12, %rdi
	je	.LBB0_20
# %bb.18:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i18
	callq	_ZdlPv
	jmp	.LBB0_20
.LBB0_11:
.Ltmp2:
	movq	%rax, %r14
.LBB0_20:
	movq	%r14, %rdi
	callq	_Unwind_Resume@PLT
.Lfunc_end0:
	.size	_ZN3ops7ReshapeC2EPNS_2OpERKNS_5ShapeE, .Lfunc_end0-_ZN3ops7ReshapeC2EPNS_2OpERKNS_5ShapeE
	.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 .Ltmp0-.Lfunc_begin0           # >> Call Site 1 <<
	.uleb128 .Ltmp1-.Ltmp0                  #   Call between .Ltmp0 and .Ltmp1
	.uleb128 .Ltmp2-.Lfunc_begin0           #     jumps to .Ltmp2
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp3-.Lfunc_begin0           # >> Call Site 2 <<
	.uleb128 .Ltmp4-.Ltmp3                  #   Call between .Ltmp3 and .Ltmp4
	.uleb128 .Ltmp5-.Lfunc_begin0           #     jumps to .Ltmp5
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp6-.Lfunc_begin0           # >> Call Site 3 <<
	.uleb128 .Ltmp7-.Ltmp6                  #   Call between .Ltmp6 and .Ltmp7
	.uleb128 .Ltmp8-.Lfunc_begin0           #     jumps to .Ltmp8
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp9-.Lfunc_begin0           # >> Call Site 4 <<
	.uleb128 .Ltmp10-.Ltmp9                 #   Call between .Ltmp9 and .Ltmp10
	.uleb128 .Ltmp11-.Lfunc_begin0          #     jumps to .Ltmp11
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp10-.Lfunc_begin0          # >> Call Site 5 <<
	.uleb128 .Lfunc_end0-.Ltmp10            #   Call between .Ltmp10 and .Lfunc_end0
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
.Lcst_end0:
	.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_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,8), %rdx
.Ltmp12:
	callq	_ZNSt6vectorIPN3ops2OpESaIS2_EE19_M_range_initializeIPKS2_EEvT_S8_St20forward_iterator_tag
.Ltmp13:
# %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
.Ltmp14:
	movq	%rax, %r14
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	.LBB1_4
# %bb.3:
	callq	_ZdlPv
.LBB1_4:                                # %_ZNSt12_Vector_baseIPN3ops2OpESaIS2_EED2Ev.exit
	movq	%r14, %rdi
	callq	_Unwind_Resume@PLT
.Lfunc_end1:
	.size	_ZNSt6vectorIPN3ops2OpESaIS2_EEC2ESt16initializer_listIS2_ERKS3_, .Lfunc_end1-_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_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 .Ltmp12-.Lfunc_begin1          # >> Call Site 1 <<
	.uleb128 .Ltmp13-.Ltmp12                #   Call between .Ltmp12 and .Ltmp13
	.uleb128 .Ltmp14-.Lfunc_begin1          #     jumps to .Ltmp14
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp13-.Lfunc_begin1          # >> Call Site 2 <<
	.uleb128 .Lfunc_end1-.Ltmp13            #   Call between .Ltmp13 and .Lfunc_end1
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
.Lcst_end1:
	.p2align	2, 0x0
                                        # -- End function
	.text
	.globl	_ZN3ops7Reshape7compileEv       # -- Begin function _ZN3ops7Reshape7compileEv
	.p2align	1, 0x90
	.type	_ZN3ops7Reshape7compileEv,@function
_ZN3ops7Reshape7compileEv:              # @_ZN3ops7Reshape7compileEv
.Lfunc_begin2:
	.cfi_startproc
	.cfi_personality 3, __gxx_personality_v0
	.cfi_lsda 3, .Lexception2
# %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%r15
	.cfi_def_cfa_offset 24
	pushq	%r14
	.cfi_def_cfa_offset 32
	pushq	%r13
	.cfi_def_cfa_offset 40
	pushq	%r12
	.cfi_def_cfa_offset 48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	subq	$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
	movq	%rdi, %rbx
	callq	_ZN3ops5Graph8instanceEv
	movq	%rax, %r15
	leaq	16(%rsp), %r14
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_ZN3ops2Op5predsEv
	movq	(%r14), %rax
	movq	(%rax), %rsi
.Ltmp15:
	movq	%r15, %rdi
	callq	_ZN3ops5Graph8compiledEPNS_2OpE
.Ltmp16:
# %bb.1:
	movq	%rax, %r13
	movq	16(%rsp), %rdi
	testq	%rdi, %rdi
	je	.LBB2_3
# %bb.2:
	callq	_ZdlPv
.LBB2_3:                                # %_ZNSt6vectorIPN3ops2OpESaIS2_EED2Ev.exit
	movq	%rbx, %rdi
	callq	_ZNK3ops2Op9shape_getEv
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_ZNK3ops5Shape7definedEv
	testb	%al, %al
	je	.LBB2_13
# %bb.4:
	movq	56(%r13), %rax
	leaq	48(%rsp), %rsi
	movq	%rax, (%rsi)
.Ltmp46:
	leaq	16(%rsp), %rdi
	leaq	40(%rsp), %rcx
	movl	$1, %edx
	callq	_ZNSt6vectorIPN2rt4NodeESaIS2_EEC2ESt16initializer_listIS2_ERKS3_
.Ltmp47:
# %bb.5:
.Ltmp49:
	leaq	16(%rsp), %rdi
	callq	_ZN2rt4Node3nopERKSt6vectorIPS0_SaIS2_EE
.Ltmp50:
# %bb.6:
	movq	%rax, %r14
	movq	16(%rsp), %rdi
	testq	%rdi, %rdi
	je	.LBB2_8
# %bb.7:
	callq	_ZdlPv
.LBB2_8:                                # %_ZNSt6vectorIPN2rt4NodeESaIS2_EED2Ev.exit
	leaq	16(%rsp), %rsi
	movq	%r14, (%rsi)
.Ltmp52:
	leaq	152(%rsp), %rdi
	leaq	48(%rsp), %rcx
	movl	$1, %edx
	callq	_ZNSt6vectorIPN2rt4NodeESaIS2_EEC2ESt16initializer_listIS2_ERKS3_
.Ltmp53:
# %bb.9:
	xorps	%xmm0, %xmm0
	leaq	176(%rsp), %rcx
	movaps	%xmm0, (%rcx)
	movq	$0, 16(%rcx)
	movq	88(%r13), %rax
.Ltmp55:
	movq	%rax, (%rsp)
	leaq	152(%rsp), %rdx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%r14, %r8
	movq	%r12, %r9
	callq	_ZN3ops5Graph12add_compiledEPNS_2OpESt6vectorIPN2rt4NodeESaIS6_EES3_IPfSaIS9_EES6_RKNS_5ShapeES9_
.Ltmp56:
# %bb.10:
	movq	176(%rsp), %rdi
	testq	%rdi, %rdi
	je	.LBB2_12
# %bb.11:
	callq	_ZdlPv
.LBB2_12:                               # %_ZNSt6vectorIPfSaIS0_EED2Ev.exit
	movq	152(%rsp), %rdi
	jmp	.LBB2_39
.LBB2_13:
	movq	%r13, 72(%rsp)                  # 8-byte Spill
	movq	%r15, 88(%rsp)                  # 8-byte Spill
	movq	%rbx, 80(%rsp)                  # 8-byte Spill
	xorps	%xmm0, %xmm0
	movaps	%xmm0, 16(%rsp)
	movq	$0, 32(%rsp)
.Ltmp18:
	movq	%r12, %rdi
	callq	_ZNK3ops5Shape4dimsEv
.Ltmp19:
# %bb.14:
	movq	(%rax), %r14
	movq	8(%rax), %rbx
	cmpq	%rbx, %r14
	je	.LBB2_25
# %bb.15:
	movq	72(%rsp), %r13                  # 8-byte Reload
	addq	$64, %r13
	leaq	16(%rsp), %rbp
.LBB2_16:                               # =>This Inner Loop Header: Depth=1
	movl	(%r14), %eax
	movl	%eax, 48(%rsp)
	cmpl	$-1, %eax
	je	.LBB2_19
# %bb.17:                               #   in Loop: Header=BB2_16 Depth=1
	movq	24(%rsp), %rsi
	cmpq	32(%rsp), %rsi
	jne	.LBB2_22
# %bb.18:                               #   in Loop: Header=BB2_16 Depth=1
.Ltmp21:
	movq	%rbp, %rdi
	leaq	48(%rsp), %rdx
	callq	_ZNSt6vectorIiSaIiEE17_M_realloc_insertIJRKiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_
.Ltmp22:
	jmp	.LBB2_23
.LBB2_19:                               #   in Loop: Header=BB2_16 Depth=1
.Ltmp24:
	movq	%r13, %rdi
	callq	_ZNK3ops5Shape5totalEv
.Ltmp25:
# %bb.20:                               #   in Loop: Header=BB2_16 Depth=1
.Ltmp26:
	movl	%eax, %r15d
	movq	%r12, %rdi
	callq	_ZNK3ops5Shape5totalEv
.Ltmp27:
# %bb.21:                               #   in Loop: Header=BB2_16 Depth=1
	movl	%eax, %ecx
	negl	%ecx
	movl	%r15d, %eax
	cltd
	idivl	%ecx
	movl	%eax, 40(%rsp)
	movq	24(%rsp), %rsi
	cmpq	32(%rsp), %rsi
	je	.LBB2_24
.LBB2_22:                               #   in Loop: Header=BB2_16 Depth=1
	movl	%eax, (%rsi)
	addq	$4, %rsi
	movq	%rsi, 24(%rsp)
.LBB2_23:                               # %_ZNSt6vectorIiSaIiEE9push_backERKi.exit
                                        #   in Loop: Header=BB2_16 Depth=1
	addq	$4, %r14
	cmpq	%rbx, %r14
	jne	.LBB2_16
	jmp	.LBB2_25
.LBB2_24:                               #   in Loop: Header=BB2_16 Depth=1
.Ltmp28:
	movq	%rbp, %rdi
	leaq	40(%rsp), %rdx
	callq	_ZNSt6vectorIiSaIiEE17_M_realloc_insertIJiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_
.Ltmp29:
	jmp	.LBB2_23
.LBB2_25:                               # %._crit_edge
	movq	72(%rsp), %r12                  # 8-byte Reload
	movq	56(%r12), %rax
	leaq	40(%rsp), %rsi
	movq	%rax, (%rsi)
.Ltmp31:
	leaq	48(%rsp), %rdi
	leaq	15(%rsp), %rcx
	movl	$1, %edx
	callq	_ZNSt6vectorIPN2rt4NodeESaIS2_EEC2ESt16initializer_listIS2_ERKS3_
.Ltmp32:
# %bb.26:
.Ltmp34:
	leaq	48(%rsp), %rdi
	callq	_ZN2rt4Node3nopERKSt6vectorIPS0_SaIS2_EE
.Ltmp35:
	movq	88(%rsp), %r15                  # 8-byte Reload
# %bb.27:
	movq	%rax, %r14
	movq	48(%rsp), %rdi
	testq	%rdi, %rdi
	movq	80(%rsp), %rbx                  # 8-byte Reload
	je	.LBB2_29
# %bb.28:
	callq	_ZdlPv
.LBB2_29:                               # %_ZNSt6vectorIPN2rt4NodeESaIS2_EED2Ev.exit69
	leaq	40(%rsp), %rsi
	movq	%r14, (%rsi)
.Ltmp37:
	leaq	128(%rsp), %rdi
	leaq	15(%rsp), %rcx
	movl	$1, %edx
	callq	_ZNSt6vectorIPN2rt4NodeESaIS2_EEC2ESt16initializer_listIS2_ERKS3_
.Ltmp38:
# %bb.30:
	xorps	%xmm0, %xmm0
	movaps	%xmm0, 96(%rsp)
	movq	$0, 112(%rsp)
.Ltmp40:
	leaq	48(%rsp), %rdi
	leaq	16(%rsp), %rsi
	callq	_ZN3ops5ShapeC1ERKSt6vectorIiSaIiEE
.Ltmp41:
# %bb.31:
	movq	88(%r12), %rax
.Ltmp43:
	movq	%rax, (%rsp)
	leaq	128(%rsp), %rdx
	leaq	96(%rsp), %rcx
	leaq	48(%rsp), %r9
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%r14, %r8
	callq	_ZN3ops5Graph12add_compiledEPNS_2OpESt6vectorIPN2rt4NodeESaIS6_EES3_IPfSaIS9_EES6_RKNS_5ShapeES9_
.Ltmp44:
# %bb.32:
	movq	48(%rsp), %rdi
	testq	%rdi, %rdi
	je	.LBB2_34
# %bb.33:
	callq	_ZdlPv
.LBB2_34:                               # %_ZN3ops5ShapeD2Ev.exit
	movq	96(%rsp), %rdi
	testq	%rdi, %rdi
	je	.LBB2_36
# %bb.35:
	callq	_ZdlPv
.LBB2_36:                               # %_ZNSt6vectorIPfSaIS0_EED2Ev.exit71
	movq	128(%rsp), %rdi
	testq	%rdi, %rdi
	je	.LBB2_38
# %bb.37:
	callq	_ZdlPv
.LBB2_38:                               # %_ZNSt6vectorIPN2rt4NodeESaIS2_EED2Ev.exit73
	movq	16(%rsp), %rdi
.LBB2_39:                               # %_ZNSt6vectorIPfSaIS0_EED2Ev.exit
	testq	%rdi, %rdi
	je	.LBB2_41
# %bb.40:
	callq	_ZdlPv
.LBB2_41:
	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
.LBB2_42:
	.cfi_def_cfa_offset 256
.Ltmp45:
	movq	%rax, %rbx
	movq	48(%rsp), %rdi
	testq	%rdi, %rdi
	je	.LBB2_45
# %bb.43:
	callq	_ZdlPv
	jmp	.LBB2_45
.LBB2_44:
.Ltmp42:
	movq	%rax, %rbx
.LBB2_45:                               # %_ZN3ops5ShapeD2Ev.exit78
	movq	96(%rsp), %rdi
	testq	%rdi, %rdi
	je	.LBB2_47
# %bb.46:
	callq	_ZdlPv
.LBB2_47:                               # %_ZNSt6vectorIPfSaIS0_EED2Ev.exit80
	movq	128(%rsp), %rdi
	jmp	.LBB2_50
.LBB2_48:
.Ltmp39:
	jmp	.LBB2_64
.LBB2_49:
.Ltmp36:
	movq	%rax, %rbx
	movq	48(%rsp), %rdi
.LBB2_50:                               # %_ZNSt6vectorIPfSaIS0_EED2Ev.exit80
	testq	%rdi, %rdi
	je	.LBB2_65
# %bb.51:
	callq	_ZdlPv
	jmp	.LBB2_65
.LBB2_52:
.Ltmp33:
	jmp	.LBB2_64
.LBB2_53:
.Ltmp57:
	movq	%rax, %rbx
	movq	176(%rsp), %rdi
	testq	%rdi, %rdi
	je	.LBB2_55
# %bb.54:
	callq	_ZdlPv
.LBB2_55:                               # %_ZNSt6vectorIPfSaIS0_EED2Ev.exit64
	movq	152(%rsp), %rdi
	jmp	.LBB2_66
.LBB2_56:
.Ltmp54:
	jmp	.LBB2_60
.LBB2_57:
.Ltmp51:
	jmp	.LBB2_64
.LBB2_58:
.Ltmp20:
	jmp	.LBB2_64
.LBB2_59:
.Ltmp48:
.LBB2_60:
	movq	%rax, %rbx
	jmp	.LBB2_68
.LBB2_61:
.Ltmp17:
	jmp	.LBB2_64
.LBB2_62:
.Ltmp23:
	jmp	.LBB2_64
.LBB2_63:
.Ltmp30:
.LBB2_64:
	movq	%rax, %rbx
.LBB2_65:
	movq	16(%rsp), %rdi
.LBB2_66:
	testq	%rdi, %rdi
	je	.LBB2_68
# %bb.67:
	callq	_ZdlPv
.LBB2_68:
	movq	%rbx, %rdi
	callq	_Unwind_Resume@PLT
.Lfunc_end2:
	.size	_ZN3ops7Reshape7compileEv, .Lfunc_end2-_ZN3ops7Reshape7compileEv
	.cfi_endproc
	.section	.gcc_except_table,"a",@progbits
	.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 .Lfunc_begin2-.Lfunc_begin2    # >> Call Site 1 <<
	.uleb128 .Ltmp15-.Lfunc_begin2          #   Call between .Lfunc_begin2 and .Ltmp15
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp15-.Lfunc_begin2          # >> Call Site 2 <<
	.uleb128 .Ltmp16-.Ltmp15                #   Call between .Ltmp15 and .Ltmp16
	.uleb128 .Ltmp17-.Lfunc_begin2          #     jumps to .Ltmp17
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp16-.Lfunc_begin2          # >> Call Site 3 <<
	.uleb128 .Ltmp46-.Ltmp16                #   Call between .Ltmp16 and .Ltmp46
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp46-.Lfunc_begin2          # >> Call Site 4 <<
	.uleb128 .Ltmp47-.Ltmp46                #   Call between .Ltmp46 and .Ltmp47
	.uleb128 .Ltmp48-.Lfunc_begin2          #     jumps to .Ltmp48
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp49-.Lfunc_begin2          # >> Call Site 5 <<
	.uleb128 .Ltmp50-.Ltmp49                #   Call between .Ltmp49 and .Ltmp50
	.uleb128 .Ltmp51-.Lfunc_begin2          #     jumps to .Ltmp51
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp52-.Lfunc_begin2          # >> Call Site 6 <<
	.uleb128 .Ltmp53-.Ltmp52                #   Call between .Ltmp52 and .Ltmp53
	.uleb128 .Ltmp54-.Lfunc_begin2          #     jumps to .Ltmp54
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp55-.Lfunc_begin2          # >> Call Site 7 <<
	.uleb128 .Ltmp56-.Ltmp55                #   Call between .Ltmp55 and .Ltmp56
	.uleb128 .Ltmp57-.Lfunc_begin2          #     jumps to .Ltmp57
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp18-.Lfunc_begin2          # >> Call Site 8 <<
	.uleb128 .Ltmp19-.Ltmp18                #   Call between .Ltmp18 and .Ltmp19
	.uleb128 .Ltmp20-.Lfunc_begin2          #     jumps to .Ltmp20
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp21-.Lfunc_begin2          # >> Call Site 9 <<
	.uleb128 .Ltmp22-.Ltmp21                #   Call between .Ltmp21 and .Ltmp22
	.uleb128 .Ltmp23-.Lfunc_begin2          #     jumps to .Ltmp23
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp24-.Lfunc_begin2          # >> Call Site 10 <<
	.uleb128 .Ltmp29-.Ltmp24                #   Call between .Ltmp24 and .Ltmp29
	.uleb128 .Ltmp30-.Lfunc_begin2          #     jumps to .Ltmp30
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp31-.Lfunc_begin2          # >> Call Site 11 <<
	.uleb128 .Ltmp32-.Ltmp31                #   Call between .Ltmp31 and .Ltmp32
	.uleb128 .Ltmp33-.Lfunc_begin2          #     jumps to .Ltmp33
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp34-.Lfunc_begin2          # >> Call Site 12 <<
	.uleb128 .Ltmp35-.Ltmp34                #   Call between .Ltmp34 and .Ltmp35
	.uleb128 .Ltmp36-.Lfunc_begin2          #     jumps to .Ltmp36
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp37-.Lfunc_begin2          # >> Call Site 13 <<
	.uleb128 .Ltmp38-.Ltmp37                #   Call between .Ltmp37 and .Ltmp38
	.uleb128 .Ltmp39-.Lfunc_begin2          #     jumps to .Ltmp39
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp40-.Lfunc_begin2          # >> Call Site 14 <<
	.uleb128 .Ltmp41-.Ltmp40                #   Call between .Ltmp40 and .Ltmp41
	.uleb128 .Ltmp42-.Lfunc_begin2          #     jumps to .Ltmp42
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp43-.Lfunc_begin2          # >> Call Site 15 <<
	.uleb128 .Ltmp44-.Ltmp43                #   Call between .Ltmp43 and .Ltmp44
	.uleb128 .Ltmp45-.Lfunc_begin2          #     jumps to .Ltmp45
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp44-.Lfunc_begin2          # >> Call Site 16 <<
	.uleb128 .Lfunc_end2-.Ltmp44            #   Call between .Ltmp44 and .Lfunc_end2
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
.Lcst_end2:
	.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_begin3:
	.cfi_startproc
	.cfi_personality 3, __gxx_personality_v0
	.cfi_lsda 3, .Lexception3
# %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
.Ltmp58:
	callq	_ZNSt6vectorIPN2rt4NodeESaIS2_EE19_M_range_initializeIPKS2_EEvT_S8_St20forward_iterator_tag
.Ltmp59:
# %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
.LBB3_2:
	.cfi_def_cfa_offset 32
.Ltmp60:
	movq	%rax, %r14
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	.LBB3_4
# %bb.3:
	callq	_ZdlPv
.LBB3_4:                                # %_ZNSt12_Vector_baseIPN2rt4NodeESaIS2_EED2Ev.exit
	movq	%r14, %rdi
	callq	_Unwind_Resume@PLT
.Lfunc_end3:
	.size	_ZNSt6vectorIPN2rt4NodeESaIS2_EEC2ESt16initializer_listIS2_ERKS3_, .Lfunc_end3-_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_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 .Ltmp58-.Lfunc_begin3          # >> Call Site 1 <<
	.uleb128 .Ltmp59-.Ltmp58                #   Call between .Ltmp58 and .Ltmp59
	.uleb128 .Ltmp60-.Lfunc_begin3          #     jumps to .Ltmp60
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp59-.Lfunc_begin3          # >> Call Site 2 <<
	.uleb128 .Lfunc_end3-.Ltmp59            #   Call between .Ltmp59 and .Lfunc_end3
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
.Lcst_end3:
	.p2align	2, 0x0
                                        # -- End function
	.text
	.globl	_ZN3ops7Reshape10child_gradEmPNS_2OpE # -- Begin function _ZN3ops7Reshape10child_gradEmPNS_2OpE
	.p2align	1, 0x90
	.type	_ZN3ops7Reshape10child_gradEmPNS_2OpE,@function
_ZN3ops7Reshape10child_gradEmPNS_2OpE:  # @_ZN3ops7Reshape10child_gradEmPNS_2OpE
.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
	testq	%rdx, %rdx
	je	.LBB4_1
# %bb.4:
	movq	%rdx, %rbx
	movq	%rdi, %r14
	callq	_ZN3ops10OpsBuilder8instanceEv
	movq	112(%r14), %rdx
	movq	%rax, %rdi
	movq	%rbx, %rsi
	addq	$8, %rsp
	.cfi_def_cfa_offset 24
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	jmp	_ZN3ops10OpsBuilder7reshapeEPNS_2OpERKNS_5ShapeE # TAILCALL
.LBB4_1:
	.cfi_def_cfa_offset 32
	movl	$16, %edi
	callq	__cxa_allocate_exception
	movq	%rax, %rbx
.Ltmp61:
	movl	$.L.str.1, %esi
	movq	%rax, %rdi
	callq	_ZNSt13runtime_errorC1EPKc
.Ltmp62:
# %bb.2:
	movl	$_ZTISt13runtime_error, %esi
	movl	$_ZNSt13runtime_errorD1Ev, %edx
	movq	%rbx, %rdi
	callq	__cxa_throw
.LBB4_3:
.Ltmp63:
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	__cxa_free_exception
	movq	%r14, %rdi
	callq	_Unwind_Resume@PLT
.Lfunc_end4:
	.size	_ZN3ops7Reshape10child_gradEmPNS_2OpE, .Lfunc_end4-_ZN3ops7Reshape10child_gradEmPNS_2OpE
	.cfi_endproc
	.section	.gcc_except_table,"a",@progbits
	.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 .Lfunc_begin4-.Lfunc_begin4    # >> Call Site 1 <<
	.uleb128 .Ltmp61-.Lfunc_begin4          #   Call between .Lfunc_begin4 and .Ltmp61
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp61-.Lfunc_begin4          # >> Call Site 2 <<
	.uleb128 .Ltmp62-.Ltmp61                #   Call between .Ltmp61 and .Ltmp62
	.uleb128 .Ltmp63-.Lfunc_begin4          #     jumps to .Ltmp63
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp62-.Lfunc_begin4          # >> Call Site 3 <<
	.uleb128 .Lfunc_end4-.Ltmp62            #   Call between .Ltmp62 and .Lfunc_end4
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
.Lcst_end4:
	.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	.LBB5_2
# %bb.1:
	callq	_ZdlPv
.LBB5_2:                                # %_ZNSt6vectorIPN3ops2OpESaIS2_EED2Ev.exit
	movq	64(%rbx), %rdi
	testq	%rdi, %rdi
	je	.LBB5_4
# %bb.3:
	callq	_ZdlPv
.LBB5_4:                                # %_ZNSt6vectorIPN3ops2OpESaIS2_EED2Ev.exit2
	movq	40(%rbx), %rdi
	testq	%rdi, %rdi
	je	.LBB5_6
# %bb.5:
	callq	_ZdlPv
.LBB5_6:                                # %_ZN3ops5ShapeD2Ev.exit
	movq	8(%rbx), %rdi
	addq	$24, %rbx
	cmpq	%rbx, %rdi
	je	.LBB5_7
# %bb.8:                                # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i
	popq	%rbx
	.cfi_def_cfa_offset 8
	jmp	_ZdlPv                          # TAILCALL
.LBB5_7:                                # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit
	.cfi_def_cfa_offset 16
	popq	%rbx
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end5:
	.size	_ZN3ops2OpD2Ev, .Lfunc_end5-_ZN3ops2OpD2Ev
	.cfi_endproc
                                        # -- End function
	.section	.text._ZN3ops7ReshapeD0Ev,"axG",@progbits,_ZN3ops7ReshapeD0Ev,comdat
	.weak	_ZN3ops7ReshapeD0Ev             # -- Begin function _ZN3ops7ReshapeD0Ev
	.p2align	1, 0x90
	.type	_ZN3ops7ReshapeD0Ev,@function
_ZN3ops7ReshapeD0Ev:                    # @_ZN3ops7ReshapeD0Ev
	.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_end6:
	.size	_ZN3ops7ReshapeD0Ev, .Lfunc_end6-_ZN3ops7ReshapeD0Ev
	.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	.LBB7_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	.LBB7_3
.LBB7_1:                                # %._crit_edge
	movq	(%rbx), %rax
.LBB7_3:
	testq	%r14, %r14
	je	.LBB7_7
# %bb.4:
	cmpq	$1, %r14
	jne	.LBB7_6
# %bb.5:
	movb	(%r15), %cl
	movb	%cl, (%rax)
	jmp	.LBB7_7
.LBB7_6:
	movq	%rax, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	memcpy@PLT
.LBB7_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_end7:
	.size	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag, .Lfunc_end7-_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	.LBB8_9
# %bb.1:                                # %_ZNSt6vectorIPN3ops2OpESaIS2_EE17_S_check_init_lenEmRKS3_.exit
	movq	%rsi, %r15
	movq	%rdi, %rbx
	cmpq	%rsi, %rdx
	je	.LBB8_2
# %bb.3:
	movq	%rbx, %rdi
	movq	%r13, %rsi
	xorl	%edx, %edx
	callq	_ZNSt15__new_allocatorIPN3ops2OpEE8allocateEmPKv
	movq	%rax, %r12
	jmp	.LBB8_4
.LBB8_2:
	xorl	%r12d, %r12d
.LBB8_4:                                # %_ZNSt12_Vector_baseIPN3ops2OpESaIS2_EE11_M_allocateEm.exit
	movq	%r12, (%rbx)
	leaq	(%r12,%r13,8), %rax
	movq	%rax, 16(%rbx)
	cmpq	$9, %r14
	jl	.LBB8_6
# %bb.5:
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	memmove@PLT
.LBB8_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
.LBB8_6:
	.cfi_def_cfa_offset 48
	cmpq	$8, %r14
	jne	.LBB8_8
# %bb.7:
	movq	(%r15), %rax
	movq	%rax, (%r12)
	jmp	.LBB8_8
.LBB8_9:
	movl	$.L.str.3, %edi
	callq	_ZSt20__throw_length_errorPKc
.Lfunc_end8:
	.size	_ZNSt6vectorIPN3ops2OpESaIS2_EE19_M_range_initializeIPKS2_EEvT_S8_St20forward_iterator_tag, .Lfunc_end8-_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	.LBB9_1
# %bb.3:
	shlq	$3, %rsi
	movq	%rsi, %rdi
	popq	%rax
	.cfi_def_cfa_offset 8
	jmp	_Znwm                           # TAILCALL
.LBB9_1:
	.cfi_def_cfa_offset 16
	shrq	$61, %rsi
	je	.LBB9_2
# %bb.4:
	callq	_ZSt28__throw_bad_array_new_lengthv
.LBB9_2:
	callq	_ZSt17__throw_bad_allocv
.Lfunc_end9:
	.size	_ZNSt15__new_allocatorIPN3ops2OpEE8allocateEmPKv, .Lfunc_end9-_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	.LBB10_9
# %bb.1:                                # %_ZNSt6vectorIPN2rt4NodeESaIS2_EE17_S_check_init_lenEmRKS3_.exit
	movq	%rsi, %r15
	movq	%rdi, %rbx
	cmpq	%rsi, %rdx
	je	.LBB10_2
# %bb.3:
	movq	%rbx, %rdi
	movq	%r13, %rsi
	xorl	%edx, %edx
	callq	_ZNSt15__new_allocatorIPN2rt4NodeEE8allocateEmPKv
	movq	%rax, %r12
	jmp	.LBB10_4
.LBB10_2:
	xorl	%r12d, %r12d
.LBB10_4:                               # %_ZNSt12_Vector_baseIPN2rt4NodeESaIS2_EE11_M_allocateEm.exit
	movq	%r12, (%rbx)
	leaq	(%r12,%r13,8), %rax
	movq	%rax, 16(%rbx)
	cmpq	$9, %r14
	jl	.LBB10_6
# %bb.5:
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	memmove@PLT
.LBB10_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
.LBB10_6:
	.cfi_def_cfa_offset 48
	cmpq	$8, %r14
	jne	.LBB10_8
# %bb.7:
	movq	(%r15), %rax
	movq	%rax, (%r12)
	jmp	.LBB10_8
.LBB10_9:
	movl	$.L.str.3, %edi
	callq	_ZSt20__throw_length_errorPKc
.Lfunc_end10:
	.size	_ZNSt6vectorIPN2rt4NodeESaIS2_EE19_M_range_initializeIPKS2_EEvT_S8_St20forward_iterator_tag, .Lfunc_end10-_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	.LBB11_1
# %bb.3:
	shlq	$3, %rsi
	movq	%rsi, %rdi
	popq	%rax
	.cfi_def_cfa_offset 8
	jmp	_Znwm                           # TAILCALL
.LBB11_1:
	.cfi_def_cfa_offset 16
	shrq	$61, %rsi
	je	.LBB11_2
# %bb.4:
	callq	_ZSt28__throw_bad_array_new_lengthv
.LBB11_2:
	callq	_ZSt17__throw_bad_allocv
.Lfunc_end11:
	.size	_ZNSt15__new_allocatorIPN2rt4NodeEE8allocateEmPKv, .Lfunc_end11-_ZNSt15__new_allocatorIPN2rt4NodeEE8allocateEmPKv
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt6vectorIiSaIiEE17_M_realloc_insertIJiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_,"axG",@progbits,_ZNSt6vectorIiSaIiEE17_M_realloc_insertIJiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_,comdat
	.weak	_ZNSt6vectorIiSaIiEE17_M_realloc_insertIJiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_ # -- Begin function _ZNSt6vectorIiSaIiEE17_M_realloc_insertIJiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_
	.p2align	1, 0x90
	.type	_ZNSt6vectorIiSaIiEE17_M_realloc_insertIJiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_,@function
_ZNSt6vectorIiSaIiEE17_M_realloc_insertIJiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_: # @_ZNSt6vectorIiSaIiEE17_M_realloc_insertIJiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_
	.cfi_startproc
# %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, (%rsp)                    # 8-byte Spill
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movl	$1, %esi
	movl	$.L.str.4, %edx
	callq	_ZNKSt6vectorIiSaIiEE12_M_check_lenEmPKc
	movq	(%rbx), %r13
	movq	8(%rbx), %r15
	movq	%r12, 8(%rsp)                   # 8-byte Spill
	subq	%r13, %r12
	movq	%r12, %r14
	sarq	$2, %r14
	testq	%rax, %rax
	movq	%rax, 16(%rsp)                  # 8-byte Spill
	je	.LBB12_1
# %bb.2:
	movq	%rbx, %rdi
	movq	%rax, %rsi
	xorl	%edx, %edx
	callq	_ZNSt15__new_allocatorIiE8allocateEmPKv
	movq	%rax, %rbp
	jmp	.LBB12_3
.LBB12_1:
	xorl	%ebp, %ebp
.LBB12_3:                               # %_ZNSt12_Vector_baseIiSaIiEE11_M_allocateEm.exit
	movq	(%rsp), %rax                    # 8-byte Reload
	movl	(%rax), %eax
	movl	%eax, (%rbp,%r14,4)
	testq	%r12, %r12
	jle	.LBB12_5
# %bb.4:
	movq	%rbp, %rdi
	movq	%r13, %rsi
	movq	%r12, %rdx
	callq	memmove@PLT
.LBB12_5:                               # %_ZNSt6vectorIiSaIiEE11_S_relocateEPiS2_S2_RS0_.exit
	addq	%rbp, %r12
	addq	$4, %r12
	movq	8(%rsp), %rsi                   # 8-byte Reload
	subq	%rsi, %r15
	testq	%r15, %r15
	jle	.LBB12_7
# %bb.6:
	movq	%r12, %rdi
	movq	%r15, %rdx
	callq	memmove@PLT
.LBB12_7:                               # %_ZNSt6vectorIiSaIiEE11_S_relocateEPiS2_S2_RS0_.exit16
	testq	%r13, %r13
	je	.LBB12_9
# %bb.8:
	movq	%r13, %rdi
	callq	_ZdlPv
.LBB12_9:                               # %_ZNSt12_Vector_baseIiSaIiEE13_M_deallocateEPim.exit
	addq	%r15, %r12
	movq	%rbp, (%rbx)
	movq	%r12, 8(%rbx)
	movq	16(%rsp), %rax                  # 8-byte Reload
	leaq	(,%rax,4), %rax
	addq	%rbp, %rax
	movq	%rax, 16(%rbx)
	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
.Lfunc_end12:
	.size	_ZNSt6vectorIiSaIiEE17_M_realloc_insertIJiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_, .Lfunc_end12-_ZNSt6vectorIiSaIiEE17_M_realloc_insertIJiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNKSt6vectorIiSaIiEE12_M_check_lenEmPKc,"axG",@progbits,_ZNKSt6vectorIiSaIiEE12_M_check_lenEmPKc,comdat
	.weak	_ZNKSt6vectorIiSaIiEE12_M_check_lenEmPKc # -- Begin function _ZNKSt6vectorIiSaIiEE12_M_check_lenEmPKc
	.p2align	1, 0x90
	.type	_ZNKSt6vectorIiSaIiEE12_M_check_lenEmPKc,@function
_ZNKSt6vectorIiSaIiEE12_M_check_lenEmPKc: # @_ZNKSt6vectorIiSaIiEE12_M_check_lenEmPKc
	.cfi_startproc
# %bb.0:
	movabsq	$2305843009213693951, %rcx      # imm = 0x1FFFFFFFFFFFFFFF
	movq	8(%rdi), %r8
	subq	(%rdi), %r8
	sarq	$2, %r8
	movq	%rcx, %rax
	subq	%r8, %rax
	cmpq	%rsi, %rax
	jb	.LBB13_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
.LBB13_2:
	pushq	%rax
	.cfi_def_cfa_offset 16
	movq	%rdx, %rdi
	callq	_ZSt20__throw_length_errorPKc
.Lfunc_end13:
	.size	_ZNKSt6vectorIiSaIiEE12_M_check_lenEmPKc, .Lfunc_end13-_ZNKSt6vectorIiSaIiEE12_M_check_lenEmPKc
	.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	.LBB14_1
# %bb.3:
	shlq	$2, %rsi
	movq	%rsi, %rdi
	popq	%rax
	.cfi_def_cfa_offset 8
	jmp	_Znwm                           # TAILCALL
.LBB14_1:
	.cfi_def_cfa_offset 16
	shrq	$62, %rsi
	je	.LBB14_2
# %bb.4:
	callq	_ZSt28__throw_bad_array_new_lengthv
.LBB14_2:
	callq	_ZSt17__throw_bad_allocv
.Lfunc_end14:
	.size	_ZNSt15__new_allocatorIiE8allocateEmPKv, .Lfunc_end14-_ZNSt15__new_allocatorIiE8allocateEmPKv
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt6vectorIiSaIiEE17_M_realloc_insertIJRKiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_,"axG",@progbits,_ZNSt6vectorIiSaIiEE17_M_realloc_insertIJRKiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_,comdat
	.weak	_ZNSt6vectorIiSaIiEE17_M_realloc_insertIJRKiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_ # -- Begin function _ZNSt6vectorIiSaIiEE17_M_realloc_insertIJRKiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_
	.p2align	1, 0x90
	.type	_ZNSt6vectorIiSaIiEE17_M_realloc_insertIJRKiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_,@function
_ZNSt6vectorIiSaIiEE17_M_realloc_insertIJRKiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_: # @_ZNSt6vectorIiSaIiEE17_M_realloc_insertIJRKiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_
	.cfi_startproc
# %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, (%rsp)                    # 8-byte Spill
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movl	$1, %esi
	movl	$.L.str.4, %edx
	callq	_ZNKSt6vectorIiSaIiEE12_M_check_lenEmPKc
	movq	(%rbx), %r13
	movq	8(%rbx), %r15
	movq	%r12, 8(%rsp)                   # 8-byte Spill
	subq	%r13, %r12
	movq	%r12, %r14
	sarq	$2, %r14
	testq	%rax, %rax
	movq	%rax, 16(%rsp)                  # 8-byte Spill
	je	.LBB15_1
# %bb.2:
	movq	%rbx, %rdi
	movq	%rax, %rsi
	xorl	%edx, %edx
	callq	_ZNSt15__new_allocatorIiE8allocateEmPKv
	movq	%rax, %rbp
	jmp	.LBB15_3
.LBB15_1:
	xorl	%ebp, %ebp
.LBB15_3:                               # %_ZNSt12_Vector_baseIiSaIiEE11_M_allocateEm.exit
	movq	(%rsp), %rax                    # 8-byte Reload
	movl	(%rax), %eax
	movl	%eax, (%rbp,%r14,4)
	testq	%r12, %r12
	jle	.LBB15_5
# %bb.4:
	movq	%rbp, %rdi
	movq	%r13, %rsi
	movq	%r12, %rdx
	callq	memmove@PLT
.LBB15_5:                               # %_ZNSt6vectorIiSaIiEE11_S_relocateEPiS2_S2_RS0_.exit
	addq	%rbp, %r12
	addq	$4, %r12
	movq	8(%rsp), %rsi                   # 8-byte Reload
	subq	%rsi, %r15
	testq	%r15, %r15
	jle	.LBB15_7
# %bb.6:
	movq	%r12, %rdi
	movq	%r15, %rdx
	callq	memmove@PLT
.LBB15_7:                               # %_ZNSt6vectorIiSaIiEE11_S_relocateEPiS2_S2_RS0_.exit16
	testq	%r13, %r13
	je	.LBB15_9
# %bb.8:
	movq	%r13, %rdi
	callq	_ZdlPv
.LBB15_9:                               # %_ZNSt12_Vector_baseIiSaIiEE13_M_deallocateEPim.exit
	addq	%r15, %r12
	movq	%rbp, (%rbx)
	movq	%r12, 8(%rbx)
	movq	16(%rsp), %rax                  # 8-byte Reload
	leaq	(,%rax,4), %rax
	addq	%rbp, %rax
	movq	%rax, 16(%rbx)
	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
.Lfunc_end15:
	.size	_ZNSt6vectorIiSaIiEE17_M_realloc_insertIJRKiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_, .Lfunc_end15-_ZNSt6vectorIiSaIiEE17_M_realloc_insertIJRKiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_
	.cfi_endproc
                                        # -- End function
	.type	.L.str,@object                  # @.str
	.section	.rodata.str1.1,"aMS",@progbits,1
.L.str:
	.asciz	"reshape"
	.size	.L.str, 8

	.type	_ZTVN3ops7ReshapeE,@object      # @_ZTVN3ops7ReshapeE
	.section	.rodata,"a",@progbits
	.globl	_ZTVN3ops7ReshapeE
	.p2align	3, 0x0
_ZTVN3ops7ReshapeE:
	.quad	0
	.quad	_ZTIN3ops7ReshapeE
	.quad	_ZN3ops2OpD2Ev
	.quad	_ZN3ops7ReshapeD0Ev
	.quad	_ZN3ops7Reshape7compileEv
	.quad	_ZN3ops7Reshape10child_gradEmPNS_2OpE
	.size	_ZTVN3ops7ReshapeE, 48

	.type	.L.str.1,@object                # @.str.1
	.section	.rodata.str1.1,"aMS",@progbits,1
.L.str.1:
	.asciz	"reshape dout must not be null"
	.size	.L.str.1, 30

	.type	_ZTSN3ops7ReshapeE,@object      # @_ZTSN3ops7ReshapeE
	.section	.rodata,"a",@progbits
	.globl	_ZTSN3ops7ReshapeE
_ZTSN3ops7ReshapeE:
	.asciz	"N3ops7ReshapeE"
	.size	_ZTSN3ops7ReshapeE, 15

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

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

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

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

	.globl	_ZN3ops7ReshapeC1EPNS_2OpERKNS_5ShapeE
	.type	_ZN3ops7ReshapeC1EPNS_2OpERKNS_5ShapeE,@function
.set _ZN3ops7ReshapeC1EPNS_2OpERKNS_5ShapeE, _ZN3ops7ReshapeC2EPNS_2OpERKNS_5ShapeE
	.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 _ZTSN3ops7ReshapeE
	.addrsig_sym _ZTIN3ops2OpE
	.addrsig_sym _ZTIN3ops7ReshapeE
	.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
